Make /dev/c1* device nodes on disk and on the boot ramdisk.
[minix3.git] / lib / syslib / sys_in.c
blob2a6fa0cc812606a50b9b7cfe19fb791a264c47e0
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_in *
5 *===========================================================================*/
6 PUBLIC int sys_in(port, value, type)
7 int port; /* port address to read from */
8 unsigned long *value; /* pointer where to store value */
9 int type; /* byte, word, long */
11 message m_io;
12 int result;
14 m_io.DIO_REQUEST = _DIO_INPUT | type;
15 m_io.DIO_PORT = port;
17 result = _taskcall(SYSTASK, SYS_DEVIO, &m_io);
18 *value = m_io.DIO_VALUE;
19 return(result);