diff options
author | Eric Auger <eric.auger@redhat.com> | 2016-12-20 11:20:00 +0300 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-05-08 15:31:48 +0300 |
commit | 4b7171ac564786247a49eedc59d3060bddf2377c (patch) | |
tree | 399fb98941cdd89f090e1a2e6b8a8eb0ed9d22e5 /virt/kvm/arm/vgic/vgic-mmio.h | |
parent | 9ce91c7234ff477c805c3dec7cf54716193c7a48 (diff) | |
download | linux-4b7171ac564786247a49eedc59d3060bddf2377c.tar.xz |
arm/arm64: vgic: turn vgic_find_mmio_region into public
We plan to use vgic_find_mmio_region in vgic-its.c so let's
turn it into a public function.
Also let's take the opportunity to rename the region parameter
into regions to emphasize this latter is an array of regions.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-mmio.h')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-mmio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic/vgic-mmio.h b/virt/kvm/arm/vgic/vgic-mmio.h index 98bb566b660a..6eec91bb1657 100644 --- a/virt/kvm/arm/vgic/vgic-mmio.h +++ b/virt/kvm/arm/vgic/vgic-mmio.h @@ -192,4 +192,9 @@ u64 vgic_sanitise_shareability(u64 reg); u64 vgic_sanitise_field(u64 reg, u64 field_mask, int field_shift, u64 (*sanitise_fn)(u64)); +/* Find the proper register handler entry given a certain address offset */ +const struct vgic_register_region * +vgic_find_mmio_region(const struct vgic_register_region *regions, + int nr_regions, unsigned int offset); + #endif |