mod_devicetable.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. /*
  2. * Device tables which are exported to userspace via
  3. * scripts/mod/file2alias.c. You must keep that file in sync with this
  4. * header.
  5. */
  6. #ifndef LINUX_MOD_DEVICETABLE_H
  7. #define LINUX_MOD_DEVICETABLE_H
  8. #ifdef __KERNEL__
  9. #include <linux/types.h>
  10. typedef unsigned long kernel_ulong_t;
  11. #endif
  12. #define PCI_ANY_ID (~0)
  13. struct pci_device_id {
  14. __u32 vendor, device; /* Vendor and device ID or PCI_ANY_ID*/
  15. __u32 subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */
  16. __u32 class, class_mask; /* (class,subclass,prog-if) triplet */
  17. kernel_ulong_t driver_data; /* Data private to the driver */
  18. };
  19. #define IEEE1394_MATCH_VENDOR_ID 0x0001
  20. #define IEEE1394_MATCH_MODEL_ID 0x0002
  21. #define IEEE1394_MATCH_SPECIFIER_ID 0x0004
  22. #define IEEE1394_MATCH_VERSION 0x0008
  23. struct ieee1394_device_id {
  24. __u32 match_flags;
  25. __u32 vendor_id;
  26. __u32 model_id;
  27. __u32 specifier_id;
  28. __u32 version;
  29. kernel_ulong_t driver_data
  30. __attribute__((aligned(sizeof(kernel_ulong_t))));
  31. };
  32. /*
  33. * Device table entry for "new style" table-driven USB drivers.
  34. * User mode code can read these tables to choose which modules to load.
  35. * Declare the table as a MODULE_DEVICE_TABLE.
  36. *
  37. * A probe() parameter will point to a matching entry from this table.
  38. * Use the driver_info field for each match to hold information tied
  39. * to that match: device quirks, etc.
  40. *
  41. * Terminate the driver's table with an all-zeroes entry.
  42. * Use the flag values to control which fields are compared.
  43. */
  44. /**
  45. * struct usb_device_id - identifies USB devices for probing and hotplugging
  46. * @match_flags: Bit mask controlling of the other fields are used to match
  47. * against new devices. Any field except for driver_info may be used,
  48. * although some only make sense in conjunction with other fields.
  49. * This is usually set by a USB_DEVICE_*() macro, which sets all
  50. * other fields in this structure except for driver_info.
  51. * @idVendor: USB vendor ID for a device; numbers are assigned
  52. * by the USB forum to its members.
  53. * @idProduct: Vendor-assigned product ID.
  54. * @bcdDevice_lo: Low end of range of vendor-assigned product version numbers.
  55. * This is also used to identify individual product versions, for
  56. * a range consisting of a single device.
  57. * @bcdDevice_hi: High end of version number range. The range of product
  58. * versions is inclusive.
  59. * @bDeviceClass: Class of device; numbers are assigned
  60. * by the USB forum. Products may choose to implement classes,
  61. * or be vendor-specific. Device classes specify behavior of all
  62. * the interfaces on a devices.
  63. * @bDeviceSubClass: Subclass of device; associated with bDeviceClass.
  64. * @bDeviceProtocol: Protocol of device; associated with bDeviceClass.
  65. * @bInterfaceClass: Class of interface; numbers are assigned
  66. * by the USB forum. Products may choose to implement classes,
  67. * or be vendor-specific. Interface classes specify behavior only
  68. * of a given interface; other interfaces may support other classes.
  69. * @bInterfaceSubClass: Subclass of interface; associated with bInterfaceClass.
  70. * @bInterfaceProtocol: Protocol of interface; associated with bInterfaceClass.
  71. * @driver_info: Holds information used by the driver. Usually it holds
  72. * a pointer to a descriptor understood by the driver, or perhaps
  73. * device flags.
  74. *
  75. * In most cases, drivers will create a table of device IDs by using
  76. * USB_DEVICE(), or similar macros designed for that purpose.
  77. * They will then export it to userspace using MODULE_DEVICE_TABLE(),
  78. * and provide it to the USB core through their usb_driver structure.
  79. *
  80. * See the usb_match_id() function for information about how matches are
  81. * performed. Briefly, you will normally use one of several macros to help
  82. * construct these entries. Each entry you provide will either identify
  83. * one or more specific products, or will identify a class of products
  84. * which have agreed to behave the same. You should put the more specific
  85. * matches towards the beginning of your table, so that driver_info can
  86. * record quirks of specific products.
  87. */
  88. struct usb_device_id {
  89. /* which fields to match against? */
  90. __u16 match_flags;
  91. /* Used for product specific matches; range is inclusive */
  92. __u16 idVendor;
  93. __u16 idProduct;
  94. __u16 bcdDevice_lo;
  95. __u16 bcdDevice_hi;
  96. /* Used for device class matches */
  97. __u8 bDeviceClass;
  98. __u8 bDeviceSubClass;
  99. __u8 bDeviceProtocol;
  100. /* Used for interface class matches */
  101. __u8 bInterfaceClass;
  102. __u8 bInterfaceSubClass;
  103. __u8 bInterfaceProtocol;
  104. /* not matched against */
  105. kernel_ulong_t driver_info;
  106. };
  107. /* Some useful macros to use to create struct usb_device_id */
  108. #define USB_DEVICE_ID_MATCH_VENDOR 0x0001
  109. #define USB_DEVICE_ID_MATCH_PRODUCT 0x0002
  110. #define USB_DEVICE_ID_MATCH_DEV_LO 0x0004
  111. #define USB_DEVICE_ID_MATCH_DEV_HI 0x0008
  112. #define USB_DEVICE_ID_MATCH_DEV_CLASS 0x0010
  113. #define USB_DEVICE_ID_MATCH_DEV_SUBCLASS 0x0020
  114. #define USB_DEVICE_ID_MATCH_DEV_PROTOCOL 0x0040
  115. #define USB_DEVICE_ID_MATCH_INT_CLASS 0x0080
  116. #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100
  117. #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200
  118. #define HID_ANY_ID (~0)
  119. struct hid_device_id {
  120. __u16 bus;
  121. __u16 pad1;
  122. __u32 vendor;
  123. __u32 product;
  124. kernel_ulong_t driver_data
  125. __attribute__((aligned(sizeof(kernel_ulong_t))));
  126. };
  127. /* s390 CCW devices */
  128. struct ccw_device_id {
  129. __u16 match_flags; /* which fields to match against */
  130. __u16 cu_type; /* control unit type */
  131. __u16 dev_type; /* device type */
  132. __u8 cu_model; /* control unit model */
  133. __u8 dev_model; /* device model */
  134. kernel_ulong_t driver_info;
  135. };
  136. #define CCW_DEVICE_ID_MATCH_CU_TYPE 0x01
  137. #define CCW_DEVICE_ID_MATCH_CU_MODEL 0x02
  138. #define CCW_DEVICE_ID_MATCH_DEVICE_TYPE 0x04
  139. #define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08
  140. /* s390 AP bus devices */
  141. struct ap_device_id {
  142. __u16 match_flags; /* which fields to match against */
  143. __u8 dev_type; /* device type */
  144. __u8 pad1;
  145. __u32 pad2;
  146. kernel_ulong_t driver_info;
  147. };
  148. #define AP_DEVICE_ID_MATCH_DEVICE_TYPE 0x01
  149. /* s390 css bus devices (subchannels) */
  150. struct css_device_id {
  151. __u8 match_flags;
  152. __u8 type; /* subchannel type */
  153. __u16 pad2;
  154. __u32 pad3;
  155. kernel_ulong_t driver_data;
  156. };
  157. #define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */
  158. /* to workaround crosscompile issues */
  159. struct acpi_device_id {
  160. __u8 id[ACPI_ID_LEN];
  161. kernel_ulong_t driver_data;
  162. };
  163. #define PNP_ID_LEN 8
  164. #define PNP_MAX_DEVICES 8
  165. struct pnp_device_id {
  166. __u8 id[PNP_ID_LEN];
  167. kernel_ulong_t driver_data;
  168. };
  169. struct pnp_card_device_id {
  170. __u8 id[PNP_ID_LEN];
  171. kernel_ulong_t driver_data;
  172. struct {
  173. __u8 id[PNP_ID_LEN];
  174. } devs[PNP_MAX_DEVICES];
  175. };
  176. #define SERIO_ANY 0xff
  177. struct serio_device_id {
  178. __u8 type;
  179. __u8 extra;
  180. __u8 id;
  181. __u8 proto;
  182. };
  183. /*
  184. * Struct used for matching a device
  185. */
  186. struct of_device_id
  187. {
  188. char name[32];
  189. char type[32];
  190. char compatible[128];
  191. #ifdef __KERNEL__
  192. void *data;
  193. #else
  194. kernel_ulong_t data;
  195. #endif
  196. };
  197. /* VIO */
  198. struct vio_device_id {
  199. char type[32];
  200. char compat[32];
  201. };
  202. /* PCMCIA */
  203. struct pcmcia_device_id {
  204. __u16 match_flags;
  205. __u16 manf_id;
  206. __u16 card_id;
  207. __u8 func_id;
  208. /* for real multi-function devices */
  209. __u8 function;
  210. /* for pseudo multi-function devices */
  211. __u8 device_no;
  212. __u32 prod_id_hash[4]
  213. __attribute__((aligned(sizeof(__u32))));
  214. /* not matched against in kernelspace*/
  215. #ifdef __KERNEL__
  216. const char * prod_id[4];
  217. #else
  218. kernel_ulong_t prod_id[4]
  219. __attribute__((aligned(sizeof(kernel_ulong_t))));
  220. #endif
  221. /* not matched against */
  222. kernel_ulong_t driver_info;
  223. #ifdef __KERNEL__
  224. char * cisfile;
  225. #else
  226. kernel_ulong_t cisfile;
  227. #endif
  228. };
  229. #define PCMCIA_DEV_ID_MATCH_MANF_ID 0x0001
  230. #define PCMCIA_DEV_ID_MATCH_CARD_ID 0x0002
  231. #define PCMCIA_DEV_ID_MATCH_FUNC_ID 0x0004
  232. #define PCMCIA_DEV_ID_MATCH_FUNCTION 0x0008
  233. #define PCMCIA_DEV_ID_MATCH_PROD_ID1 0x0010
  234. #define PCMCIA_DEV_ID_MATCH_PROD_ID2 0x0020
  235. #define PCMCIA_DEV_ID_MATCH_PROD_ID3 0x0040
  236. #define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080
  237. #define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100
  238. #define PCMCIA_DEV_ID_MATCH_FAKE_CIS 0x0200
  239. #define PCMCIA_DEV_ID_MATCH_ANONYMOUS 0x0400
  240. /* Input */
  241. #define INPUT_DEVICE_ID_EV_MAX 0x1f
  242. #define INPUT_DEVICE_ID_KEY_MIN_INTERESTING 0x71
  243. #define INPUT_DEVICE_ID_KEY_MAX 0x2ff
  244. #define INPUT_DEVICE_ID_REL_MAX 0x0f
  245. #define INPUT_DEVICE_ID_ABS_MAX 0x3f
  246. #define INPUT_DEVICE_ID_MSC_MAX 0x07
  247. #define INPUT_DEVICE_ID_LED_MAX 0x0f
  248. #define INPUT_DEVICE_ID_SND_MAX 0x07
  249. #define INPUT_DEVICE_ID_FF_MAX 0x7f
  250. #define INPUT_DEVICE_ID_SW_MAX 0x0f
  251. #define INPUT_DEVICE_ID_MATCH_BUS 1
  252. #define INPUT_DEVICE_ID_MATCH_VENDOR 2
  253. #define INPUT_DEVICE_ID_MATCH_PRODUCT 4
  254. #define INPUT_DEVICE_ID_MATCH_VERSION 8
  255. #define INPUT_DEVICE_ID_MATCH_EVBIT 0x0010
  256. #define INPUT_DEVICE_ID_MATCH_KEYBIT 0x0020
  257. #define INPUT_DEVICE_ID_MATCH_RELBIT 0x0040
  258. #define INPUT_DEVICE_ID_MATCH_ABSBIT 0x0080
  259. #define INPUT_DEVICE_ID_MATCH_MSCIT 0x0100
  260. #define INPUT_DEVICE_ID_MATCH_LEDBIT 0x0200
  261. #define INPUT_DEVICE_ID_MATCH_SNDBIT 0x0400
  262. #define INPUT_DEVICE_ID_MATCH_FFBIT 0x0800
  263. #define INPUT_DEVICE_ID_MATCH_SWBIT 0x1000
  264. struct input_device_id {
  265. kernel_ulong_t flags;
  266. __u16 bustype;
  267. __u16 vendor;
  268. __u16 product;
  269. __u16 version;
  270. kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
  271. kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
  272. kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
  273. kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
  274. kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
  275. kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
  276. kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
  277. kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
  278. kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
  279. kernel_ulong_t driver_info;
  280. };
  281. /* EISA */
  282. #define EISA_SIG_LEN 8
  283. /* The EISA signature, in ASCII form, null terminated */
  284. struct eisa_device_id {
  285. char sig[EISA_SIG_LEN];
  286. kernel_ulong_t driver_data;
  287. };
  288. #define EISA_DEVICE_MODALIAS_FMT "eisa:s%s"
  289. struct parisc_device_id {
  290. __u8 hw_type; /* 5 bits used */
  291. __u8 hversion_rev; /* 4 bits */
  292. __u16 hversion; /* 12 bits */
  293. __u32 sversion; /* 20 bits */
  294. };
  295. #define PA_HWTYPE_ANY_ID 0xff
  296. #define PA_HVERSION_REV_ANY_ID 0xff
  297. #define PA_HVERSION_ANY_ID 0xffff
  298. #define PA_SVERSION_ANY_ID 0xffffffff
  299. /* SDIO */
  300. #define SDIO_ANY_ID (~0)
  301. struct sdio_device_id {
  302. __u8 class; /* Standard interface or SDIO_ANY_ID */
  303. __u16 vendor; /* Vendor or SDIO_ANY_ID */
  304. __u16 device; /* Device ID or SDIO_ANY_ID */
  305. kernel_ulong_t driver_data /* Data private to the driver */
  306. __attribute__((aligned(sizeof(kernel_ulong_t))));
  307. };
  308. /* SSB core, see drivers/ssb/ */
  309. struct ssb_device_id {
  310. __u16 vendor;
  311. __u16 coreid;
  312. __u8 revision;
  313. };
  314. #define SSB_DEVICE(_vendor, _coreid, _revision) \
  315. { .vendor = _vendor, .coreid = _coreid, .revision = _revision, }
  316. #define SSB_DEVTABLE_END \
  317. { 0, },
  318. #define SSB_ANY_VENDOR 0xFFFF
  319. #define SSB_ANY_ID 0xFFFF
  320. #define SSB_ANY_REV 0xFF
  321. /* Broadcom's specific AMBA core, see drivers/bcma/ */
  322. struct bcma_device_id {
  323. __u16 manuf;
  324. __u16 id;
  325. __u8 rev;
  326. __u8 class;
  327. };
  328. #define BCMA_CORE(_manuf, _id, _rev, _class) \
  329. { .manuf = _manuf, .id = _id, .rev = _rev, .class = _class, }
  330. #define BCMA_CORETABLE_END \
  331. { 0, },
  332. #define BCMA_ANY_MANUF 0xFFFF
  333. #define BCMA_ANY_ID 0xFFFF
  334. #define BCMA_ANY_REV 0xFF
  335. #define BCMA_ANY_CLASS 0xFF
  336. struct virtio_device_id {
  337. __u32 device;
  338. __u32 vendor;
  339. };
  340. #define VIRTIO_DEV_ANY_ID 0xffffffff
  341. /*
  342. * For Hyper-V devices we use the device guid as the id.
  343. */
  344. struct hv_vmbus_device_id {
  345. __u8 guid[16];
  346. kernel_ulong_t driver_data /* Data private to the driver */
  347. __attribute__((aligned(sizeof(kernel_ulong_t))));
  348. };
  349. /* i2c */
  350. #define I2C_NAME_SIZE 20
  351. #define I2C_MODULE_PREFIX "i2c:"
  352. struct i2c_device_id {
  353. char name[I2C_NAME_SIZE];
  354. kernel_ulong_t driver_data /* Data private to the driver */
  355. __attribute__((aligned(sizeof(kernel_ulong_t))));
  356. };
  357. /* spi */
  358. #define SPI_NAME_SIZE 32
  359. #define SPI_MODULE_PREFIX "spi:"
  360. struct spi_device_id {
  361. char name[SPI_NAME_SIZE];
  362. kernel_ulong_t driver_data /* Data private to the driver */
  363. __attribute__((aligned(sizeof(kernel_ulong_t))));
  364. };
  365. /* mcp */
  366. #define MCP_NAME_SIZE 20
  367. #define MCP_MODULE_PREFIX "mcp:"
  368. struct mcp_device_id {
  369. char name[MCP_NAME_SIZE];
  370. kernel_ulong_t driver_data /* Data private to the driver */
  371. __attribute__((aligned(sizeof(kernel_ulong_t))));
  372. };
  373. /* dmi */
  374. enum dmi_field {
  375. DMI_NONE,
  376. DMI_BIOS_VENDOR,
  377. DMI_BIOS_VERSION,
  378. DMI_BIOS_DATE,
  379. DMI_SYS_VENDOR,
  380. DMI_PRODUCT_NAME,
  381. DMI_PRODUCT_VERSION,
  382. DMI_PRODUCT_SERIAL,
  383. DMI_PRODUCT_UUID,
  384. DMI_BOARD_VENDOR,
  385. DMI_BOARD_NAME,
  386. DMI_BOARD_VERSION,
  387. DMI_BOARD_SERIAL,
  388. DMI_BOARD_ASSET_TAG,
  389. DMI_CHASSIS_VENDOR,
  390. DMI_CHASSIS_TYPE,
  391. DMI_CHASSIS_VERSION,
  392. DMI_CHASSIS_SERIAL,
  393. DMI_CHASSIS_ASSET_TAG,
  394. DMI_STRING_MAX,
  395. };
  396. struct dmi_strmatch {
  397. unsigned char slot;
  398. char substr[79];
  399. };
  400. #ifndef __KERNEL__
  401. struct dmi_system_id {
  402. kernel_ulong_t callback;
  403. kernel_ulong_t ident;
  404. struct dmi_strmatch matches[4];
  405. kernel_ulong_t driver_data
  406. __attribute__((aligned(sizeof(kernel_ulong_t))));
  407. };
  408. #else
  409. struct dmi_system_id {
  410. int (*callback)(const struct dmi_system_id *);
  411. const char *ident;
  412. struct dmi_strmatch matches[4];
  413. void *driver_data;
  414. };
  415. /*
  416. * struct dmi_device_id appears during expansion of
  417. * "MODULE_DEVICE_TABLE(dmi, x)". Compiler doesn't look inside it
  418. * but this is enough for gcc 3.4.6 to error out:
  419. * error: storage size of '__mod_dmi_device_table' isn't known
  420. */
  421. #define dmi_device_id dmi_system_id
  422. #endif
  423. #define DMI_MATCH(a, b) { a, b }
  424. #define PLATFORM_NAME_SIZE 20
  425. #define PLATFORM_MODULE_PREFIX "platform:"
  426. struct platform_device_id {
  427. char name[PLATFORM_NAME_SIZE];
  428. kernel_ulong_t driver_data
  429. __attribute__((aligned(sizeof(kernel_ulong_t))));
  430. };
  431. #define MDIO_MODULE_PREFIX "mdio:"
  432. #define MDIO_ID_FMT "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d"
  433. #define MDIO_ID_ARGS(_id) \
  434. (_id)>>31, ((_id)>>30) & 1, ((_id)>>29) & 1, ((_id)>>28) & 1, \
  435. ((_id)>>27) & 1, ((_id)>>26) & 1, ((_id)>>25) & 1, ((_id)>>24) & 1, \
  436. ((_id)>>23) & 1, ((_id)>>22) & 1, ((_id)>>21) & 1, ((_id)>>20) & 1, \
  437. ((_id)>>19) & 1, ((_id)>>18) & 1, ((_id)>>17) & 1, ((_id)>>16) & 1, \
  438. ((_id)>>15) & 1, ((_id)>>14) & 1, ((_id)>>13) & 1, ((_id)>>12) & 1, \
  439. ((_id)>>11) & 1, ((_id)>>10) & 1, ((_id)>>9) & 1, ((_id)>>8) & 1, \
  440. ((_id)>>7) & 1, ((_id)>>6) & 1, ((_id)>>5) & 1, ((_id)>>4) & 1, \
  441. ((_id)>>3) & 1, ((_id)>>2) & 1, ((_id)>>1) & 1, (_id) & 1
  442. /**
  443. * struct mdio_device_id - identifies PHY devices on an MDIO/MII bus
  444. * @phy_id: The result of
  445. * (mdio_read(&MII_PHYSID1) << 16 | mdio_read(&PHYSID2)) & @phy_id_mask
  446. * for this PHY type
  447. * @phy_id_mask: Defines the significant bits of @phy_id. A value of 0
  448. * is used to terminate an array of struct mdio_device_id.
  449. */
  450. struct mdio_device_id {
  451. __u32 phy_id;
  452. __u32 phy_id_mask;
  453. };
  454. struct zorro_device_id {
  455. __u32 id; /* Device ID or ZORRO_WILDCARD */
  456. kernel_ulong_t driver_data; /* Data private to the driver */
  457. };
  458. #define ZORRO_WILDCARD (0xffffffff) /* not official */
  459. #define ZORRO_DEVICE_MODALIAS_FMT "zorro:i%08X"
  460. #define ISAPNP_ANY_ID 0xffff
  461. struct isapnp_device_id {
  462. unsigned short card_vendor, card_device;
  463. unsigned short vendor, function;
  464. kernel_ulong_t driver_data; /* data private to the driver */
  465. };
  466. /**
  467. * struct amba_id - identifies a device on an AMBA bus
  468. * @id: The significant bits if the hardware device ID
  469. * @mask: Bitmask specifying which bits of the id field are significant when
  470. * matching. A driver binds to a device when ((hardware device ID) & mask)
  471. * == id.
  472. * @data: Private data used by the driver.
  473. */
  474. struct amba_id {
  475. unsigned int id;
  476. unsigned int mask;
  477. #ifndef __KERNEL__
  478. kernel_ulong_t data;
  479. #else
  480. void *data;
  481. #endif
  482. };
  483. #endif /* LINUX_MOD_DEVICETABLE_H */