SVR5
inw(D3)
inw --
read a 16 bit short word from a 16 bit I/O port
Synopsis
#include <sys/types.h>
#include <sys/ddi.h>
ushort_t inw(int port);
Description
The inw function provides a C language interface
to the machine instruction that reads
a 16 bit short word from a 16 bit I/O port,
using the I/O address space
instead of the memory address space.
Arguments
port-
A valid 16 bit I/O port.
Return values
Returns the value of the 16 bit short word read from the I/O port.
Usage
Context and synchronization
All
contexts.
Hardware applicability
Intel IA-32 compatible platforms
Version applicability
ddi:
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
SCO OpenServer ODDI compatibility
inw(D3oddi)
provides similar functionality
for SCO OpenServer ODDI drivers,
but note that the ODDI function
is cast as an int rather than a ushort_t.
References
inb(D3),
inl(D3),
outb(D3),
outl(D3),
outw(D3),
repinsb(D3),
repinsd(D3),
repinsw(D3),
repoutsb(D3),
repoutsd(D3),
repoutsw(D3)
``Programmed I/O (PIO)'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005