OSDN Git Service

iommu: Add iommu_reg_read and iommu_reg_write
authorMitchel Humpherys <mitchelh@codeaurora.org>
Fri, 21 Aug 2015 21:06:14 +0000 (14:06 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:00 +0000 (11:14 -0700)
commitb7473024e267ef572a08edb0f9c46ecc16a2922b
tree957a7ab62b123acc31e5f902ee41fa5514623069
parente9f7462305a391532260a6c9e6ec1d23b6073a7c
iommu: Add iommu_reg_read and iommu_reg_write

It might be useful for IOMMU clients to peek and poke at their IOMMU's
registers, but knowing how to access those registers is really the job
of the IOMMU driver (it might need to enable specific clocks and
regulators, for example).  Provide an API to read and write IOMMU
registers that can be implemented by the driver.

Change-Id: I5b2f19225f8bd258278780ff24b4ea96460857aa
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
drivers/iommu/iommu.c
include/linux/iommu.h