source: trunk/minix/lib/syslib/sys_vinw.c@ 20

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

Minix 3.1.2a

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