blob: cd2b0dfd169938026605219ce19dd9b919bde46b [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI__PKTCDVD_H
8#define _UAPI__PKTCDVD_H
9#include <linux/types.h>
10#define PACKET_DEBUG 1
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define MAX_WRITERS 8
12#define PKT_RB_POOL_SIZE 512
13#define PACKET_WAIT_TIME (HZ * 5 / 1000)
Ben Cheng655a7c02013-10-16 16:09:24 -070014#define PACKET_CDR 1
15#define PACKET_CDRW 2
16#define PACKET_DVDR 3
17#define PACKET_DVDRW 4
Ben Cheng655a7c02013-10-16 16:09:24 -070018#define PACKET_WRITABLE 1
19#define PACKET_NWA_VALID 2
20#define PACKET_LRA_VALID 3
21#define PACKET_MERGE_SEGS 4
Ben Cheng655a7c02013-10-16 16:09:24 -070022#define PACKET_DISC_EMPTY 0
23#define PACKET_DISC_INCOMPLETE 1
24#define PACKET_DISC_COMPLETE 2
25#define PACKET_DISC_OTHER 3
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define PACKET_MODE1 1
27#define PACKET_MODE2 2
28#define PACKET_BLOCK_MODE1 8
29#define PACKET_BLOCK_MODE2 10
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define PACKET_SESSION_EMPTY 0
31#define PACKET_SESSION_INCOMPLETE 1
32#define PACKET_SESSION_RESERVED 2
33#define PACKET_SESSION_COMPLETE 3
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define PACKET_MCN "4a656e734178626f65323030300000"
35#undef PACKET_USE_LS
36#define PKT_CTRL_CMD_SETUP 0
37#define PKT_CTRL_CMD_TEARDOWN 1
Ben Cheng655a7c02013-10-16 16:09:24 -070038#define PKT_CTRL_CMD_STATUS 2
39struct pkt_ctrl_command {
Tao Baod7db5942015-01-28 10:07:51 -080040 __u32 command;
41 __u32 dev_index;
Tao Baod7db5942015-01-28 10:07:51 -080042 __u32 dev;
43 __u32 pkt_dev;
44 __u32 num_devices;
45 __u32 padding;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define PACKET_IOCTL_MAGIC ('X')
48#define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
49#endif