summaryrefslogtreecommitdiff
path: root/minix/lib/libsys/arch/i386/sys_out.c
blob: e34d1f7febd95037c5e2ad9af6d361bfdb07b7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "syslib.h"

/*===========================================================================*
 *                                sys_out				     *
 *===========================================================================*/
int sys_out(port, value, type)
int port; 				/* port address to write to */
u32_t value;				/* value to write */
int type;				/* byte, word, long */
{
    message m_io;

    m_io.m_lsys_krn_sys_devio.request = _DIO_OUTPUT | type;
    m_io.m_lsys_krn_sys_devio.port = port;
    m_io.m_lsys_krn_sys_devio.value = value;

    return _kernel_call(SYS_DEVIO, &m_io);
}