/* parallel port I/O functions for LINUX lpio_lnx.c 2001.1.24 H.Akitaya */ int out_lp0( unsigned int data ); unsigned int in_lp0( void ); void p_wait( unsigned long m_sec ); /* output data to lp0 (data port 1: 0-7 bit) */ int out_lp0( unsigned int data ) { outb( data, P_BASE ); return( 0 ); } /* input data from lp0 (status port 3-7 bit) */ unsigned int in_lp0( void ) { unsigned int data; data = inb( P_BASE+1 ); return( data ); } /* wait several microsec */ void p_wait( unsigned long m_sec ) { unsigned long n; for( n=1; n <= m_sec; n++){ outb( 0, WAIT ); } return; }