DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

repoutsw(D3)


repoutsw -- write 16 bit words from buffer to an I/O port

Synopsis

   #include <sys/types.h>
   #include <sys/ddi.h>
   

void repoutsw(int port, ushort_t *addr, int cnt);

Description

The repoutsw function provides a C language interface to the machine instructions that write a string of 16 bit short words to a 16 bit I/O port using the I/O address space, instead of the memory address space. cnt 16 bit words starting at the address pointed to by addr are written to the I/O port in cnt write operations.

Arguments


port
A valid 16 bit I/O port.

addr
The address of the buffer from which cnt 16 bit words are written to the I/O port.

cnt
The number of 16 bit words to be written to the I/O port.

Return values

None

Usage

The buffer should be at least cnt 16 bit words in length.

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

References

inb(D3), inl(D3), inw(D3), outb(D3), outl(D3), outw(D3), repinsb(D3), repinsd(D3), repinsw(D3), repoutsb(D3), repoutsd(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