1*433d6423SLionel Sambuc #include "syslib.h" 2*433d6423SLionel Sambuc 3*433d6423SLionel Sambuc /*===========================================================================* 4*433d6423SLionel Sambuc * sys_out * 5*433d6423SLionel Sambuc *===========================================================================*/ sys_out(port,value,type)6*433d6423SLionel Sambucint sys_out(port, value, type) 7*433d6423SLionel Sambuc int port; /* port address to write to */ 8*433d6423SLionel Sambuc u32_t value; /* value to write */ 9*433d6423SLionel Sambuc int type; /* byte, word, long */ 10*433d6423SLionel Sambuc { 11*433d6423SLionel Sambuc message m_io; 12*433d6423SLionel Sambuc 13*433d6423SLionel Sambuc m_io.m_lsys_krn_sys_devio.request = _DIO_OUTPUT | type; 14*433d6423SLionel Sambuc m_io.m_lsys_krn_sys_devio.port = port; 15*433d6423SLionel Sambuc m_io.m_lsys_krn_sys_devio.value = value; 16*433d6423SLionel Sambuc 17*433d6423SLionel Sambuc return _kernel_call(SYS_DEVIO, &m_io); 18*433d6423SLionel Sambuc } 19*433d6423SLionel Sambuc 20