Remove building with NOCRYPTO option
[minix.git] / minix / lib / libsys / arch / i386 / sys_sdevio.c
blobc589f63f56c1754fffd438c4912075384c34c26b
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_sdevio *
5 *===========================================================================*/
6 int sys_sdevio(req, port, proc_nr, buffer, count, offset)
7 int req; /* request: DIO_{IN,OUT}PUT_* */
8 long port; /* port address to read from */
9 endpoint_t proc_nr; /* process where buffer is */
10 void *buffer; /* pointer to buffer */
11 int count; /* number of elements */
12 vir_bytes offset; /* offset from grant */
14 message m_io;
16 m_io.m_lsys_krn_sys_sdevio.request = req;
17 m_io.m_lsys_krn_sys_sdevio.port = port;
18 m_io.m_lsys_krn_sys_sdevio.vec_endpt = proc_nr;
19 m_io.m_lsys_krn_sys_sdevio.vec_addr = (vir_bytes)buffer;
20 m_io.m_lsys_krn_sys_sdevio.vec_size = count;
21 m_io.m_lsys_krn_sys_sdevio.offset = offset;
23 return(_kernel_call(SYS_SDEVIO, &m_io));