Home | History | Annotate | Line # | Download | only in ppbus
lptio.h revision 1.3
      1 /* $NetBSD: lptio.h,v 1.3 2004/01/28 09:29:06 jdolecek Exp $ */
      2 
      3 #ifndef __DEV_PPBUS_LPTIO_H_
      4 #define __DEV_PPBUS_LPTIO_H_
      5 
      6 /* Definitions for get status command */
      7 enum lpt_mode_t {
      8 	standard = 1,
      9 	nibble = 2,
     10 	ps2 = 3,
     11 	fast = 4,
     12 	ecp = 5,
     13 	epp = 6
     14 };
     15 
     16 typedef struct {
     17 	u_int16_t mode_status;
     18 	u_int8_t dma_status;
     19 	u_int8_t ieee_status;
     20 } LPT_INFO_T;
     21 
     22 /* LPT ioctl commands */
     23 #define LPTIO_ENABLE_DMA	_IO('L', 0)
     24 #define LPTIO_DISABLE_DMA	_IO('L', 1)
     25 #define LPTIO_MODE_STD		_IO('L', 2)
     26 #define LPTIO_MODE_FAST		_IO('L', 3)
     27 #define LPTIO_MODE_PS2		_IO('L', 4)
     28 #define LPTIO_MODE_ECP		_IO('L', 5)
     29 #define LPTIO_MODE_EPP		_IO('L', 6)
     30 #define LPTIO_MODE_NIBBLE	_IO('L', 7)
     31 #define LPTIO_ENABLE_IEEE	_IO('L', 8)
     32 #define LPTIO_DISABLE_IEEE	_IO('L', 9)
     33 #define LPTIO_GET_STATUS	_IOR('L', 10, LPT_INFO_T)
     34 
     35 #endif /* __DEV_PPBUS_LPTIO_H_ */
     36