18 lines
574 B
C
18 lines
574 B
C
#include "syslib.h"
|
|
|
|
|
|
/*===========================================================================*
|
|
* sys_vinw *
|
|
*===========================================================================*/
|
|
PUBLIC int sys_vinw(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.DIO_REQUEST = _DIO_WORD | _DIO_INPUT;
|
|
m_io.DIO_VEC_ADDR = (char *) pvw_pairs;
|
|
m_io.DIO_VEC_SIZE = nr_ports;
|
|
return _kernel_call(SYS_VDEVIO, &m_io);
|
|
}
|
|
|