1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef _UAPI_LINUX_PPDEV_H
19#define _UAPI_LINUX_PPDEV_H
20
21#define PP_IOCTL 'p'
22
23
24#define PPSETMODE _IOW(PP_IOCTL, 0x80, int)
25
26
27#define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char)
28#define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char)
29
30
31#define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char)
32#define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char)
33
34struct ppdev_frob_struct {
35 unsigned char mask;
36 unsigned char val;
37};
38#define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct)
39
40
41#define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char)
42#define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char)
43
44
45#define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char)
46#define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char)
47
48
49#define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char)
50#define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char)
51
52
53#define PPCLAIM _IO(PP_IOCTL, 0x8b)
54
55
56#define PPRELEASE _IO(PP_IOCTL, 0x8c)
57
58
59
60#define PPYIELD _IO(PP_IOCTL, 0x8d)
61
62
63#define PPEXCL _IO(PP_IOCTL, 0x8f)
64
65
66#define PPDATADIR _IOW(PP_IOCTL, 0x90, int)
67
68
69#define PPNEGOT _IOW(PP_IOCTL, 0x91, int)
70
71
72#define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char)
73
74
75#define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int)
76
77
78#define PPSETPHASE _IOW(PP_IOCTL, 0x94, int)
79
80
81#define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval)
82#define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval)
83
84
85#define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int)
86
87
88#define PPGETMODE _IOR(PP_IOCTL, 0x98, int)
89#define PPGETPHASE _IOR(PP_IOCTL, 0x99, int)
90
91
92#define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int)
93#define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int)
94
95
96#define PP_FASTWRITE (1<<2)
97#define PP_FASTREAD (1<<3)
98#define PP_W91284PIC (1<<4)
99
100
101#define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC)
102
103#endif
104