8000 minix/lib/syslib/sys_voutb.c at R3.1.3 · devinblood/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 582 Bytes

sys_voutb.c

File metadata and controls

17 lines (14 loc) · 582 Bytes
#include "syslib.h"
/*===========================================================================*
* sys_voutb *
*===========================================================================*/
PUBLIC int sys_voutb(pvb_pairs, nr_ports)
pvb_pair_t *pvb_pairs; /* (port,byte-value)-pairs */
int nr_ports; /* nr of pairs to be processed */
{
message m_io;
m_io.DIO_REQUEST = _DIO_OUTPUT | _DIO_BYTE;
m_io.DIO_VEC_ADDR = (char *) pvb_pairs;
m_io.DIO_VEC_SIZE = nr_ports;
return _taskcall(SYSTASK, SYS_VDEVIO, &m_io);
}
0