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 | */ |
Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_CHIO_H |
| 8 | #define _UAPI_LINUX_CHIO_H |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 9 | #define CHET_MT 0 |
| 10 | #define CHET_ST 1 |
| 11 | #define CHET_IE 2 |
| 12 | #define CHET_DT 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #define CHET_V1 4 |
| 14 | #define CHET_V2 5 |
| 15 | #define CHET_V3 6 |
| 16 | #define CHET_V4 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 17 | struct changer_params { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 18 | int cp_curpicker; |
| 19 | int cp_npickers; |
| 20 | int cp_nslots; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 21 | int cp_nportals; |
| 22 | int cp_ndrives; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | }; |
| 24 | struct changer_vendor_params { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | int cvp_n1; |
| 26 | char cvp_label1[16]; |
| 27 | int cvp_n2; |
| 28 | char cvp_label2[16]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | int cvp_n3; |
| 30 | char cvp_label3[16]; |
| 31 | int cvp_n4; |
| 32 | char cvp_label4[16]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 33 | int reserved[8]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | }; |
| 35 | struct changer_move { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | int cm_fromtype; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 37 | int cm_fromunit; |
| 38 | int cm_totype; |
| 39 | int cm_tounit; |
| 40 | int cm_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 41 | }; |
| 42 | #define CM_INVERT 1 |
| 43 | struct changer_exchange { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | int ce_srctype; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 45 | int ce_srcunit; |
| 46 | int ce_fdsttype; |
| 47 | int ce_fdstunit; |
| 48 | int ce_sdsttype; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | int ce_sdstunit; |
| 50 | int ce_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | }; |
| 52 | #define CE_INVERT1 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 53 | #define CE_INVERT2 2 |
| 54 | struct changer_position { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | int cp_type; |
| 56 | int cp_unit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 57 | int cp_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 58 | }; |
| 59 | #define CP_INVERT 1 |
| 60 | struct changer_element_status { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 61 | int ces_type; |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 62 | unsigned char * ces_data; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | }; |
| 64 | #define CESTATUS_FULL 0x01 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 65 | #define CESTATUS_IMPEXP 0x02 |
| 66 | #define CESTATUS_EXCEPT 0x04 |
| 67 | #define CESTATUS_ACCESS 0x08 |
| 68 | #define CESTATUS_EXENAB 0x10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | #define CESTATUS_INENAB 0x20 |
| 70 | struct changer_get_element { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | int cge_type; |
| 72 | int cge_unit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 73 | int cge_status; |
| 74 | int cge_errno; |
| 75 | int cge_srctype; |
| 76 | int cge_srcunit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 77 | int cge_id; |
| 78 | int cge_lun; |
| 79 | char cge_pvoltag[36]; |
| 80 | char cge_avoltag[36]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 81 | int cge_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 82 | }; |
| 83 | #define CGE_ERRNO 0x01 |
| 84 | #define CGE_INVERT 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | #define CGE_SRC 0x04 |
| 86 | #define CGE_IDLUN 0x08 |
| 87 | #define CGE_PVOLTAG 0x10 |
| 88 | #define CGE_AVOLTAG 0x20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 89 | struct changer_set_voltag { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 90 | int csv_type; |
| 91 | int csv_unit; |
| 92 | char csv_voltag[36]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 93 | int csv_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 94 | }; |
| 95 | #define CSV_PVOLTAG 0x01 |
| 96 | #define CSV_AVOLTAG 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 97 | #define CSV_CLEARTAG 0x04 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 98 | #define CHIOMOVE _IOW('c', 1, struct changer_move) |
| 99 | #define CHIOEXCHANGE _IOW('c', 2, struct changer_exchange) |
| 100 | #define CHIOPOSITION _IOW('c', 3, struct changer_position) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 101 | #define CHIOGPICKER _IOR('c', 4, int) |
| 102 | #define CHIOSPICKER _IOW('c', 5, int) |
| 103 | #define CHIOGPARAMS _IOR('c', 6, struct changer_params) |
| 104 | #define CHIOGSTATUS _IOW('c', 8, struct changer_element_status) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 105 | #define CHIOGELEM _IOW('c', 16, struct changer_get_element) |
| 106 | #define CHIOINITELEM _IO('c', 17) |
| 107 | #define CHIOSVOLTAG _IOW('c', 18, struct changer_set_voltag) |
| 108 | #define CHIOGVPARAMS _IOR('c', 19, struct changer_vendor_params) |
Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 109 | #endif |