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 #ifndef _UAPI__PKTCDVD_H 7 #define _UAPI__PKTCDVD_H 8 #include <linux/types.h> 9 #define PACKET_DEBUG 1 10 #define MAX_WRITERS 8 11 #define PKT_RB_POOL_SIZE 512 12 #define PACKET_WAIT_TIME (HZ * 5 / 1000) 13 #if defined(CONFIG_CDROM_PKTCDVD_WCACHE) 14 #define USE_WCACHING 1 15 #else 16 #define USE_WCACHING 0 17 #endif 18 #define PACKET_CDR 1 19 #define PACKET_CDRW 2 20 #define PACKET_DVDR 3 21 #define PACKET_DVDRW 4 22 #define PACKET_WRITABLE 1 23 #define PACKET_NWA_VALID 2 24 #define PACKET_LRA_VALID 3 25 #define PACKET_MERGE_SEGS 4 26 27 #define PACKET_DISC_EMPTY 0 28 #define PACKET_DISC_INCOMPLETE 1 29 #define PACKET_DISC_COMPLETE 2 30 #define PACKET_DISC_OTHER 3 31 #define PACKET_MODE1 1 32 #define PACKET_MODE2 2 33 #define PACKET_BLOCK_MODE1 8 34 #define PACKET_BLOCK_MODE2 10 35 #define PACKET_SESSION_EMPTY 0 36 #define PACKET_SESSION_INCOMPLETE 1 37 #define PACKET_SESSION_RESERVED 2 38 #define PACKET_SESSION_COMPLETE 3 39 #define PACKET_MCN "4a656e734178626f65323030300000" 40 #undef PACKET_USE_LS 41 #define PKT_CTRL_CMD_SETUP 0 42 #define PKT_CTRL_CMD_TEARDOWN 1 43 #define PKT_CTRL_CMD_STATUS 2 44 struct pkt_ctrl_command { 45 __u32 command; 46 __u32 dev_index; 47 __u32 dev; 48 __u32 pkt_dev; 49 __u32 num_devices; 50 __u32 padding; 51 }; 52 #define PACKET_IOCTL_MAGIC ('X') 53 #define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command) 54 #endif 55