source: trunk/minix/lib/syslib/sys_out.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 584 bytes
RevLine 
[9]1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_out *
5 *===========================================================================*/
6PUBLIC int sys_out(port, value, type)
7int port; /* port address to write to */
8unsigned long value; /* value to write */
9int type; /* byte, word, long */
10{
11 message m_io;
12
13 m_io.DIO_TYPE = type;
14 m_io.DIO_REQUEST = DIO_OUTPUT;
15 m_io.DIO_PORT = port;
16 m_io.DIO_VALUE = value;
17
18 return _taskcall(SYSTASK, SYS_DEVIO, &m_io);
19}
20
Note: See TracBrowser for help on using the repository browser.