blob: 6fa97661570402a1c817911d7588393537a28066 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_PARPORT_H_
8#define _UAPI_PARPORT_H_
9#define PARPORT_MAX 16
Tao Baod7db5942015-01-28 10:07:51 -080010#define PARPORT_IRQ_NONE - 1
Tao Baod7db5942015-01-28 10:07:51 -080011#define PARPORT_DMA_NONE - 1
12#define PARPORT_IRQ_AUTO - 2
13#define PARPORT_DMA_AUTO - 2
14#define PARPORT_DMA_NOFIFO - 3
Tao Baod7db5942015-01-28 10:07:51 -080015#define PARPORT_DISABLE - 2
16#define PARPORT_IRQ_PROBEONLY - 3
17#define PARPORT_IOHI_AUTO - 1
Ben Cheng655a7c02013-10-16 16:09:24 -070018#define PARPORT_CONTROL_STROBE 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define PARPORT_CONTROL_AUTOFD 0x2
20#define PARPORT_CONTROL_INIT 0x4
21#define PARPORT_CONTROL_SELECT 0x8
22#define PARPORT_STATUS_ERROR 0x8
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define PARPORT_STATUS_SELECT 0x10
24#define PARPORT_STATUS_PAPEROUT 0x20
25#define PARPORT_STATUS_ACK 0x40
26#define PARPORT_STATUS_BUSY 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070027typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080028 PARPORT_CLASS_LEGACY = 0,
29 PARPORT_CLASS_PRINTER,
30 PARPORT_CLASS_MODEM,
Tao Baod7db5942015-01-28 10:07:51 -080031 PARPORT_CLASS_NET,
32 PARPORT_CLASS_HDC,
33 PARPORT_CLASS_PCMCIA,
34 PARPORT_CLASS_MEDIA,
Tao Baod7db5942015-01-28 10:07:51 -080035 PARPORT_CLASS_FDC,
36 PARPORT_CLASS_PORTS,
37 PARPORT_CLASS_SCANNER,
38 PARPORT_CLASS_DIGCAM,
Tao Baod7db5942015-01-28 10:07:51 -080039 PARPORT_CLASS_OTHER,
40 PARPORT_CLASS_UNSPEC,
41 PARPORT_CLASS_SCSIADAPTER
Ben Cheng655a7c02013-10-16 16:09:24 -070042} parport_device_class;
Tao Baod7db5942015-01-28 10:07:51 -080043#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)
Tao Baod7db5942015-01-28 10:07:51 -080047#define PARPORT_MODE_COMPAT (1 << 4)
48#define PARPORT_MODE_DMA (1 << 5)
49#define PARPORT_MODE_SAFEININT (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define IEEE1284_MODE_NIBBLE 0
Tao Baod7db5942015-01-28 10:07:51 -080051#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)
Tao Baod7db5942015-01-28 10:07:51 -080055#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)
Tao Baod7db5942015-01-28 10:07:51 -080059#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define IEEE1284_DATA 0
Tao Baod7db5942015-01-28 10:07:51 -080064#define PARPORT_EPP_FAST (1 << 0)
65#define PARPORT_W91284PIC (1 << 1)
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070066#define PARPORT_EPP_FAST_32 PARPORT_EPP_FAST
67#define PARPORT_EPP_FAST_16 (1 << 2)
68#define PARPORT_EPP_FAST_8 (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -070069#endif