diff options
Diffstat (limited to 'include/uapi/linux/lp.h')
-rw-r--r-- | include/uapi/linux/lp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/uapi/linux/lp.h b/include/uapi/linux/lp.h index dafcfe4e4834..8589a27037d7 100644 --- a/include/uapi/linux/lp.h +++ b/include/uapi/linux/lp.h | |||
@@ -8,6 +8,8 @@ | |||
8 | #ifndef _UAPI_LINUX_LP_H | 8 | #ifndef _UAPI_LINUX_LP_H |
9 | #define _UAPI_LINUX_LP_H | 9 | #define _UAPI_LINUX_LP_H |
10 | 10 | ||
11 | #include <linux/types.h> | ||
12 | #include <linux/ioctl.h> | ||
11 | 13 | ||
12 | /* | 14 | /* |
13 | * Per POSIX guidelines, this module reserves the LP and lp prefixes | 15 | * Per POSIX guidelines, this module reserves the LP and lp prefixes |
@@ -88,7 +90,15 @@ | |||
88 | #define LPGETSTATS 0x060d /* get statistics (struct lp_stats) */ | 90 | #define LPGETSTATS 0x060d /* get statistics (struct lp_stats) */ |
89 | #endif | 91 | #endif |
90 | #define LPGETFLAGS 0x060e /* get status flags */ | 92 | #define LPGETFLAGS 0x060e /* get status flags */ |
91 | #define LPSETTIMEOUT 0x060f /* set parport timeout */ | 93 | #define LPSETTIMEOUT_OLD 0x060f /* set parport timeout */ |
94 | #define LPSETTIMEOUT_NEW \ | ||
95 | _IOW(0x6, 0xf, __s64[2]) /* set parport timeout */ | ||
96 | #if __BITS_PER_LONG == 64 | ||
97 | #define LPSETTIMEOUT LPSETTIMEOUT_OLD | ||
98 | #else | ||
99 | #define LPSETTIMEOUT (sizeof(time_t) > sizeof(__kernel_long_t) ? \ | ||
100 | LPSETTIMEOUT_NEW : LPSETTIMEOUT_OLD) | ||
101 | #endif | ||
92 | 102 | ||
93 | /* timeout for printk'ing a timeout, in jiffies (100ths of a second). | 103 | /* timeout for printk'ing a timeout, in jiffies (100ths of a second). |
94 | This is also used for re-checking error conditions if LP_ABORT is | 104 | This is also used for re-checking error conditions if LP_ABORT is |