diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-11 15:30:45 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-11 15:30:45 +0800 |
commit | c8a797a98cb63afd620d3ae448e8ee3e45f47088 (patch) | |
tree | 3f0b645f42a81e486812ce08e1ea11d2a991382d /drivers/staging/greybus/greybus_id.h | |
parent | cd26f1bd6bf3c73cc5afe848677b430ab342a909 (diff) | |
download | op-kernel-dev-c8a797a98cb63afd620d3ae448e8ee3e45f47088.zip op-kernel-dev-c8a797a98cb63afd620d3ae448e8ee3e45f47088.tar.gz |
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.h | 27 |
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 0000000..4afbfe2 --- /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 */ |