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_LINUX_LP_H
20 #define _UAPI_LINUX_LP_H
21 #include <linux/types.h>
22 #include <linux/ioctl.h>
23 #define LP_EXIST 0x0001
24 #define LP_SELEC 0x0002
25 #define LP_BUSY 0x0004
26 #define LP_BUSY_BIT_POS 2
27 #define LP_OFFL 0x0008
28 #define LP_NOPA 0x0010
29 #define LP_ERR 0x0020
30 #define LP_ABORT 0x0040
31 #define LP_CAREFUL 0x0080
32 #define LP_ABORTOPEN 0x0100
33 #define LP_TRUST_IRQ_ 0x0200
34 #define LP_NO_REVERSE 0x0400
35 #define LP_DATA_AVAIL 0x0800
36 #define LP_PBUSY 0x80
37 #define LP_PACK 0x40
38 #define LP_POUTPA 0x20
39 #define LP_PSELECD 0x10
40 #define LP_PERRORP 0x08
41 #define LP_INIT_CHAR 1000
42 #define LP_INIT_WAIT 1
43 #define LP_INIT_TIME 2
44 #define LPCHAR 0x0601
45 #define LPTIME 0x0602
46 #define LPABORT 0x0604
47 #define LPSETIRQ 0x0605
48 #define LPGETIRQ 0x0606
49 #define LPWAIT 0x0608
50 #define LPCAREFUL 0x0609
51 #define LPABORTOPEN 0x060a
52 #define LPGETSTATUS 0x060b
53 #define LPRESET 0x060c
54 #ifdef LP_STATS
55 #define LPGETSTATS 0x060d
56 #endif
57 #define LPGETFLAGS 0x060e
58 #define LPSETTIMEOUT_OLD 0x060f
59 #define LPSETTIMEOUT_NEW _IOW(0x6, 0xf, __s64[2])
60 #if __BITS_PER_LONG == 64
61 #define LPSETTIMEOUT LPSETTIMEOUT_OLD
62 #else
63 #define LPSETTIMEOUT (sizeof(time_t) > sizeof(__kernel_long_t) ? LPSETTIMEOUT_NEW : LPSETTIMEOUT_OLD)
64 #endif
65 #define LP_TIMEOUT_INTERRUPT (60 * HZ)
66 #define LP_TIMEOUT_POLLED (10 * HZ)
67 #endif
68