Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI__PKTCDVD_H |
| 8 | #define _UAPI__PKTCDVD_H |
| 9 | #include <linux/types.h> |
| 10 | #define PACKET_DEBUG 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define MAX_WRITERS 8 |
| 12 | #define PKT_RB_POOL_SIZE 512 |
| 13 | #define PACKET_WAIT_TIME (HZ * 5 / 1000) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 14 | #define PACKET_CDR 1 |
| 15 | #define PACKET_CDRW 2 |
| 16 | #define PACKET_DVDR 3 |
| 17 | #define PACKET_DVDRW 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | #define PACKET_WRITABLE 1 |
| 19 | #define PACKET_NWA_VALID 2 |
| 20 | #define PACKET_LRA_VALID 3 |
| 21 | #define PACKET_MERGE_SEGS 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | #define PACKET_DISC_EMPTY 0 |
| 23 | #define PACKET_DISC_INCOMPLETE 1 |
| 24 | #define PACKET_DISC_COMPLETE 2 |
| 25 | #define PACKET_DISC_OTHER 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 26 | #define PACKET_MODE1 1 |
| 27 | #define PACKET_MODE2 2 |
| 28 | #define PACKET_BLOCK_MODE1 8 |
| 29 | #define PACKET_BLOCK_MODE2 10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define PACKET_SESSION_EMPTY 0 |
| 31 | #define PACKET_SESSION_INCOMPLETE 1 |
| 32 | #define PACKET_SESSION_RESERVED 2 |
| 33 | #define PACKET_SESSION_COMPLETE 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | #define PACKET_MCN "4a656e734178626f65323030300000" |
| 35 | #undef PACKET_USE_LS |
| 36 | #define PKT_CTRL_CMD_SETUP 0 |
| 37 | #define PKT_CTRL_CMD_TEARDOWN 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | #define PKT_CTRL_CMD_STATUS 2 |
| 39 | struct pkt_ctrl_command { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | __u32 command; |
| 41 | __u32 dev_index; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 42 | __u32 dev; |
| 43 | __u32 pkt_dev; |
| 44 | __u32 num_devices; |
| 45 | __u32 padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | }; |
| 47 | #define PACKET_IOCTL_MAGIC ('X') |
| 48 | #define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command) |
| 49 | #endif |