1 /**************************************************************************** 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 LINUX_MOD_DEVICETABLE_H 20 #define LINUX_MOD_DEVICETABLE_H 21 #define PCI_ANY_ID (~0) 22 struct pci_device_id { 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 __u32 vendor, device; 25 __u32 subvendor, subdevice; 26 __u32 class, class_mask; 27 kernel_ulong_t driver_data; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 }; 30 #define IEEE1394_MATCH_VENDOR_ID 0x0001 31 #define IEEE1394_MATCH_MODEL_ID 0x0002 32 #define IEEE1394_MATCH_SPECIFIER_ID 0x0004 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define IEEE1394_MATCH_VERSION 0x0008 35 struct ieee1394_device_id { 36 __u32 match_flags; 37 __u32 vendor_id; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u32 model_id; 40 __u32 specifier_id; 41 __u32 version; 42 kernel_ulong_t driver_data 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __attribute__((aligned(sizeof(kernel_ulong_t)))); 45 }; 46 struct usb_device_id { 47 __u16 match_flags; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u16 idVendor; 50 __u16 idProduct; 51 __u16 bcdDevice_lo; 52 __u16 bcdDevice_hi; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u8 bDeviceClass; 55 __u8 bDeviceSubClass; 56 __u8 bDeviceProtocol; 57 __u8 bInterfaceClass; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u8 bInterfaceSubClass; 60 __u8 bInterfaceProtocol; 61 kernel_ulong_t driver_info; 62 }; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define USB_DEVICE_ID_MATCH_VENDOR 0x0001 65 #define USB_DEVICE_ID_MATCH_PRODUCT 0x0002 66 #define USB_DEVICE_ID_MATCH_DEV_LO 0x0004 67 #define USB_DEVICE_ID_MATCH_DEV_HI 0x0008 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define USB_DEVICE_ID_MATCH_DEV_CLASS 0x0010 70 #define USB_DEVICE_ID_MATCH_DEV_SUBCLASS 0x0020 71 #define USB_DEVICE_ID_MATCH_DEV_PROTOCOL 0x0040 72 #define USB_DEVICE_ID_MATCH_INT_CLASS 0x0080 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100 75 #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200 76 struct ccw_device_id { 77 __u16 match_flags; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 __u16 cu_type; 80 __u16 dev_type; 81 __u8 cu_model; 82 __u8 dev_model; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 kernel_ulong_t driver_info; 85 }; 86 #define CCW_DEVICE_ID_MATCH_CU_TYPE 0x01 87 #define CCW_DEVICE_ID_MATCH_CU_MODEL 0x02 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define CCW_DEVICE_ID_MATCH_DEVICE_TYPE 0x04 90 #define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08 91 #define PNP_ID_LEN 8 92 #define PNP_MAX_DEVICES 8 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 struct pnp_device_id { 95 __u8 id[PNP_ID_LEN]; 96 kernel_ulong_t driver_data; 97 }; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 struct pnp_card_device_id { 100 __u8 id[PNP_ID_LEN]; 101 kernel_ulong_t driver_data; 102 struct { 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 __u8 id[PNP_ID_LEN]; 105 } devs[PNP_MAX_DEVICES]; 106 }; 107 #define SERIO_ANY 0xff 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 struct serio_device_id { 110 __u8 type; 111 __u8 extra; 112 __u8 id; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __u8 proto; 115 }; 116 struct of_device_id 117 { 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 char name[32]; 120 char type[32]; 121 char compatible[128]; 122 kernel_ulong_t data; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 }; 125 struct vio_device_id { 126 char type[32]; 127 char compat[32]; 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 }; 130 struct pcmcia_device_id { 131 __u16 match_flags; 132 __u16 manf_id; 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 __u16 card_id; 135 __u8 func_id; 136 __u8 function; 137 __u8 device_no; 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 __u32 prod_id_hash[4] 140 __attribute__((aligned(sizeof(__u32)))); 141 kernel_ulong_t prod_id[4] 142 __attribute__((aligned(sizeof(kernel_ulong_t)))); 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 kernel_ulong_t driver_info; 145 kernel_ulong_t cisfile; 146 }; 147 #define PCMCIA_DEV_ID_MATCH_MANF_ID 0x0001 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define PCMCIA_DEV_ID_MATCH_CARD_ID 0x0002 150 #define PCMCIA_DEV_ID_MATCH_FUNC_ID 0x0004 151 #define PCMCIA_DEV_ID_MATCH_FUNCTION 0x0008 152 #define PCMCIA_DEV_ID_MATCH_PROD_ID1 0x0010 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define PCMCIA_DEV_ID_MATCH_PROD_ID2 0x0020 155 #define PCMCIA_DEV_ID_MATCH_PROD_ID3 0x0040 156 #define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080 157 #define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 #define PCMCIA_DEV_ID_MATCH_FAKE_CIS 0x0200 160 #define PCMCIA_DEV_ID_MATCH_ANONYMOUS 0x0400 161 struct i2c_device_id { 162 __u16 id; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 }; 165 #define INPUT_DEVICE_ID_EV_MAX 0x1f 166 #define INPUT_DEVICE_ID_KEY_MAX 0x1ff 167 #define INPUT_DEVICE_ID_REL_MAX 0x0f 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 #define INPUT_DEVICE_ID_ABS_MAX 0x3f 170 #define INPUT_DEVICE_ID_MSC_MAX 0x07 171 #define INPUT_DEVICE_ID_LED_MAX 0x0f 172 #define INPUT_DEVICE_ID_SND_MAX 0x07 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define INPUT_DEVICE_ID_FF_MAX 0x7f 175 #define INPUT_DEVICE_ID_SW_MAX 0x0f 176 #define INPUT_DEVICE_ID_MATCH_BUS 1 177 #define INPUT_DEVICE_ID_MATCH_VENDOR 2 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 #define INPUT_DEVICE_ID_MATCH_PRODUCT 4 180 #define INPUT_DEVICE_ID_MATCH_VERSION 8 181 #define INPUT_DEVICE_ID_MATCH_EVBIT 0x0010 182 #define INPUT_DEVICE_ID_MATCH_KEYBIT 0x0020 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 #define INPUT_DEVICE_ID_MATCH_RELBIT 0x0040 185 #define INPUT_DEVICE_ID_MATCH_ABSBIT 0x0080 186 #define INPUT_DEVICE_ID_MATCH_MSCIT 0x0100 187 #define INPUT_DEVICE_ID_MATCH_LEDBIT 0x0200 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 #define INPUT_DEVICE_ID_MATCH_SNDBIT 0x0400 190 #define INPUT_DEVICE_ID_MATCH_FFBIT 0x0800 191 #define INPUT_DEVICE_ID_MATCH_SWBIT 0x1000 192 struct input_device_id { 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 kernel_ulong_t flags; 195 __u16 bustype; 196 __u16 vendor; 197 __u16 product; 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 __u16 version; 200 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1]; 201 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1]; 202 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1]; 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1]; 205 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1]; 206 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1]; 207 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1]; 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1]; 210 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1]; 211 kernel_ulong_t driver_info; 212 }; 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 #endif 215