1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_PARPORT_H_ 20 #define _UAPI_PARPORT_H_ 21 #define PARPORT_MAX 16 22 #define PARPORT_IRQ_NONE - 1 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define PARPORT_DMA_NONE - 1 25 #define PARPORT_IRQ_AUTO - 2 26 #define PARPORT_DMA_AUTO - 2 27 #define PARPORT_DMA_NOFIFO - 3 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define PARPORT_DISABLE - 2 30 #define PARPORT_IRQ_PROBEONLY - 3 31 #define PARPORT_IOHI_AUTO - 1 32 #define PARPORT_CONTROL_STROBE 0x1 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define PARPORT_CONTROL_AUTOFD 0x2 35 #define PARPORT_CONTROL_INIT 0x4 36 #define PARPORT_CONTROL_SELECT 0x8 37 #define PARPORT_STATUS_ERROR 0x8 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define PARPORT_STATUS_SELECT 0x10 40 #define PARPORT_STATUS_PAPEROUT 0x20 41 #define PARPORT_STATUS_ACK 0x40 42 #define PARPORT_STATUS_BUSY 0x80 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 typedef enum { 45 PARPORT_CLASS_LEGACY = 0, 46 PARPORT_CLASS_PRINTER, 47 PARPORT_CLASS_MODEM, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 PARPORT_CLASS_NET, 50 PARPORT_CLASS_HDC, 51 PARPORT_CLASS_PCMCIA, 52 PARPORT_CLASS_MEDIA, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 PARPORT_CLASS_FDC, 55 PARPORT_CLASS_PORTS, 56 PARPORT_CLASS_SCANNER, 57 PARPORT_CLASS_DIGCAM, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 PARPORT_CLASS_OTHER, 60 PARPORT_CLASS_UNSPEC, 61 PARPORT_CLASS_SCSIADAPTER 62 } parport_device_class; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define PARPORT_MODE_PCSPP (1 << 0) 65 #define PARPORT_MODE_TRISTATE (1 << 1) 66 #define PARPORT_MODE_EPP (1 << 2) 67 #define PARPORT_MODE_ECP (1 << 3) 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define PARPORT_MODE_COMPAT (1 << 4) 70 #define PARPORT_MODE_DMA (1 << 5) 71 #define PARPORT_MODE_SAFEININT (1 << 6) 72 #define IEEE1284_MODE_NIBBLE 0 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define IEEE1284_MODE_BYTE (1 << 0) 75 #define IEEE1284_MODE_COMPAT (1 << 8) 76 #define IEEE1284_MODE_BECP (1 << 9) 77 #define IEEE1284_MODE_ECP (1 << 4) 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define IEEE1284_MODE_ECPRLE (IEEE1284_MODE_ECP | (1 << 5)) 80 #define IEEE1284_MODE_ECPSWE (1 << 10) 81 #define IEEE1284_MODE_EPP (1 << 6) 82 #define IEEE1284_MODE_EPPSL (1 << 11) 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define IEEE1284_MODE_EPPSWE (1 << 12) 85 #define IEEE1284_DEVICEID (1 << 2) 86 #define IEEE1284_EXT_LINK (1 << 14) 87 #define IEEE1284_ADDR (1 << 13) 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define IEEE1284_DATA 0 90 #define PARPORT_EPP_FAST (1 << 0) 91 #define PARPORT_W91284PIC (1 << 1) 92 #endif 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94