source: trunk/minix/lib/syslib/sys_sdevio.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: 825 bytes
RevLine 
[9]1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_sdevio *
5 *===========================================================================*/
6PUBLIC int sys_sdevio(req, port, type, proc_nr, buffer, count)
7int req; /* request: DIO_INPUT/ DIO_OUTPUT */
8long port; /* port address to read from */
9int type; /* byte, word, long */
10int proc_nr; /* process where buffer is */
11void *buffer; /* pointer to buffer */
12int count; /* number of elements */
13{
14 message m_io;
15 int result;
16
17 m_io.DIO_REQUEST = req;
18 m_io.DIO_TYPE = type;
19 m_io.DIO_PORT = port;
20 m_io.DIO_VEC_ENDPT = proc_nr;
21 m_io.DIO_VEC_ADDR = buffer;
22 m_io.DIO_VEC_SIZE = count;
23
24 return(_taskcall(SYSTASK, SYS_SDEVIO, &m_io));
25}
26
Note: See TracBrowser for help on using the repository browser.