minix/lib/libsys/sys_voutw.c

19 lines
570 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include "syslib.h"
/*===========================================================================*
* sys_voutw *
*===========================================================================*/
2012-03-25 20:25:53 +02:00
int sys_voutw(pvw_pairs, nr_ports)
2005-04-21 16:53:53 +02:00
pvw_pair_t *pvw_pairs; /* (port,word-value)-pairs */
int nr_ports; /* nr of pairs to be processed */
{
message m_io;
m_io.DIO_REQUEST = _DIO_OUTPUT | _DIO_WORD;
2005-04-21 16:53:53 +02:00
m_io.DIO_VEC_ADDR = (char *) pvw_pairs;
m_io.DIO_VEC_SIZE = nr_ports;
return _kernel_call(SYS_VDEVIO, &m_io);
2005-04-21 16:53:53 +02:00
}