• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #define PP_IOCTL	'p'
7 #define PPSETMODE	_IOW(PP_IOCTL, 0x80, int)
8 #define PPRSTATUS	_IOR(PP_IOCTL, 0x81, unsigned char)
9 #define PPWSTATUS	OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char)
10 #define PPRCONTROL	_IOR(PP_IOCTL, 0x83, unsigned char)
11 #define PPWCONTROL	_IOW(PP_IOCTL, 0x84, unsigned char)
12 struct ppdev_frob_struct {
13 	unsigned char mask;
14 	unsigned char val;
15 };
16 #define PPFCONTROL      _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct)
17 #define PPRDATA		_IOR(PP_IOCTL, 0x85, unsigned char)
18 #define PPWDATA		_IOW(PP_IOCTL, 0x86, unsigned char)
19 #define PPRECONTROL	OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char)
20 #define PPWECONTROL	OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char)
21 #define PPRFIFO		OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char)
22 #define PPWFIFO		OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char)
23 #define PPCLAIM		_IO(PP_IOCTL, 0x8b)
24 #define PPRELEASE	_IO(PP_IOCTL, 0x8c)
25 #define PPYIELD		_IO(PP_IOCTL, 0x8d)
26 #define PPEXCL		_IO(PP_IOCTL, 0x8f)
27 #define PPDATADIR	_IOW(PP_IOCTL, 0x90, int)
28 #define PPNEGOT		_IOW(PP_IOCTL, 0x91, int)
29 #define PPWCTLONIRQ	_IOW(PP_IOCTL, 0x92, unsigned char)
30 #define PPCLRIRQ	_IOR(PP_IOCTL, 0x93, int)
31 #define PPSETPHASE	_IOW(PP_IOCTL, 0x94, int)
32 #define PPGETTIME	_IOR(PP_IOCTL, 0x95, struct timeval)
33 #define PPSETTIME	_IOW(PP_IOCTL, 0x96, struct timeval)
34 #define PPGETMODES	_IOR(PP_IOCTL, 0x97, unsigned int)
35 #define PPGETMODE	_IOR(PP_IOCTL, 0x98, int)
36 #define PPGETPHASE	_IOR(PP_IOCTL, 0x99, int)
37 #define PPGETFLAGS	_IOR(PP_IOCTL, 0x9a, int)
38 #define PPSETFLAGS	_IOW(PP_IOCTL, 0x9b, int)
39 #define PP_FASTWRITE	(1<<2)
40 #define PP_FASTREAD	(1<<3)
41 #define PP_W91284PIC	(1<<4)
42 #define PP_FLAGMASK	(PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC)
43