blob: 611775f6ec33fe890eeb7d0c5083105dbeae52dc [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
Tao Baod7db5942015-01-28 10:07:51 -080023#define PARPORT_DMA_NONE - 1
24#define PARPORT_IRQ_AUTO - 2
25#define PARPORT_DMA_AUTO - 2
26#define PARPORT_DMA_NOFIFO - 3
Tao Baod7db5942015-01-28 10:07:51 -080027#define PARPORT_DISABLE - 2
28#define PARPORT_IRQ_PROBEONLY - 3
29#define PARPORT_IOHI_AUTO - 1
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define PARPORT_CONTROL_STROBE 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define PARPORT_CONTROL_AUTOFD 0x2
32#define PARPORT_CONTROL_INIT 0x4
33#define PARPORT_CONTROL_SELECT 0x8
34#define PARPORT_STATUS_ERROR 0x8
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define PARPORT_STATUS_SELECT 0x10
36#define PARPORT_STATUS_PAPEROUT 0x20
37#define PARPORT_STATUS_ACK 0x40
38#define PARPORT_STATUS_BUSY 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070039typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080040 PARPORT_CLASS_LEGACY = 0,
41 PARPORT_CLASS_PRINTER,
42 PARPORT_CLASS_MODEM,
Tao Baod7db5942015-01-28 10:07:51 -080043 PARPORT_CLASS_NET,
44 PARPORT_CLASS_HDC,
45 PARPORT_CLASS_PCMCIA,
46 PARPORT_CLASS_MEDIA,
Tao Baod7db5942015-01-28 10:07:51 -080047 PARPORT_CLASS_FDC,
48 PARPORT_CLASS_PORTS,
49 PARPORT_CLASS_SCANNER,
50 PARPORT_CLASS_DIGCAM,
Tao Baod7db5942015-01-28 10:07:51 -080051 PARPORT_CLASS_OTHER,
52 PARPORT_CLASS_UNSPEC,
53 PARPORT_CLASS_SCSIADAPTER
Ben Cheng655a7c02013-10-16 16:09:24 -070054} parport_device_class;
Tao Baod7db5942015-01-28 10:07:51 -080055#define PARPORT_MODE_PCSPP (1 << 0)
56#define PARPORT_MODE_TRISTATE (1 << 1)
57#define PARPORT_MODE_EPP (1 << 2)
58#define PARPORT_MODE_ECP (1 << 3)
Tao Baod7db5942015-01-28 10:07:51 -080059#define PARPORT_MODE_COMPAT (1 << 4)
60#define PARPORT_MODE_DMA (1 << 5)
61#define PARPORT_MODE_SAFEININT (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define IEEE1284_MODE_NIBBLE 0
Tao Baod7db5942015-01-28 10:07:51 -080063#define IEEE1284_MODE_BYTE (1 << 0)
64#define IEEE1284_MODE_COMPAT (1 << 8)
65#define IEEE1284_MODE_BECP (1 << 9)
66#define IEEE1284_MODE_ECP (1 << 4)
Tao Baod7db5942015-01-28 10:07:51 -080067#define IEEE1284_MODE_ECPRLE (IEEE1284_MODE_ECP | (1 << 5))
68#define IEEE1284_MODE_ECPSWE (1 << 10)
69#define IEEE1284_MODE_EPP (1 << 6)
70#define IEEE1284_MODE_EPPSL (1 << 11)
Tao Baod7db5942015-01-28 10:07:51 -080071#define IEEE1284_MODE_EPPSWE (1 << 12)
72#define IEEE1284_DEVICEID (1 << 2)
73#define IEEE1284_EXT_LINK (1 << 14)
74#define IEEE1284_ADDR (1 << 13)
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define IEEE1284_DATA 0
Tao Baod7db5942015-01-28 10:07:51 -080076#define PARPORT_EPP_FAST (1 << 0)
77#define PARPORT_W91284PIC (1 << 1)
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070078#define PARPORT_EPP_FAST_32 PARPORT_EPP_FAST
79#define PARPORT_EPP_FAST_16 (1 << 2)
80#define PARPORT_EPP_FAST_8 (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -070081#endif