3 /*===========================================================================*
5 *===========================================================================*/
6 int sys_sdevio(req
, port
, proc_nr
, buffer
, count
, offset
)
7 int req
; /* request: DIO_{IN,OUT}PUT_* */
8 long port
; /* port address to read from */
9 endpoint_t proc_nr
; /* process where buffer is */
10 void *buffer
; /* pointer to buffer */
11 int count
; /* number of elements */
12 vir_bytes offset
; /* offset from grant */
16 m_io
.DIO_REQUEST
= req
;
18 m_io
.DIO_VEC_ENDPT
= proc_nr
;
19 m_io
.DIO_VEC_ADDR
= buffer
;
20 m_io
.DIO_VEC_SIZE
= count
;
21 m_io
.DIO_OFFSET
= offset
;
23 return(_kernel_call(SYS_SDEVIO
, &m_io
));