explanations with common test3 errors.
[minix3.git] / lib / syslib / sys_out.c
blobf1f2a03d7110a1a0327b129383b496e3499e1e06
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_out *
5 *===========================================================================*/
6 PUBLIC int sys_out(port, value, type)
7 int port; /* port address to write to */
8 unsigned long 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 _taskcall(SYSTASK, SYS_DEVIO, &m_io);