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 | |
Viresh Kumar | 9f5f30e712 | 2015-04-01 20:32:04 +0530 | [diff] [blame] | 12 | struct greybus_bundle_id { |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 13 | __u16 match_flags; |
Johan Hovold | f65fa47 | 2015-11-21 10:52:02 +0100 | [diff] [blame] | 14 | __u32 vendor; |
| 15 | __u32 product; |
Viresh Kumar | 88e6d37 | 2015-04-06 15:49:36 +0530 | [diff] [blame] | 16 | __u8 class; |
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 | |
Viresh Kumar | 9f5f30e712 | 2015-04-01 20:32:04 +0530 | [diff] [blame] | 21 | /* Used to match the greybus_bundle_id */ |
Greg Kroah-Hartman | 2f0c8aa | 2014-12-11 17:11:02 -0500 | [diff] [blame] | 22 | #define GREYBUS_ID_MATCH_VENDOR BIT(0) |
Greg Kroah-Hartman | 0e51032 | 2014-12-19 14:56:34 -0800 | [diff] [blame] | 23 | #define GREYBUS_ID_MATCH_PRODUCT BIT(1) |
Viresh Kumar | 88e6d37 | 2015-04-06 15:49:36 +0530 | [diff] [blame] | 24 | #define GREYBUS_ID_MATCH_CLASS BIT(3) |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 25 | |
Greg Kroah-Hartman | 0e51032 | 2014-12-19 14:56:34 -0800 | [diff] [blame] | 26 | #endif /* __LINUX_GREYBUS_ID_H */ |