| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 | #define PP_IOCTL 'p' | 
 | 20 | #define PPSETMODE _IOW(PP_IOCTL, 0x80, int) | 
 | 21 | #define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char) | 
 | 22 | #define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char) | 
 | 24 | #define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char) | 
 | 25 | struct ppdev_frob_struct { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 |   unsigned char mask; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 |   unsigned char val; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | }; | 
 | 29 | #define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct) | 
 | 30 | #define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char) | 
 | 32 | #define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char) | 
 | 33 | #define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char) | 
 | 34 | #define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char) | 
 | 36 | #define PPCLAIM _IO(PP_IOCTL, 0x8b) | 
 | 37 | #define PPRELEASE _IO(PP_IOCTL, 0x8c) | 
 | 38 | #define PPYIELD _IO(PP_IOCTL, 0x8d) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define PPEXCL _IO(PP_IOCTL, 0x8f) | 
 | 40 | #define PPDATADIR _IOW(PP_IOCTL, 0x90, int) | 
 | 41 | #define PPNEGOT _IOW(PP_IOCTL, 0x91, int) | 
 | 42 | #define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int) | 
 | 44 | #define PPSETPHASE _IOW(PP_IOCTL, 0x94, int) | 
 | 45 | #define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval) | 
 | 46 | #define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int) | 
 | 48 | #define PPGETMODE _IOR(PP_IOCTL, 0x98, int) | 
 | 49 | #define PPGETPHASE _IOR(PP_IOCTL, 0x99, int) | 
 | 50 | #define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 52 | #define PP_FASTWRITE (1 << 2) | 
 | 53 | #define PP_FASTREAD (1 << 3) | 
 | 54 | #define PP_W91284PIC (1 << 4) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC) |