Rev 5270 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5270 | Rev 6082 | ||
---|---|---|---|
Line 51... | Line 51... | ||
51 | * Use the flag values to control which fields are compared. |
51 | * Use the flag values to control which fields are compared. |
52 | */ |
52 | */ |
Line 53... | Line 53... | ||
53 | 53 | ||
54 | /** |
54 | /** |
55 | * struct usb_device_id - identifies USB devices for probing and hotplugging |
55 | * struct usb_device_id - identifies USB devices for probing and hotplugging |
56 | * @match_flags: Bit mask controlling of the other fields are used to match |
56 | * @match_flags: Bit mask controlling which of the other fields are used to |
57 | * against new devices. Any field except for driver_info may be used, |
57 | * match against new devices. Any field except for driver_info may be |
58 | * although some only make sense in conjunction with other fields. |
58 | * used, although some only make sense in conjunction with other fields. |
59 | * This is usually set by a USB_DEVICE_*() macro, which sets all |
59 | * This is usually set by a USB_DEVICE_*() macro, which sets all |
60 | * other fields in this structure except for driver_info. |
60 | * other fields in this structure except for driver_info. |
61 | * @idVendor: USB vendor ID for a device; numbers are assigned |
61 | * @idVendor: USB vendor ID for a device; numbers are assigned |
62 | * by the USB forum to its members. |
62 | * by the USB forum to its members. |
Line 187... | Line 187... | ||
187 | #define ACPI_ID_LEN 9 |
187 | #define ACPI_ID_LEN 9 |
Line 188... | Line 188... | ||
188 | 188 | ||
189 | struct acpi_device_id { |
189 | struct acpi_device_id { |
190 | __u8 id[ACPI_ID_LEN]; |
190 | __u8 id[ACPI_ID_LEN]; |
- | 191 | kernel_ulong_t driver_data; |
|
- | 192 | __u32 cls; |
|
191 | kernel_ulong_t driver_data; |
193 | __u32 cls_msk; |
Line 192... | Line 194... | ||
192 | }; |
194 | }; |
193 | 195 | ||
Line 215... | Line 217... | ||
215 | __u8 extra; |
217 | __u8 extra; |
216 | __u8 id; |
218 | __u8 id; |
217 | __u8 proto; |
219 | __u8 proto; |
218 | }; |
220 | }; |
Line -... | Line 221... | ||
- | 221 | ||
- | 222 | struct hda_device_id { |
|
- | 223 | __u32 vendor_id; |
|
- | 224 | __u32 rev_id; |
|
- | 225 | __u8 api_version; |
|
- | 226 | const char *name; |
|
- | 227 | unsigned long driver_data; |
|
- | 228 | }; |
|
219 | 229 | ||
220 | /* |
230 | /* |
221 | * Struct used for matching a device |
231 | * Struct used for matching a device |
222 | */ |
232 | */ |
223 | struct of_device_id |
- | |
224 | { |
233 | struct of_device_id { |
225 | char name[32]; |
234 | char name[32]; |
226 | char type[32]; |
235 | char type[32]; |
227 | char compatible[128]; |
236 | char compatible[128]; |
228 | const void *data; |
237 | const void *data; |
Line 363... | Line 372... | ||
363 | __u8 revision; |
372 | __u8 revision; |
364 | __u8 __pad; |
373 | __u8 __pad; |
365 | } __attribute__((packed, aligned(2))); |
374 | } __attribute__((packed, aligned(2))); |
366 | #define SSB_DEVICE(_vendor, _coreid, _revision) \ |
375 | #define SSB_DEVICE(_vendor, _coreid, _revision) \ |
367 | { .vendor = _vendor, .coreid = _coreid, .revision = _revision, } |
376 | { .vendor = _vendor, .coreid = _coreid, .revision = _revision, } |
368 | #define SSB_DEVTABLE_END \ |
- | |
369 | { 0, }, |
- | |
Line 370... | Line 377... | ||
370 | 377 | ||
371 | #define SSB_ANY_VENDOR 0xFFFF |
378 | #define SSB_ANY_VENDOR 0xFFFF |
372 | #define SSB_ANY_ID 0xFFFF |
379 | #define SSB_ANY_ID 0xFFFF |
Line 379... | Line 386... | ||
379 | __u8 rev; |
386 | __u8 rev; |
380 | __u8 class; |
387 | __u8 class; |
381 | } __attribute__((packed,aligned(2))); |
388 | } __attribute__((packed,aligned(2))); |
382 | #define BCMA_CORE(_manuf, _id, _rev, _class) \ |
389 | #define BCMA_CORE(_manuf, _id, _rev, _class) \ |
383 | { .manuf = _manuf, .id = _id, .rev = _rev, .class = _class, } |
390 | { .manuf = _manuf, .id = _id, .rev = _rev, .class = _class, } |
384 | #define BCMA_CORETABLE_END \ |
- | |
385 | { 0, }, |
- | |
Line 386... | Line 391... | ||
386 | 391 | ||
387 | #define BCMA_ANY_MANUF 0xFFFF |
392 | #define BCMA_ANY_MANUF 0xFFFF |
388 | #define BCMA_ANY_ID 0xFFFF |
393 | #define BCMA_ANY_ID 0xFFFF |
389 | #define BCMA_ANY_REV 0xFF |
394 | #define BCMA_ANY_REV 0xFF |
Line 549... | Line 554... | ||
549 | unsigned int id; |
554 | unsigned int id; |
550 | unsigned int mask; |
555 | unsigned int mask; |
551 | void *data; |
556 | void *data; |
552 | }; |
557 | }; |
Line -... | Line 558... | ||
- | 558 | ||
- | 559 | /** |
|
- | 560 | * struct mips_cdmm_device_id - identifies devices in MIPS CDMM bus |
|
- | 561 | * @type: Device type identifier. |
|
- | 562 | */ |
|
- | 563 | struct mips_cdmm_device_id { |
|
- | 564 | __u8 type; |
|
- | 565 | }; |
|
553 | 566 | ||
554 | /* |
567 | /* |
555 | * Match x86 CPUs for CPU specific drivers. |
568 | * Match x86 CPUs for CPU specific drivers. |
556 | * See documentation of "x86_match_cpu" for details. |
569 | * See documentation of "x86_match_cpu" for details. |
Line 594... | Line 607... | ||
594 | __u32 device; /* Device ID or IPACK_ANY_ID */ |
607 | __u32 device; /* Device ID or IPACK_ANY_ID */ |
595 | }; |
608 | }; |
Line 596... | Line 609... | ||
596 | 609 | ||
597 | #define MEI_CL_MODULE_PREFIX "mei:" |
610 | #define MEI_CL_MODULE_PREFIX "mei:" |
- | 611 | #define MEI_CL_NAME_SIZE 32 |
|
Line -... | Line 612... | ||
- | 612 | #define MEI_CL_VERSION_ANY 0xff |
|
- | 613 | ||
- | 614 | /** |
|
- | 615 | * struct mei_cl_device_id - MEI client device identifier |
|
- | 616 | * @name: helper name |
|
- | 617 | * @uuid: client uuid |
|
- | 618 | * @version: client protocol version |
|
- | 619 | * @driver_info: information used by the driver. |
|
- | 620 | * |
|
598 | #define MEI_CL_NAME_SIZE 32 |
621 | * identifies mei client device by uuid and name |
599 | 622 | */ |
|
- | 623 | struct mei_cl_device_id { |
|
- | 624 | char name[MEI_CL_NAME_SIZE]; |
|
600 | struct mei_cl_device_id { |
625 | uuid_le uuid; |
601 | char name[MEI_CL_NAME_SIZE]; |
626 | __u8 version; |
Line 602... | Line 627... | ||
602 | kernel_ulong_t driver_info; |
627 | kernel_ulong_t driver_info; |
Line 624... | Line 649... | ||
624 | struct mcb_device_id { |
649 | struct mcb_device_id { |
625 | __u16 device; |
650 | __u16 device; |
626 | kernel_ulong_t driver_data; |
651 | kernel_ulong_t driver_data; |
627 | }; |
652 | }; |
Line -... | Line 653... | ||
- | 653 | ||
- | 654 | struct ulpi_device_id { |
|
- | 655 | __u16 vendor; |
|
- | 656 | __u16 product; |
|
- | 657 | kernel_ulong_t driver_data; |
|
- | 658 | }; |
|
628 | 659 |