blob: 138de2c8745e755e11b92bd4e64d40ed55099201 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_LINUX_EDD_H
20#define _UAPI_LINUX_EDD_H
21#include <linux/types.h>
22#define EDDNR 0x1e9
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define EDDBUF 0xd00
25#define EDDMAXNR 6
26#define EDDEXTSIZE 8
27#define EDDPARMSIZE 74
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define CHECKEXTENSIONSPRESENT 0x41
30#define GETDEVICEPARAMETERS 0x48
31#define LEGACYGETDEVICEPARAMETERS 0x08
32#define EDDMAGIC1 0x55AA
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define EDDMAGIC2 0xAA55
35#define READ_SECTORS 0x02
36#define EDD_MBR_SIG_OFFSET 0x1B8
37#define EDD_MBR_SIG_BUF 0x290
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define EDD_MBR_SIG_MAX 16
40#define EDD_MBR_SIG_NR_BUF 0x1ea
41#ifndef __ASSEMBLY__
42#define EDD_EXT_FIXED_DISK_ACCESS (1 << 0)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define EDD_EXT_DEVICE_LOCKING_AND_EJECTING (1 << 1)
45#define EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT (1 << 2)
46#define EDD_EXT_64BIT_EXTENSIONS (1 << 3)
47#define EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT (1 << 0)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define EDD_INFO_GEOMETRY_VALID (1 << 1)
50#define EDD_INFO_REMOVABLE (1 << 2)
51#define EDD_INFO_WRITE_VERIFY (1 << 3)
52#define EDD_INFO_MEDIA_CHANGE_NOTIFICATION (1 << 4)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define EDD_INFO_LOCKABLE (1 << 5)
55#define EDD_INFO_NO_MEDIA_PRESENT (1 << 6)
56#define EDD_INFO_USE_INT13_FN50 (1 << 7)
57struct edd_device_params {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u16 length;
60 __u16 info_flags;
61 __u32 num_default_cylinders;
62 __u32 num_default_heads;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u32 sectors_per_track;
65 __u64 number_of_sectors;
66 __u16 bytes_per_sector;
67 __u32 dpte_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u16 key;
70 __u8 device_path_info_length;
71 __u8 reserved2;
72 __u16 reserved3;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u8 host_bus_type[4];
75 __u8 interface_type[8];
76 union {
77 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u16 base_address;
80 __u16 reserved1;
81 __u32 reserved2;
82 } __attribute__((packed)) isa;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 struct {
85 __u8 bus;
86 __u8 slot;
87 __u8 function;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 channel;
90 __u32 reserved;
91 } __attribute__((packed)) pci;
92 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u64 reserved;
95 } __attribute__((packed)) ibnd;
96 struct {
97 __u64 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 } __attribute__((packed)) xprs;
100 struct {
101 __u64 reserved;
102 } __attribute__((packed)) htpt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 struct {
105 __u64 reserved;
106 } __attribute__((packed)) unknown;
107 } interface_path;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 union {
110 struct {
111 __u8 device;
112 __u8 reserved1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u16 reserved2;
115 __u32 reserved3;
116 __u64 reserved4;
117 } __attribute__((packed)) ata;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 struct {
120 __u8 device;
121 __u8 lun;
122 __u8 reserved1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u8 reserved2;
125 __u32 reserved3;
126 __u64 reserved4;
127 } __attribute__((packed)) atapi;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 struct {
130 __u16 id;
131 __u64 lun;
132 __u16 reserved1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 reserved2;
135 } __attribute__((packed)) scsi;
136 struct {
137 __u64 serial_number;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u64 reserved;
140 } __attribute__((packed)) usb;
141 struct {
142 __u64 eui;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u64 reserved;
145 } __attribute__((packed)) i1394;
146 struct {
147 __u64 wwid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u64 lun;
150 } __attribute__((packed)) fibre;
151 struct {
152 __u64 identity_tag;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u64 reserved;
155 } __attribute__((packed)) i2o;
156 struct {
157 __u32 array_number;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 reserved1;
160 __u64 reserved2;
161 } __attribute__((packed)) raid;
162 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u8 device;
165 __u8 reserved1;
166 __u16 reserved2;
167 __u32 reserved3;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u64 reserved4;
170 } __attribute__((packed)) sata;
171 struct {
172 __u64 reserved1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u64 reserved2;
175 } __attribute__((packed)) unknown;
176 } device_path;
177 __u8 reserved4;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u8 checksum;
180} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700181struct edd_info {
Tao Baod7db5942015-01-28 10:07:51 -0800182 __u8 device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u8 version;
185 __u16 interface_support;
186 __u16 legacy_max_cylinder;
187 __u8 legacy_max_head;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __u8 legacy_sectors_per_track;
190 struct edd_device_params params;
191} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700192struct edd {
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 unsigned int mbr_signature[EDD_MBR_SIG_MAX];
195 struct edd_info edd_info[EDDMAXNR];
196 unsigned char mbr_signature_nr;
197 unsigned char edd_info_nr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199};
200#endif
201#endif