I read about I/O ports and communicating with the hardware, I want to gain access to an I/O port to see a live example of the various functions. I don't understand what the first argument (unsigned long start
) of request_region
is.
I'd like someone to show me a very simple use of these functions.
struct resource *request_region(unsigned long start, unsigned long n, const char *name);
void release_region(unsigned long first, unsigned long n);
Also, where can we see a list of I/O ports? I guess it might be in /proc/ioports
?