Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 1 | /* FIXME |
| 2 | * move this to include/linux/mod_devicetable.h when merging |
| 3 | */ |
| 4 | |
| 5 | #ifndef __LINUX_GREYBUS_ID_H |
| 6 | #define __LINUX_GREYBUS_ID_H |
| 7 | |
| 8 | #include <linux/types.h> |
| 9 | #include <linux/mod_devicetable.h> |
| 10 | |
| 11 | |
Greg Kroah-Hartman | 6584c8a | 2014-09-01 13:31:31 -0700 | [diff] [blame] | 12 | struct greybus_module_id { |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 13 | __u16 match_flags; |
Greg Kroah-Hartman | 6dca7b9 | 2014-09-01 13:42:43 -0700 | [diff] [blame] | 14 | __u16 vendor; |
| 15 | __u16 product; |
| 16 | __u64 serial_number; |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 17 | |
| 18 | kernel_ulong_t driver_info |
| 19 | __attribute__((aligned(sizeof(kernel_ulong_t)))); |
| 20 | }; |
| 21 | |
| 22 | /* Used to match the greybus_device_id */ |
| 23 | #define GREYBUS_DEVICE_ID_MATCH_VENDOR BIT(0) |
| 24 | #define GREYBUS_DEVICE_ID_MATCH_PRODUCT BIT(1) |
| 25 | #define GREYBUS_DEVICE_ID_MATCH_SERIAL BIT(2) |
| 26 | |
| 27 | #endif /* __LINUX_GREYBUS_H */ |