Commit | Line | Data |
---|---|---|
c8a797a9 GKH |
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 | ||
9f5f30e7 | 12 | struct greybus_bundle_id { |
c8a797a9 | 13 | __u16 match_flags; |
f65fa47f JH |
14 | __u32 vendor; |
15 | __u32 product; | |
88e6d37c | 16 | __u8 class; |
c8a797a9 | 17 | |
c4f37c62 | 18 | kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t)); |
c8a797a9 GKH |
19 | }; |
20 | ||
9f5f30e7 | 21 | /* Used to match the greybus_bundle_id */ |
2f0c8aa4 | 22 | #define GREYBUS_ID_MATCH_VENDOR BIT(0) |
0e51032f | 23 | #define GREYBUS_ID_MATCH_PRODUCT BIT(1) |
8a285fed | 24 | #define GREYBUS_ID_MATCH_CLASS BIT(2) |
c8a797a9 | 25 | |
0e51032f | 26 | #endif /* __LINUX_GREYBUS_ID_H */ |