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#define PARPORT_DMA_NONE - 1
24#define PARPORT_IRQ_AUTO - 2
25#define PARPORT_DMA_AUTO - 2
26#define PARPORT_DMA_NOFIFO - 3
27#define PARPORT_DISABLE - 2
28#define PARPORT_IRQ_PROBEONLY - 3
29#define PARPORT_IOHI_AUTO - 1
30#define PARPORT_CONTROL_STROBE 0x1
31#define PARPORT_CONTROL_AUTOFD 0x2
32#define PARPORT_CONTROL_INIT 0x4
33#define PARPORT_CONTROL_SELECT 0x8
34#define PARPORT_STATUS_ERROR 0x8
35#define PARPORT_STATUS_SELECT 0x10
36#define PARPORT_STATUS_PAPEROUT 0x20
37#define PARPORT_STATUS_ACK 0x40
38#define PARPORT_STATUS_BUSY 0x80
39typedef enum {
40  PARPORT_CLASS_LEGACY = 0,
41  PARPORT_CLASS_PRINTER,
42  PARPORT_CLASS_MODEM,
43  PARPORT_CLASS_NET,
44  PARPORT_CLASS_HDC,
45  PARPORT_CLASS_PCMCIA,
46  PARPORT_CLASS_MEDIA,
47  PARPORT_CLASS_FDC,
48  PARPORT_CLASS_PORTS,
49  PARPORT_CLASS_SCANNER,
50  PARPORT_CLASS_DIGCAM,
51  PARPORT_CLASS_OTHER,
52  PARPORT_CLASS_UNSPEC,
53  PARPORT_CLASS_SCSIADAPTER
54} parport_device_class;
55#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)
59#define PARPORT_MODE_COMPAT (1 << 4)
60#define PARPORT_MODE_DMA (1 << 5)
61#define PARPORT_MODE_SAFEININT (1 << 6)
62#define IEEE1284_MODE_NIBBLE 0
63#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)
67#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)
71#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)
75#define IEEE1284_DATA 0
76#define PARPORT_EPP_FAST (1 << 0)
77#define PARPORT_W91284PIC (1 << 1)
78#endif
79