Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 22 | #define PARPORT_IRQ_NONE - 1 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | #define PARPORT_DMA_NONE - 1 |
| 24 | #define PARPORT_IRQ_AUTO - 2 |
| 25 | #define PARPORT_DMA_AUTO - 2 |
| 26 | #define PARPORT_DMA_NOFIFO - 3 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | #define PARPORT_DISABLE - 2 |
| 28 | #define PARPORT_IRQ_PROBEONLY - 3 |
| 29 | #define PARPORT_IOHI_AUTO - 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define PARPORT_CONTROL_STROBE 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define PARPORT_CONTROL_AUTOFD 0x2 |
| 32 | #define PARPORT_CONTROL_INIT 0x4 |
| 33 | #define PARPORT_CONTROL_SELECT 0x8 |
| 34 | #define PARPORT_STATUS_ERROR 0x8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define PARPORT_STATUS_SELECT 0x10 |
| 36 | #define PARPORT_STATUS_PAPEROUT 0x20 |
| 37 | #define PARPORT_STATUS_ACK 0x40 |
| 38 | #define PARPORT_STATUS_BUSY 0x80 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | typedef enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | PARPORT_CLASS_LEGACY = 0, |
| 41 | PARPORT_CLASS_PRINTER, |
| 42 | PARPORT_CLASS_MODEM, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | PARPORT_CLASS_NET, |
| 44 | PARPORT_CLASS_HDC, |
| 45 | PARPORT_CLASS_PCMCIA, |
| 46 | PARPORT_CLASS_MEDIA, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | PARPORT_CLASS_FDC, |
| 48 | PARPORT_CLASS_PORTS, |
| 49 | PARPORT_CLASS_SCANNER, |
| 50 | PARPORT_CLASS_DIGCAM, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | PARPORT_CLASS_OTHER, |
| 52 | PARPORT_CLASS_UNSPEC, |
| 53 | PARPORT_CLASS_SCSIADAPTER |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | } parport_device_class; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | #define PARPORT_MODE_COMPAT (1 << 4) |
| 60 | #define PARPORT_MODE_DMA (1 << 5) |
| 61 | #define PARPORT_MODE_SAFEININT (1 << 6) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 62 | #define IEEE1284_MODE_NIBBLE 0 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 75 | #define IEEE1284_DATA 0 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 76 | #define PARPORT_EPP_FAST (1 << 0) |
| 77 | #define PARPORT_W91284PIC (1 << 1) |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame^] | 78 | #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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 81 | #endif |