#include <sys/ddi.h> #include <sys/sunddi.h>unsigned char inb(intport);
void repinsb(intport, unsignedchar*addr, intcount);
Solaris IA DDI specific (Solaris IA DDI).
A valid I/O port address.
The address of a buffer where the values will be stored.
The number of values to be read from the I/O port.
These routines read data of various sizes from the I/O port with the address specified by port.
The inb(), inw(), and inl() functions read 8 bits, 16 bits, and 32 bits of data respectively, returning the resulting values.
The repinsb(), repinsw(), and repinsd() functions read multiple 8-bit, 16-bit, and 32-bit values, respectively. count specifies the number of values to be read. A a pointer to a buffer will receive the input data; the buffer must be long enough to hold count values of the requested size.
inb(), inw(), and inl() return the value that was read from the I/O port.
These functions may be called from user or interrupt context.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|