minix3/lib/libsys/arch/i386/sys_voutw.c

18 lines
625 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#include "syslib.h"
/*===========================================================================*
* sys_voutw *
*===========================================================================*/
int sys_voutw(pvw_pairs, nr_ports)
pvw_pair_t *pvw_pairs; /* (port,word-value)-pairs */
int nr_ports; /* nr of pairs to be processed */
{
message m_io;
m_io.m_lsys_krn_sys_vdevio.request = _DIO_OUTPUT | _DIO_WORD;
m_io.m_lsys_krn_sys_vdevio.vec_addr = (vir_bytes)pvw_pairs;
m_io.m_lsys_krn_sys_vdevio.vec_size = nr_ports;
return _kernel_call(SYS_VDEVIO, &m_io);
}