Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* FIXME
0003  * move this to include/linux/mod_devicetable.h when merging
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 /* Used to match the greybus_bundle_id */
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 /* __LINUX_GREYBUS_ID_H */