blob: 35d5d5a70a65782c33e56c7dd23ed72ab6d6109b [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Christopher Ferris76a1d452018-06-27 14:12:29 -070021#include <linux/types.h>
22#include <linux/ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define LP_EXIST 0x0001
24#define LP_SELEC 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define LP_BUSY 0x0004
26#define LP_BUSY_BIT_POS 2
27#define LP_OFFL 0x0008
28#define LP_NOPA 0x0010
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define LP_ERR 0x0020
30#define LP_ABORT 0x0040
31#define LP_CAREFUL 0x0080
32#define LP_ABORTOPEN 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070033#define LP_TRUST_IRQ_ 0x0200
34#define LP_NO_REVERSE 0x0400
35#define LP_DATA_AVAIL 0x0800
36#define LP_PBUSY 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define LP_PACK 0x40
38#define LP_POUTPA 0x20
39#define LP_PSELECD 0x10
40#define LP_PERRORP 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define LP_INIT_CHAR 1000
42#define LP_INIT_WAIT 1
43#define LP_INIT_TIME 2
44#define LPCHAR 0x0601
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define LPTIME 0x0602
46#define LPABORT 0x0604
47#define LPSETIRQ 0x0605
48#define LPGETIRQ 0x0606
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define LPWAIT 0x0608
50#define LPCAREFUL 0x0609
51#define LPABORTOPEN 0x060a
52#define LPGETSTATUS 0x060b
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define LPRESET 0x060c
54#ifdef LP_STATS
55#define LPGETSTATS 0x060d
56#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define LPGETFLAGS 0x060e
Christopher Ferris76a1d452018-06-27 14:12:29 -070058#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
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define LP_TIMEOUT_INTERRUPT (60 * HZ)
66#define LP_TIMEOUT_POLLED (10 * HZ)
Ben Cheng655a7c02013-10-16 16:09:24 -070067#endif