0001
0002
0003
0004
0005
0006 #ifndef __LINUX_GREYBUS_ID_H
0007 #define __LINUX_GREYBUS_ID_H
0008
0009 #include <linux/types.h>
0010 #include <linux/mod_devicetable.h>
0011
0012
0013 struct greybus_bundle_id {
0014 __u16 match_flags;
0015 __u32 vendor;
0016 __u32 product;
0017 __u8 class;
0018
0019 kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t));
0020 };
0021
0022
0023 #define GREYBUS_ID_MATCH_VENDOR BIT(0)
0024 #define GREYBUS_ID_MATCH_PRODUCT BIT(1)
0025 #define GREYBUS_ID_MATCH_CLASS BIT(2)
0026
0027 #endif