blob: c91e7be0451c2f2e8249379d19dc945ca4fa74d4 [file] [log] [blame]
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +08001/* FIXME
2 * move this to include/linux/mod_devicetable.h when merging
3 */
4
5#ifndef __LINUX_GREYBUS_ID_H
6#define __LINUX_GREYBUS_ID_H
7
8#include <linux/types.h>
9#include <linux/mod_devicetable.h>
10
11
Viresh Kumar9f5f30e7122015-04-01 20:32:04 +053012struct greybus_bundle_id {
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080013 __u16 match_flags;
Johan Hovoldf65fa472015-11-21 10:52:02 +010014 __u32 vendor;
15 __u32 product;
Viresh Kumar88e6d372015-04-06 15:49:36 +053016 __u8 class;
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080017
Greg Kroah-Hartmanc4f37c62014-10-06 20:37:08 -070018 kernel_ulong_t driver_info __aligned(sizeof(kernel_ulong_t));
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080019};
20
Viresh Kumar9f5f30e7122015-04-01 20:32:04 +053021/* Used to match the greybus_bundle_id */
Greg Kroah-Hartman2f0c8aa2014-12-11 17:11:02 -050022#define GREYBUS_ID_MATCH_VENDOR BIT(0)
Greg Kroah-Hartman0e510322014-12-19 14:56:34 -080023#define GREYBUS_ID_MATCH_PRODUCT BIT(1)
Viresh Kumar88e6d372015-04-06 15:49:36 +053024#define GREYBUS_ID_MATCH_CLASS BIT(3)
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080025
Greg Kroah-Hartman0e510322014-12-19 14:56:34 -080026#endif /* __LINUX_GREYBUS_ID_H */