1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef _UAPI__PKTCDVD_H
14 #define _UAPI__PKTCDVD_H
15
16 #include <linux/types.h>
17
18
19
20
21 #define PACKET_DEBUG 1
22
23 #define MAX_WRITERS 8
24
25 #define PKT_RB_POOL_SIZE 512
26
27
28
29
30 #define PACKET_WAIT_TIME (HZ * 5 / 1000)
31
32
33
34
35
36
37 #if defined(CONFIG_CDROM_PKTCDVD_WCACHE)
38 #define USE_WCACHING 1
39 #else
40 #define USE_WCACHING 0
41 #endif
42
43
44
45
46
47
48
49
50 #define PACKET_CDR 1
51 #define PACKET_CDRW 2
52 #define PACKET_DVDR 3
53 #define PACKET_DVDRW 4
54
55
56
57
58 #define PACKET_WRITABLE 1
59 #define PACKET_NWA_VALID 2
60 #define PACKET_LRA_VALID 3
61 #define PACKET_MERGE_SEGS 4
62
63
64
65
66
67 #define PACKET_DISC_EMPTY 0
68 #define PACKET_DISC_INCOMPLETE 1
69 #define PACKET_DISC_COMPLETE 2
70 #define PACKET_DISC_OTHER 3
71
72
73
74
75 #define PACKET_MODE1 1
76 #define PACKET_MODE2 2
77 #define PACKET_BLOCK_MODE1 8
78 #define PACKET_BLOCK_MODE2 10
79
80
81
82
83 #define PACKET_SESSION_EMPTY 0
84 #define PACKET_SESSION_INCOMPLETE 1
85 #define PACKET_SESSION_RESERVED 2
86 #define PACKET_SESSION_COMPLETE 3
87
88 #define PACKET_MCN "4a656e734178626f65323030300000"
89
90 #undef PACKET_USE_LS
91
92 #define PKT_CTRL_CMD_SETUP 0
93 #define PKT_CTRL_CMD_TEARDOWN 1
94 #define PKT_CTRL_CMD_STATUS 2
95
96 struct pkt_ctrl_command {
97 __u32 command;
98 __u32 dev_index;
99 __u32 dev;
100 __u32 pkt_dev;
101 __u32 num_devices;
102 __u32 padding;
103 };
104
105
106
107
108 #define PACKET_IOCTL_MAGIC ('X')
109 #define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
110
111
112 #endif