]> Git Repo - linux.git/blob - include/uapi/linux/pktcdvd.h
sfc: support TC decap rules matching on enc_src_port
[linux.git] / include / uapi / linux / pktcdvd.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Copyright (C) 2000 Jens Axboe <[email protected]>
4  * Copyright (C) 2001-2004 Peter Osterlund <[email protected]>
5  *
6  * May be copied or modified under the terms of the GNU General Public
7  * License.  See linux/COPYING for more information.
8  *
9  * Packet writing layer for ATAPI and SCSI CD-R, CD-RW, DVD-R, and
10  * DVD-RW devices.
11  *
12  */
13 #ifndef _UAPI__PKTCDVD_H
14 #define _UAPI__PKTCDVD_H
15
16 #include <linux/types.h>
17
18 /*
19  * 1 for normal debug messages, 2 is very verbose. 0 to turn it off.
20  */
21 #define PACKET_DEBUG            1
22
23 #define MAX_WRITERS             8
24
25 #define PKT_RB_POOL_SIZE        512
26
27 /*
28  * How long we should hold a non-full packet before starting data gathering.
29  */
30 #define PACKET_WAIT_TIME        (HZ * 5 / 1000)
31
32 /*
33  * No user-servicable parts beyond this point ->
34  */
35
36 /*
37  * device types
38  */
39 #define PACKET_CDR              1
40 #define PACKET_CDRW             2
41 #define PACKET_DVDR             3
42 #define PACKET_DVDRW            4
43
44 /*
45  * flags
46  */
47 #define PACKET_WRITABLE         1       /* pd is writable */
48 #define PACKET_NWA_VALID        2       /* next writable address valid */
49 #define PACKET_LRA_VALID        3       /* last recorded address valid */
50 #define PACKET_MERGE_SEGS       4       /* perform segment merging to keep */
51                                         /* underlying cdrom device happy */
52
53 /*
54  * Disc status -- from READ_DISC_INFO
55  */
56 #define PACKET_DISC_EMPTY       0
57 #define PACKET_DISC_INCOMPLETE  1
58 #define PACKET_DISC_COMPLETE    2
59 #define PACKET_DISC_OTHER       3
60
61 /*
62  * write type, and corresponding data block type
63  */
64 #define PACKET_MODE1            1
65 #define PACKET_MODE2            2
66 #define PACKET_BLOCK_MODE1      8
67 #define PACKET_BLOCK_MODE2      10
68
69 /*
70  * Last session/border status
71  */
72 #define PACKET_SESSION_EMPTY            0
73 #define PACKET_SESSION_INCOMPLETE       1
74 #define PACKET_SESSION_RESERVED         2
75 #define PACKET_SESSION_COMPLETE         3
76
77 #define PACKET_MCN                      "4a656e734178626f65323030300000"
78
79 #undef PACKET_USE_LS
80
81 #define PKT_CTRL_CMD_SETUP      0
82 #define PKT_CTRL_CMD_TEARDOWN   1
83 #define PKT_CTRL_CMD_STATUS     2
84
85 struct pkt_ctrl_command {
86         __u32 command;                          /* in: Setup, teardown, status */
87         __u32 dev_index;                        /* in/out: Device index */
88         __u32 dev;                              /* in/out: Device nr for cdrw device */
89         __u32 pkt_dev;                          /* in/out: Device nr for packet device */
90         __u32 num_devices;                      /* out: Largest device index + 1 */
91         __u32 padding;                          /* Not used */
92 };
93
94 /*
95  * packet ioctls
96  */
97 #define PACKET_IOCTL_MAGIC      ('X')
98 #define PACKET_CTRL_CMD         _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
99
100
101 #endif /* _UAPI__PKTCDVD_H */
This page took 0.037557 seconds and 4 git commands to generate.