blob: 83c4d057cfb067f742cac23d1b920d6b61731054 [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
Greg Kroah-Hartman6584c8a2014-09-01 13:31:31 -070012struct greybus_module_id {
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080013 __u16 match_flags;
Greg Kroah-Hartman6dca7b92014-09-01 13:42:43 -070014 __u16 vendor;
15 __u16 product;
16 __u64 serial_number;
Greg Kroah-Hartmanc8a797a2014-08-11 15:30:45 +080017
18 kernel_ulong_t driver_info
19 __attribute__((aligned(sizeof(kernel_ulong_t))));
20};
21
22/* Used to match the greybus_device_id */
23#define GREYBUS_DEVICE_ID_MATCH_VENDOR BIT(0)
24#define GREYBUS_DEVICE_ID_MATCH_PRODUCT BIT(1)
25#define GREYBUS_DEVICE_ID_MATCH_SERIAL BIT(2)
26
27#endif /* __LINUX_GREYBUS_H */