aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 468819cdde87..b29e7f6f8fa5 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -436,6 +436,17 @@ struct spi_device_id {
436 __attribute__((aligned(sizeof(kernel_ulong_t)))); 436 __attribute__((aligned(sizeof(kernel_ulong_t))));
437}; 437};
438 438
439/* mcp */
440
441#define MCP_NAME_SIZE 20
442#define MCP_MODULE_PREFIX "mcp:"
443
444struct mcp_device_id {
445 char name[MCP_NAME_SIZE];
446 kernel_ulong_t driver_data /* Data private to the driver */
447 __attribute__((aligned(sizeof(kernel_ulong_t))));
448};
449
439/* dmi */ 450/* dmi */
440enum dmi_field { 451enum dmi_field {
441 DMI_NONE, 452 DMI_NONE,
@@ -542,4 +553,22 @@ struct isapnp_device_id {
542 kernel_ulong_t driver_data; /* data private to the driver */ 553 kernel_ulong_t driver_data; /* data private to the driver */
543}; 554};
544 555
556/**
557 * struct amba_id - identifies a device on an AMBA bus
558 * @id: The significant bits if the hardware device ID
559 * @mask: Bitmask specifying which bits of the id field are significant when
560 * matching. A driver binds to a device when ((hardware device ID) & mask)
561 * == id.
562 * @data: Private data used by the driver.
563 */
564struct amba_id {
565 unsigned int id;
566 unsigned int mask;
567#ifndef __KERNEL__
568 kernel_ulong_t data;
569#else
570 void *data;
571#endif
572};
573
545#endif /* LINUX_MOD_DEVICETABLE_H */ 574#endif /* LINUX_MOD_DEVICETABLE_H */