diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-06 21:03:30 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-06 21:03:30 -0500 |
| commit | d3d0b024348c040f0d6851e2e59fc961677d5169 (patch) | |
| tree | ab018edaa027ad069c54beb9cb3d0c5b5efc2198 /include/linux/mod_devicetable.h | |
| parent | 6ed23fd6c08b3ffa17c1f841098d2fa2ab3a59dd (diff) | |
| parent | 9d5c627323dcf0983d699d26dd486272fc98bef2 (diff) | |
Merge branch 'amba-modalias' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm
* 'amba-modalias' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm:
sound: aaci: Enable module alias autogeneration for AMBA drivers
watchdog: sp805: Enable module alias autogeneration for AMBA drivers
fbdev: amba: Enable module alias autogeneration for AMBA drivers
serial: pl011: Enable module alias autogeneration for AMBA drivers
serial: pl010: Enable module alias autogeneration for AMBA drivers
spi: pl022: Enable module alias autogeneration for AMBA drivers
rtc: pl031: Enable module alias autogeneration for AMBA drivers
rtc: pl030: Enable module alias autogeneration for AMBA drivers
mmc: mmci: Enable module alias autogeneration for AMBA drivers
input: ambakmi: Enable module alias autogeneration for AMBA drivers
gpio: pl061: Enable module alias autogeneration for AMBA drivers
dmaengine: pl330: Enable module alias autogeneration for AMBA drivers
dmaengine: pl08x: Enable module alias autogeneration for AMBA drivers
hwrng: nomadik: Enable module alias autogeneration for AMBA drivers
ARM: amba: Auto-generate AMBA driver module aliases during modpost
ARM: amba: Move definition of struct amba_id to mod_devicetable.h
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 468819cdde8..83ac0713ed0 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 */ |
