custom message type for SYS_DEVIO
This commit is contained in:
@@ -11,11 +11,11 @@ int type; /* byte, word, long */
|
||||
message m_io;
|
||||
int result;
|
||||
|
||||
m_io.DIO_REQUEST = _DIO_INPUT | type;
|
||||
m_io.DIO_PORT = port;
|
||||
m_io.m_lsys_krn_sys_devio.request = _DIO_INPUT | type;
|
||||
m_io.m_lsys_krn_sys_devio.port = port;
|
||||
|
||||
result = _kernel_call(SYS_DEVIO, &m_io);
|
||||
*value = m_io.DIO_VALUE;
|
||||
*value = m_io.m_krn_lsys_sys_devio.value;
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ int type; /* byte, word, long */
|
||||
{
|
||||
message m_io;
|
||||
|
||||
m_io.DIO_REQUEST = _DIO_OUTPUT | type;
|
||||
m_io.DIO_PORT = port;
|
||||
m_io.DIO_VALUE = value;
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user