minix/lib/syslib/sys_voutb.c
2005-04-21 14:53:53 +00:00

18 lines
599 B
C

#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_TYPE = DIO_BYTE;
m_io.DIO_REQUEST = DIO_OUTPUT;
m_io.DIO_VEC_ADDR = (char *) pvb_pairs;
m_io.DIO_VEC_SIZE = nr_ports;
return _taskcall(SYSTASK, SYS_VDEVIO, &m_io);
}