Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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
     21 #define LP_EXIST 0x0001
     22 #define LP_SELEC 0x0002
     23 #define LP_BUSY 0x0004
     24 #define LP_BUSY_BIT_POS 2
     25 #define LP_OFFL 0x0008
     26 #define LP_NOPA 0x0010
     27 #define LP_ERR 0x0020
     28 #define LP_ABORT 0x0040
     29 #define LP_CAREFUL 0x0080
     30 #define LP_ABORTOPEN 0x0100
     31 #define LP_TRUST_IRQ_ 0x0200
     32 #define LP_NO_REVERSE 0x0400
     33 #define LP_DATA_AVAIL 0x0800
     34 #define LP_PBUSY 0x80
     35 #define LP_PACK 0x40
     36 #define LP_POUTPA 0x20
     37 #define LP_PSELECD 0x10
     38 #define LP_PERRORP 0x08
     39 #define LP_INIT_CHAR 1000
     40 #define LP_INIT_WAIT 1
     41 #define LP_INIT_TIME 2
     42 #define LPCHAR 0x0601
     43 #define LPTIME 0x0602
     44 #define LPABORT 0x0604
     45 #define LPSETIRQ 0x0605
     46 #define LPGETIRQ 0x0606
     47 #define LPWAIT 0x0608
     48 #define LPCAREFUL 0x0609
     49 #define LPABORTOPEN 0x060a
     50 #define LPGETSTATUS 0x060b
     51 #define LPRESET 0x060c
     52 #ifdef LP_STATS
     53 #define LPGETSTATS 0x060d
     54 #endif
     55 #define LPGETFLAGS 0x060e
     56 #define LPSETTIMEOUT 0x060f
     57 #define LP_TIMEOUT_INTERRUPT (60 * HZ)
     58 #define LP_TIMEOUT_POLLED (10 * HZ)
     59 #endif
     60