VM: full munmap
[minix.git] / lib / libsys / sys_out.c
blobe113846f96dfbfbd5b0114d4b39042ec0be24c1e
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_out *
5 *===========================================================================*/
6 int sys_out(port, value, type)
7 int port; /* port address to write to */
8 u32_t value; /* value to write */
9 int type; /* byte, word, long */
11 message m_io;
13 m_io.DIO_REQUEST = _DIO_OUTPUT | type;
14 m_io.DIO_PORT = port;
15 m_io.DIO_VALUE = value;
17 return _kernel_call(SYS_DEVIO, &m_io);