summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_id.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-11 15:30:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-11 15:30:45 +0800
commitc8a797a98cb63afd620d3ae448e8ee3e45f47088 (patch)
tree3f0b645f42a81e486812ce08e1ea11d2a991382d /drivers/staging/greybus/greybus_id.h
parentcd26f1bd6bf3c73cc5afe848677b430ab342a909 (diff)
greybus: Import most recent greybus code to new repo.
Diffstat (limited to 'drivers/staging/greybus/greybus_id.h')
-rw-r--r--drivers/staging/greybus/greybus_id.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_id.h b/drivers/staging/greybus/greybus_id.h
new file mode 100644
index 000000000000..4afbfe2d5cb9
--- /dev/null
+++ b/drivers/staging/greybus/greybus_id.h
@@ -0,0 +1,27 @@
+/* FIXME
+ * move this to include/linux/mod_devicetable.h when merging
+ */
+
+#ifndef __LINUX_GREYBUS_ID_H
+#define __LINUX_GREYBUS_ID_H
+
+#include <linux/types.h>
+#include <linux/mod_devicetable.h>
+
+
+struct greybus_device_id {
+ __u16 match_flags;
+ __u16 wVendor;
+ __u16 wProduct;
+ __u64 lSerialNumber;
+
+ kernel_ulong_t driver_info
+ __attribute__((aligned(sizeof(kernel_ulong_t))));
+};
+
+/* Used to match the greybus_device_id */
+#define GREYBUS_DEVICE_ID_MATCH_VENDOR BIT(0)
+#define GREYBUS_DEVICE_ID_MATCH_PRODUCT BIT(1)
+#define GREYBUS_DEVICE_ID_MATCH_SERIAL BIT(2)
+
+#endif /* __LINUX_GREYBUS_H */