2005-04-21 16:53:53 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* sys_out *
|
|
|
|
*===========================================================================*/
|
|
|
|
PUBLIC int sys_out(port, value, type)
|
|
|
|
int port; /* port address to write to */
|
|
|
|
unsigned long value; /* value to write */
|
|
|
|
int type; /* byte, word, long */
|
|
|
|
{
|
|
|
|
message m_io;
|
|
|
|
|
2006-06-20 10:45:04 +02:00
|
|
|
m_io.DIO_REQUEST = _DIO_OUTPUT | type;
|
2005-04-21 16:53:53 +02:00
|
|
|
m_io.DIO_PORT = port;
|
|
|
|
m_io.DIO_VALUE = value;
|
|
|
|
|
2010-02-09 16:20:09 +01:00
|
|
|
return _kernel_call(SYS_DEVIO, &m_io);
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|
|
|
|
|