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; |
Alex Elder | 63cc932 | 2014-10-02 12:30:02 -0500 | [diff] [blame] | 16 | __u64 unique_id; |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 17 | |
Greg Kroah-Hartman | c4f37c6 | 2014-10-06 20:37:08 -0700 | [diff] [blame] | 18 | kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t)); |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 19 | }; |
| 20 | |
Alex Elder | 778c69c | 2014-09-22 19:19:03 -0500 | [diff] [blame] | 21 | /* Used to match the greybus_module_id */ |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 22 | #define GREYBUS_DEVICE_ID_MATCH_VENDOR BIT(0) |
| 23 | #define GREYBUS_DEVICE_ID_MATCH_PRODUCT BIT(1) |
| 24 | #define GREYBUS_DEVICE_ID_MATCH_SERIAL BIT(2) |
| 25 | |
| 26 | #endif /* __LINUX_GREYBUS_H */ |