mod_devicetable.h 15 KB

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