xref: /kernel/linux/linux-6.6/include/linux/greybus/greybus_id.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/include/linux/greybus/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* FIXME
362306a36Sopenharmony_ci * move this to include/linux/mod_devicetable.h when merging
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef __LINUX_GREYBUS_ID_H
762306a36Sopenharmony_ci#define __LINUX_GREYBUS_ID_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#include <linux/types.h>
1062306a36Sopenharmony_ci#include <linux/mod_devicetable.h>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cistruct greybus_bundle_id {
1462306a36Sopenharmony_ci	__u16	match_flags;
1562306a36Sopenharmony_ci	__u32	vendor;
1662306a36Sopenharmony_ci	__u32	product;
1762306a36Sopenharmony_ci	__u8	class;
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci	kernel_ulong_t	driver_info __aligned(sizeof(kernel_ulong_t));
2062306a36Sopenharmony_ci};
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci/* Used to match the greybus_bundle_id */
2362306a36Sopenharmony_ci#define GREYBUS_ID_MATCH_VENDOR		BIT(0)
2462306a36Sopenharmony_ci#define GREYBUS_ID_MATCH_PRODUCT	BIT(1)
2562306a36Sopenharmony_ci#define GREYBUS_ID_MATCH_CLASS		BIT(2)
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#endif /* __LINUX_GREYBUS_ID_H */
28

Indexes created Thu Nov 07 10:32:03 CST 2024