blob: 83a7d088819d76f83daeaf9e326774f4bf1120a9 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Tao Baod7db5942015-01-28 10:07:51 -080022#define PARPORT_IRQ_NONE - 1
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define PARPORT_DMA_NONE - 1
25#define PARPORT_IRQ_AUTO - 2
26#define PARPORT_DMA_AUTO - 2
27#define PARPORT_DMA_NOFIFO - 3
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define PARPORT_DISABLE - 2
30#define PARPORT_IRQ_PROBEONLY - 3
31#define PARPORT_IOHI_AUTO - 1
Ben Cheng655a7c02013-10-16 16:09:24 -070032#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 */
44typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080045 PARPORT_CLASS_LEGACY = 0,
46 PARPORT_CLASS_PRINTER,
47 PARPORT_CLASS_MODEM,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 PARPORT_CLASS_NET,
50 PARPORT_CLASS_HDC,
51 PARPORT_CLASS_PCMCIA,
52 PARPORT_CLASS_MEDIA,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 PARPORT_CLASS_FDC,
55 PARPORT_CLASS_PORTS,
56 PARPORT_CLASS_SCANNER,
57 PARPORT_CLASS_DIGCAM,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 PARPORT_CLASS_OTHER,
60 PARPORT_CLASS_UNSPEC,
61 PARPORT_CLASS_SCSIADAPTER
Ben Cheng655a7c02013-10-16 16:09:24 -070062} parport_device_class;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069#define PARPORT_MODE_COMPAT (1 << 4)
70#define PARPORT_MODE_DMA (1 << 5)
71#define PARPORT_MODE_SAFEININT (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define IEEE1284_MODE_NIBBLE 0
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define IEEE1284_DATA 0
Tao Baod7db5942015-01-28 10:07:51 -080090#define PARPORT_EPP_FAST (1 << 0)
91#define PARPORT_W91284PIC (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070092#endif
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */