3 /*===========================================================================*
5 *===========================================================================*/
6 int sys_in(port
, value
, type
)
7 int port
; /* port address to read from */
8 u32_t
*value
; /* pointer where to store value */
9 int type
; /* byte, word, long */
14 m_io
.DIO_REQUEST
= _DIO_INPUT
| type
;
17 result
= _kernel_call(SYS_DEVIO
, &m_io
);
18 *value
= m_io
.DIO_VALUE
;