greybus_id.h 590 B

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