diff options
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 { | |||
542 | kernel_ulong_t driver_data; /* data private to the driver */ | 542 | kernel_ulong_t driver_data; /* data private to the driver */ |
543 | }; | 543 | }; |
544 | 544 | ||
545 | /** | ||
546 | * struct amba_id - identifies a device on an AMBA bus | ||
547 | * @id: The significant bits if the hardware device ID | ||
548 | * @mask: Bitmask specifying which bits of the id field are significant when | ||
549 | * matching. A driver binds to a device when ((hardware device ID) & mask) | ||
550 | * == id. | ||
551 | * @data: Private data used by the driver. | ||
552 | */ | ||
553 | struct amba_id { | ||
554 | unsigned int id; | ||
555 | unsigned int mask; | ||
556 | #ifndef __KERNEL__ | ||
557 | kernel_ulong_t data; | ||
558 | #else | ||
559 | void *data; | ||
560 | #endif | ||
561 | }; | ||
562 | |||
545 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 563 | #endif /* LINUX_MOD_DEVICETABLE_H */ |