ARM: OMAP: iommu: declare a private iommu binding struct
authorOhad Ben-Cohen <ohad@wizery.com>
Fri, 23 Sep 2011 13:37:27 +0000 (16:37 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Mon, 5 Dec 2011 13:43:30 +0000 (15:43 +0200)
commit1fa02ac9536c9a5278e999e40e274bba62c23a4d
tree46dc370512775faba7920b8ff4e1b40c186e8dee
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37
ARM: OMAP: iommu: declare a private iommu binding struct

Declare an omap iommu private struct, which binds an iommu user
to its iommu device. This struct should be placed at the iommu user's
dev_archdata so generic IOMMU API can be used without having to
utilize omap-specific plumbing anymore.

While at it, provide an accessor method to ease the retrieval of the
omap_iommu handle from a user device.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
arch/arm/plat-omap/include/plat/iommu.h