diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-10-05 14:40:59 +0100 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-11-22 10:58:30 +0000 |
commit | 1e5f9a23430e64fb56d9d5d8e1ca165ba1cfeb75 (patch) | |
tree | 5dc5ea5d1895b063a911f1101a906da696b59f53 /include/linux/mod_devicetable.h | |
parent | cfcfc9eca2bcbd26a8e206baeb005b055dbf8e37 (diff) | |
download | linux-1e5f9a23430e64fb56d9d5d8e1ca165ba1cfeb75.tar.gz linux-1e5f9a23430e64fb56d9d5d8e1ca165ba1cfeb75.tar.bz2 linux-1e5f9a23430e64fb56d9d5d8e1ca165ba1cfeb75.zip |
ARM: amba: Move definition of struct amba_id to mod_devicetable.h
The general kernel infrastructure for adding module alises during
module post processing expects the affected device type
identification structures in a common header
<linux/mod_devicetable.h>.
This patch simple moves struct amba_id to the common header, and
adds the appropriate include in <linux/amba/bus.h>.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 468819cdde87..83ac0713ed0a 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -542,4 +542,22 @@ struct isapnp_device_id { kernel_ulong_t driver_data; /* data private to the driver */ }; +/** + * struct amba_id - identifies a device on an AMBA bus + * @id: The significant bits if the hardware device ID + * @mask: Bitmask specifying which bits of the id field are significant when + * matching. A driver binds to a device when ((hardware device ID) & mask) + * == id. + * @data: Private data used by the driver. + */ +struct amba_id { + unsigned int id; + unsigned int mask; +#ifndef __KERNEL__ + kernel_ulong_t data; +#else + void *data; +#endif +}; + #endif /* LINUX_MOD_DEVICETABLE_H */ |