1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _UAPI__PKTCDVD_H 20#define _UAPI__PKTCDVD_H 21#include <linux/types.h> 22#define PACKET_DEBUG 1 23#define MAX_WRITERS 8 24#define PKT_RB_POOL_SIZE 512 25#define PACKET_WAIT_TIME (HZ * 5 / 1000) 26#define USE_WCACHING 0 27#define PACKET_CDR 1 28#define PACKET_CDRW 2 29#define PACKET_DVDR 3 30#define PACKET_DVDRW 4 31#define PACKET_WRITABLE 1 32#define PACKET_NWA_VALID 2 33#define PACKET_LRA_VALID 3 34#define PACKET_MERGE_SEGS 4 35#define PACKET_DISC_EMPTY 0 36#define PACKET_DISC_INCOMPLETE 1 37#define PACKET_DISC_COMPLETE 2 38#define PACKET_DISC_OTHER 3 39#define PACKET_MODE1 1 40#define PACKET_MODE2 2 41#define PACKET_BLOCK_MODE1 8 42#define PACKET_BLOCK_MODE2 10 43#define PACKET_SESSION_EMPTY 0 44#define PACKET_SESSION_INCOMPLETE 1 45#define PACKET_SESSION_RESERVED 2 46#define PACKET_SESSION_COMPLETE 3 47#define PACKET_MCN "4a656e734178626f65323030300000" 48#undef PACKET_USE_LS 49#define PKT_CTRL_CMD_SETUP 0 50#define PKT_CTRL_CMD_TEARDOWN 1 51#define PKT_CTRL_CMD_STATUS 2 52struct pkt_ctrl_command { 53 __u32 command; 54 __u32 dev_index; 55 __u32 dev; 56 __u32 pkt_dev; 57 __u32 num_devices; 58 __u32 padding; 59}; 60#define PACKET_IOCTL_MAGIC ('X') 61#define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command) 62#endif 63