]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7130/1: dev_archdata: add private iommu extension
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 13 Oct 2011 11:53:18 +0000 (12:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Oct 2011 08:13:42 +0000 (09:13 +0100)
commit7df24a1dfedea77831d2cfc400ecfba2edccb00e
treec522a64bef4077557179b1f07823672c5f65e017
parent364dd98ccd78dd1e3a743f0da5f7aae86021eefb
ARM: 7130/1: dev_archdata: add private iommu extension

Add a private iommu pointer to the ARM-specific arch data in the
device struct, which will be used to attach iommu-specific data
to devices which require iommu support.

Different iommu implementations (on different platforms) will attach
different types of data to this pointer, so 'void *' is currently used
(the downside is reduced typesafety).

Note: ia64, x86 and sparc have this exact iommu extension as well, and
if others are likely to adopt it too, we might want to consider
adding this to the device struct itself directly.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/device.h