1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_LINUX_LP_H 7 #define _UAPI_LINUX_LP_H 8 #include <linux/types.h> 9 #include <linux/ioctl.h> 10 #define LP_EXIST 0x0001 11 #define LP_SELEC 0x0002 12 #define LP_BUSY 0x0004 13 #define LP_BUSY_BIT_POS 2 14 #define LP_OFFL 0x0008 15 #define LP_NOPA 0x0010 16 #define LP_ERR 0x0020 17 #define LP_ABORT 0x0040 18 #define LP_CAREFUL 0x0080 19 #define LP_ABORTOPEN 0x0100 20 #define LP_TRUST_IRQ_ 0x0200 21 #define LP_NO_REVERSE 0x0400 22 #define LP_DATA_AVAIL 0x0800 23 #define LP_PBUSY 0x80 24 #define LP_PACK 0x40 25 #define LP_POUTPA 0x20 26 #define LP_PSELECD 0x10 27 #define LP_PERRORP 0x08 28 #define LP_INIT_CHAR 1000 29 #define LP_INIT_WAIT 1 30 #define LP_INIT_TIME 2 31 #define LPCHAR 0x0601 32 #define LPTIME 0x0602 33 #define LPABORT 0x0604 34 #define LPSETIRQ 0x0605 35 #define LPGETIRQ 0x0606 36 #define LPWAIT 0x0608 37 #define LPCAREFUL 0x0609 38 #define LPABORTOPEN 0x060a 39 #define LPGETSTATUS 0x060b 40 #define LPRESET 0x060c 41 #ifdef LP_STATS 42 #define LPGETSTATS 0x060d 43 #endif 44 #define LPGETFLAGS 0x060e 45 #define LPSETTIMEOUT_OLD 0x060f 46 #define LPSETTIMEOUT_NEW \ 47 _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) ? \ 52 LPSETTIMEOUT_NEW : LPSETTIMEOUT_OLD) 53 #endif 54 #define LP_TIMEOUT_INTERRUPT (60 * HZ) 55 #define LP_TIMEOUT_POLLED (10 * HZ) 56 #endif 57