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