blob: 277b3de4e08ed5392c4d80e470dce710c9b91c2a [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_LINUX_LP_H
8#define _UAPI_LINUX_LP_H
Christopher Ferris76a1d452018-06-27 14:12:29 -07009#include <linux/types.h>
10#include <linux/ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define LP_EXIST 0x0001
12#define LP_SELEC 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070013#define LP_BUSY 0x0004
14#define LP_BUSY_BIT_POS 2
15#define LP_OFFL 0x0008
16#define LP_NOPA 0x0010
Ben Cheng655a7c02013-10-16 16:09:24 -070017#define LP_ERR 0x0020
18#define LP_ABORT 0x0040
19#define LP_CAREFUL 0x0080
20#define LP_ABORTOPEN 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070021#define LP_TRUST_IRQ_ 0x0200
22#define LP_NO_REVERSE 0x0400
23#define LP_DATA_AVAIL 0x0800
24#define LP_PBUSY 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define LP_PACK 0x40
26#define LP_POUTPA 0x20
27#define LP_PSELECD 0x10
28#define LP_PERRORP 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define LP_INIT_CHAR 1000
30#define LP_INIT_WAIT 1
31#define LP_INIT_TIME 2
32#define LPCHAR 0x0601
Ben Cheng655a7c02013-10-16 16:09:24 -070033#define LPTIME 0x0602
34#define LPABORT 0x0604
35#define LPSETIRQ 0x0605
36#define LPGETIRQ 0x0606
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define LPWAIT 0x0608
38#define LPCAREFUL 0x0609
39#define LPABORTOPEN 0x060a
40#define LPGETSTATUS 0x060b
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define LPRESET 0x060c
42#ifdef LP_STATS
43#define LPGETSTATS 0x060d
44#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define LPGETFLAGS 0x060e
Christopher Ferris76a1d452018-06-27 14:12:29 -070046#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
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define LP_TIMEOUT_INTERRUPT (60 * HZ)
54#define LP_TIMEOUT_POLLED (10 * HZ)
Ben Cheng655a7c02013-10-16 16:09:24 -070055#endif