1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_PARPORT_H_
8 #define _UAPI_PARPORT_H_
9 #define PARPORT_MAX 16
10 #define PARPORT_IRQ_NONE - 1
11 #define PARPORT_DMA_NONE - 1
12 #define PARPORT_IRQ_AUTO - 2
13 #define PARPORT_DMA_AUTO - 2
14 #define PARPORT_DMA_NOFIFO - 3
15 #define PARPORT_DISABLE - 2
16 #define PARPORT_IRQ_PROBEONLY - 3
17 #define PARPORT_IOHI_AUTO - 1
18 #define PARPORT_CONTROL_STROBE 0x1
19 #define PARPORT_CONTROL_AUTOFD 0x2
20 #define PARPORT_CONTROL_INIT 0x4
21 #define PARPORT_CONTROL_SELECT 0x8
22 #define PARPORT_STATUS_ERROR 0x8
23 #define PARPORT_STATUS_SELECT 0x10
24 #define PARPORT_STATUS_PAPEROUT 0x20
25 #define PARPORT_STATUS_ACK 0x40
26 #define PARPORT_STATUS_BUSY 0x80
27 typedef enum {
28   PARPORT_CLASS_LEGACY = 0,
29   PARPORT_CLASS_PRINTER,
30   PARPORT_CLASS_MODEM,
31   PARPORT_CLASS_NET,
32   PARPORT_CLASS_HDC,
33   PARPORT_CLASS_PCMCIA,
34   PARPORT_CLASS_MEDIA,
35   PARPORT_CLASS_FDC,
36   PARPORT_CLASS_PORTS,
37   PARPORT_CLASS_SCANNER,
38   PARPORT_CLASS_DIGCAM,
39   PARPORT_CLASS_OTHER,
40   PARPORT_CLASS_UNSPEC,
41   PARPORT_CLASS_SCSIADAPTER
42 } parport_device_class;
43 #define PARPORT_MODE_PCSPP (1 << 0)
44 #define PARPORT_MODE_TRISTATE (1 << 1)
45 #define PARPORT_MODE_EPP (1 << 2)
46 #define PARPORT_MODE_ECP (1 << 3)
47 #define PARPORT_MODE_COMPAT (1 << 4)
48 #define PARPORT_MODE_DMA (1 << 5)
49 #define PARPORT_MODE_SAFEININT (1 << 6)
50 #define IEEE1284_MODE_NIBBLE 0
51 #define IEEE1284_MODE_BYTE (1 << 0)
52 #define IEEE1284_MODE_COMPAT (1 << 8)
53 #define IEEE1284_MODE_BECP (1 << 9)
54 #define IEEE1284_MODE_ECP (1 << 4)
55 #define IEEE1284_MODE_ECPRLE (IEEE1284_MODE_ECP | (1 << 5))
56 #define IEEE1284_MODE_ECPSWE (1 << 10)
57 #define IEEE1284_MODE_EPP (1 << 6)
58 #define IEEE1284_MODE_EPPSL (1 << 11)
59 #define IEEE1284_MODE_EPPSWE (1 << 12)
60 #define IEEE1284_DEVICEID (1 << 2)
61 #define IEEE1284_EXT_LINK (1 << 14)
62 #define IEEE1284_ADDR (1 << 13)
63 #define IEEE1284_DATA 0
64 #define PARPORT_EPP_FAST (1 << 0)
65 #define PARPORT_W91284PIC (1 << 1)
66 #define PARPORT_EPP_FAST_32 PARPORT_EPP_FAST
67 #define PARPORT_EPP_FAST_16 (1 << 2)
68 #define PARPORT_EPP_FAST_8 (1 << 3)
69 #endif
70