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 ****************************************************************************
11 ****************************************************************************/
12 #define PP_IOCTL 'p'
14 #define PPSETMODE _IOW(PP_IOCTL, 0x80, int)
16 #define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char)
17 #define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char)
19 #define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char)
20 #define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char)
22 struct ppdev_frob_struct {
23 unsigned char mask;
24 unsigned char val;
25 };
26 #define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct)
28 #define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char)
29 #define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char)
31 #define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char)
32 #define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char)
34 #define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char)
35 #define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char)
37 #define PPCLAIM _IO(PP_IOCTL, 0x8b)
39 #define PPRELEASE _IO(PP_IOCTL, 0x8c)
41 #define PPYIELD _IO(PP_IOCTL, 0x8d)
43 #define PPEXCL _IO(PP_IOCTL, 0x8f)
45 #define PPDATADIR _IOW(PP_IOCTL, 0x90, int)
47 #define PPNEGOT _IOW(PP_IOCTL, 0x91, int)
49 #define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char)
51 #define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int)
53 #define PPSETPHASE _IOW(PP_IOCTL, 0x94, int)
55 #define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval)
56 #define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval)
58 #define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int)
60 #define PPGETMODE _IOR(PP_IOCTL, 0x98, int)
61 #define PPGETPHASE _IOR(PP_IOCTL, 0x99, int)
63 #define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int)
64 #define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int)
66 #define PP_FASTWRITE (1<<2)
67 #define PP_FASTREAD (1<<3)
68 #define PP_W91284PIC (1<<4)
70 #define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC)