122851890Sopenharmony_ci/* 222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py, 322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants, 422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information. 522851890Sopenharmony_ci */ 622851890Sopenharmony_ci#ifndef _UAPI__PKTCDVD_H 722851890Sopenharmony_ci#define _UAPI__PKTCDVD_H 822851890Sopenharmony_ci#include <linux/types.h> 922851890Sopenharmony_ci#define PACKET_DEBUG 1 1022851890Sopenharmony_ci#define MAX_WRITERS 8 1122851890Sopenharmony_ci#define PKT_RB_POOL_SIZE 512 1222851890Sopenharmony_ci#define PACKET_WAIT_TIME (HZ * 5 / 1000) 1322851890Sopenharmony_ci#if defined(CONFIG_CDROM_PKTCDVD_WCACHE) 1422851890Sopenharmony_ci#define USE_WCACHING 1 1522851890Sopenharmony_ci#else 1622851890Sopenharmony_ci#define USE_WCACHING 0 1722851890Sopenharmony_ci#endif 1822851890Sopenharmony_ci#define PACKET_CDR 1 1922851890Sopenharmony_ci#define PACKET_CDRW 2 2022851890Sopenharmony_ci#define PACKET_DVDR 3 2122851890Sopenharmony_ci#define PACKET_DVDRW 4 2222851890Sopenharmony_ci#define PACKET_WRITABLE 1 2322851890Sopenharmony_ci#define PACKET_NWA_VALID 2 2422851890Sopenharmony_ci#define PACKET_LRA_VALID 3 2522851890Sopenharmony_ci#define PACKET_MERGE_SEGS 4 2622851890Sopenharmony_ci 2722851890Sopenharmony_ci#define PACKET_DISC_EMPTY 0 2822851890Sopenharmony_ci#define PACKET_DISC_INCOMPLETE 1 2922851890Sopenharmony_ci#define PACKET_DISC_COMPLETE 2 3022851890Sopenharmony_ci#define PACKET_DISC_OTHER 3 3122851890Sopenharmony_ci#define PACKET_MODE1 1 3222851890Sopenharmony_ci#define PACKET_MODE2 2 3322851890Sopenharmony_ci#define PACKET_BLOCK_MODE1 8 3422851890Sopenharmony_ci#define PACKET_BLOCK_MODE2 10 3522851890Sopenharmony_ci#define PACKET_SESSION_EMPTY 0 3622851890Sopenharmony_ci#define PACKET_SESSION_INCOMPLETE 1 3722851890Sopenharmony_ci#define PACKET_SESSION_RESERVED 2 3822851890Sopenharmony_ci#define PACKET_SESSION_COMPLETE 3 3922851890Sopenharmony_ci#define PACKET_MCN "4a656e734178626f65323030300000" 4022851890Sopenharmony_ci#undef PACKET_USE_LS 4122851890Sopenharmony_ci#define PKT_CTRL_CMD_SETUP 0 4222851890Sopenharmony_ci#define PKT_CTRL_CMD_TEARDOWN 1 4322851890Sopenharmony_ci#define PKT_CTRL_CMD_STATUS 2 4422851890Sopenharmony_cistruct pkt_ctrl_command { 4522851890Sopenharmony_ci __u32 command; 4622851890Sopenharmony_ci __u32 dev_index; 4722851890Sopenharmony_ci __u32 dev; 4822851890Sopenharmony_ci __u32 pkt_dev; 4922851890Sopenharmony_ci __u32 num_devices; 5022851890Sopenharmony_ci __u32 padding; 5122851890Sopenharmony_ci}; 5222851890Sopenharmony_ci#define PACKET_IOCTL_MAGIC ('X') 5322851890Sopenharmony_ci#define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command) 5422851890Sopenharmony_ci#endif 55