1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_PARPORT_H_ 7 #define _UAPI_PARPORT_H_ 8 #define PARPORT_MAX 16 9 #define PARPORT_IRQ_NONE -1 10 #define PARPORT_DMA_NONE -1 11 #define PARPORT_IRQ_AUTO -2 12 #define PARPORT_DMA_AUTO -2 13 #define PARPORT_DMA_NOFIFO -3 14 #define PARPORT_DISABLE -2 15 #define PARPORT_IRQ_PROBEONLY -3 16 #define PARPORT_IOHI_AUTO -1 17 #define PARPORT_CONTROL_STROBE 0x1 18 #define PARPORT_CONTROL_AUTOFD 0x2 19 #define PARPORT_CONTROL_INIT 0x4 20 #define PARPORT_CONTROL_SELECT 0x8 21 #define PARPORT_STATUS_ERROR 0x8 22 #define PARPORT_STATUS_SELECT 0x10 23 #define PARPORT_STATUS_PAPEROUT 0x20 24 #define PARPORT_STATUS_ACK 0x40 25 #define PARPORT_STATUS_BUSY 0x80 26 typedef enum { 27 PARPORT_CLASS_LEGACY = 0, 28 PARPORT_CLASS_PRINTER, 29 PARPORT_CLASS_MODEM, 30 PARPORT_CLASS_NET, 31 PARPORT_CLASS_HDC, 32 PARPORT_CLASS_PCMCIA, 33 PARPORT_CLASS_MEDIA, 34 PARPORT_CLASS_FDC, 35 PARPORT_CLASS_PORTS, 36 PARPORT_CLASS_SCANNER, 37 PARPORT_CLASS_DIGCAM, 38 PARPORT_CLASS_OTHER, 39 PARPORT_CLASS_UNSPEC, 40 PARPORT_CLASS_SCSIADAPTER 41 } parport_device_class; 42 #define PARPORT_MODE_PCSPP (1<<0) 43 #define PARPORT_MODE_TRISTATE (1<<1) 44 #define PARPORT_MODE_EPP (1<<2) 45 #define PARPORT_MODE_ECP (1<<3) 46 #define PARPORT_MODE_COMPAT (1<<4) 47 #define PARPORT_MODE_DMA (1<<5) 48 #define PARPORT_MODE_SAFEININT (1<<6) 49 #define IEEE1284_MODE_NIBBLE 0 50 #define IEEE1284_MODE_BYTE (1<<0) 51 #define IEEE1284_MODE_COMPAT (1<<8) 52 #define IEEE1284_MODE_BECP (1<<9) 53 #define IEEE1284_MODE_ECP (1<<4) 54 #define IEEE1284_MODE_ECPRLE (IEEE1284_MODE_ECP | (1<<5)) 55 #define IEEE1284_MODE_ECPSWE (1<<10) 56 #define IEEE1284_MODE_EPP (1<<6) 57 #define IEEE1284_MODE_EPPSL (1<<11) 58 #define IEEE1284_MODE_EPPSWE (1<<12) 59 #define IEEE1284_DEVICEID (1<<2) 60 #define IEEE1284_EXT_LINK (1<<14) 61 #define IEEE1284_ADDR (1<<13) 62 #define IEEE1284_DATA 0 63 #define PARPORT_EPP_FAST (1<<0) 64 #define PARPORT_W91284PIC (1<<1) 65 #endif 66