source: trunk/minix/lib/syslib/sys_vinb.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 596 bytes
Line 
1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_vinb *
5 *===========================================================================*/
6PUBLIC int sys_vinb(pvb_pairs, nr_ports)
7pvb_pair_t *pvb_pairs; /* (port,byte-value)-pairs */
8int nr_ports; /* nr of pairs to be processed */
9{
10 message m_io;
11
12 m_io.DIO_TYPE = DIO_BYTE;
13 m_io.DIO_REQUEST = DIO_INPUT;
14 m_io.DIO_VEC_ADDR = (char *) pvb_pairs;
15 m_io.DIO_VEC_SIZE = nr_ports;
16 return _taskcall(SYSTASK, SYS_VDEVIO, &m_io);
17}
18
Note: See TracBrowser for help on using the repository browser.