blob: 450d6fde32dabde231cff26c965b4679be12ebd1 [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 ****************************************************************************/
Christopher Ferris9584fa42019-12-09 15:36:13 -080019#ifndef _UAPI_LINUX_PPDEV_H
20#define _UAPI_LINUX_PPDEV_H
Ben Cheng655a7c02013-10-16 16:09:24 -070021#define PP_IOCTL 'p'
22#define PPSETMODE _IOW(PP_IOCTL, 0x80, int)
23#define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char)
24#define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char)
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char)
26#define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char)
27struct ppdev_frob_struct {
Tao Baod7db5942015-01-28 10:07:51 -080028 unsigned char mask;
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned char val;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
31#define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct)
32#define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char)
Ben Cheng655a7c02013-10-16 16:09:24 -070033#define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char)
34#define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char)
35#define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char)
36#define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char)
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char)
38#define PPCLAIM _IO(PP_IOCTL, 0x8b)
39#define PPRELEASE _IO(PP_IOCTL, 0x8c)
40#define PPYIELD _IO(PP_IOCTL, 0x8d)
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define PPEXCL _IO(PP_IOCTL, 0x8f)
42#define PPDATADIR _IOW(PP_IOCTL, 0x90, int)
43#define PPNEGOT _IOW(PP_IOCTL, 0x91, int)
44#define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char)
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int)
46#define PPSETPHASE _IOW(PP_IOCTL, 0x94, int)
47#define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval)
48#define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval)
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int)
50#define PPGETMODE _IOR(PP_IOCTL, 0x98, int)
51#define PPGETPHASE _IOR(PP_IOCTL, 0x99, int)
52#define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int)
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int)
Tao Baod7db5942015-01-28 10:07:51 -080054#define PP_FASTWRITE (1 << 2)
55#define PP_FASTREAD (1 << 3)
56#define PP_W91284PIC (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC)
Christopher Ferris9584fa42019-12-09 15:36:13 -080058#endif