dense_base, inb, inl, inw, ioperm, map_memory, outb, outl,
readl, readw, unmap_memory, writeb, writel, writew - Alpha
ports and memory access functions
ioperm(unsigned long from, unsigned long num, int on);
map_memory(u_int32_t address, u_int32_t size);
outb(u_int32_t port, u_int8_t val);
outl(u_int32_t port, u_int32_t val);
outw(u_int32_t port, u_int16_t val);
readb(void *handle, u_int32_t offset);
readl(void *handle, u_int32_t offset);
readw(void *handle, u_int32_t offset);
unmap_memory(void *handle, u_int32_t size);
writeb(void *handle, u_int32_t offset, u_int8_t val);
writel(void *handle, u_int32_t offset, u_int32_t val);
writew(void *handle, u_int32_t offset, u_int16_t val);
The functions in libalpha give userland programs access to
the I/O ports
on the OpenBSD/alpha platform.
The in*() functions return data read from the specified I/O
The out*() functions write data to the specified I/O port.
ioperm() enables access to the specified port numbers if on
is TRUE and
disables access if on is FALSE.
The map_memory() function allows a user program to map part
of a device
The unmap_memory() function unmaps memory that was previously mapped by
The read*() functions read data from device memory previously mapped by
The write*() functions write data to the device memory previously mapped
Note: Code using these functions must be compiled using
These functions originally appeared in FreeBSD.
Only BWX bus access method is supported for now. Machines
type access are not supported.
Root credentials are needed to use these functions.
OpenBSD 3.6 July 6, 2002
[ Back ]