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 12 struct greybus_bundle_id { 13 __u16 match_flags; 14 __u32 vendor; 15 __u32 product; 16 __u8 class; 17 18 kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t)); 19 }; 20 21 /* Used to match the greybus_bundle_id */ 22 #define GREYBUS_ID_MATCH_VENDOR BIT(0) 23 #define GREYBUS_ID_MATCH_PRODUCT BIT(1) 24 #define GREYBUS_ID_MATCH_CLASS BIT(2) 25 26 #endif /* __LINUX_GREYBUS_ID_H */ 27