1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* FIXME
3 * move this to include/linux/mod_devicetable.h when merging
4 */
5
6 #ifndef __LINUX_GREYBUS_ID_H
7 #define __LINUX_GREYBUS_ID_H
8
9 #include <linux/types.h>
10 #include <linux/mod_devicetable.h>
11
12
13 struct greybus_bundle_id {
14 __u16 match_flags;
15 __u32 vendor;
16 __u32 product;
17 __u8 class;
18
19 kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t));
20 };
21
22 /* Used to match the greybus_bundle_id */
23 #define GREYBUS_ID_MATCH_VENDOR BIT(0)
24 #define GREYBUS_ID_MATCH_PRODUCT BIT(1)
25 #define GREYBUS_ID_MATCH_CLASS BIT(2)
26
27 #endif /* __LINUX_GREYBUS_ID_H */