2005-04-21 16:53:53 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* sys_vinb *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int sys_vinb(pvb_pairs, nr_ports)
|
2005-04-21 16:53:53 +02:00
|
|
|
pvb_pair_t *pvb_pairs; /* (port,byte-value)-pairs */
|
|
|
|
int nr_ports; /* nr of pairs to be processed */
|
|
|
|
{
|
|
|
|
message m_io;
|
|
|
|
|
2014-05-21 10:45:19 +02:00
|
|
|
m_io.m_lsys_krn_sys_vdevio.request = _DIO_INPUT | _DIO_BYTE;
|
|
|
|
m_io.m_lsys_krn_sys_vdevio.vec_addr = (vir_bytes) pvb_pairs;
|
|
|
|
m_io.m_lsys_krn_sys_vdevio.vec_size = nr_ports;
|
2010-02-09 16:20:09 +01:00
|
|
|
return _kernel_call(SYS_VDEVIO, &m_io);
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|
|
|
|
|