1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI__PKTCDVD_H 8 #define _UAPI__PKTCDVD_H 9 #include <linux/types.h> 10 #define PACKET_DEBUG 1 11 #define MAX_WRITERS 8 12 #define PKT_RB_POOL_SIZE 512 13 #define PACKET_WAIT_TIME (HZ * 5 / 1000) 14 #define PACKET_CDR 1 15 #define PACKET_CDRW 2 16 #define PACKET_DVDR 3 17 #define PACKET_DVDRW 4 18 #define PACKET_WRITABLE 1 19 #define PACKET_NWA_VALID 2 20 #define PACKET_LRA_VALID 3 21 #define PACKET_MERGE_SEGS 4 22 #define PACKET_DISC_EMPTY 0 23 #define PACKET_DISC_INCOMPLETE 1 24 #define PACKET_DISC_COMPLETE 2 25 #define PACKET_DISC_OTHER 3 26 #define PACKET_MODE1 1 27 #define PACKET_MODE2 2 28 #define PACKET_BLOCK_MODE1 8 29 #define PACKET_BLOCK_MODE2 10 30 #define PACKET_SESSION_EMPTY 0 31 #define PACKET_SESSION_INCOMPLETE 1 32 #define PACKET_SESSION_RESERVED 2 33 #define PACKET_SESSION_COMPLETE 3 34 #define PACKET_MCN "4a656e734178626f65323030300000" 35 #undef PACKET_USE_LS 36 #define PKT_CTRL_CMD_SETUP 0 37 #define PKT_CTRL_CMD_TEARDOWN 1 38 #define PKT_CTRL_CMD_STATUS 2 39 struct pkt_ctrl_command { 40 __u32 command; 41 __u32 dev_index; 42 __u32 dev; 43 __u32 pkt_dev; 44 __u32 num_devices; 45 __u32 padding; 46 }; 47 #define PACKET_IOCTL_MAGIC ('X') 48 #define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command) 49 #endif 50