ARM: VGIC: Introduce gic_get_nr_lrs()
authorAndre Przywara <andre.przywara@linaro.org>
Fri, 9 Mar 2018 15:11:28 +0000 (15:11 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 12 Mar 2018 11:45:17 +0000 (11:45 +0000)
commitfbadecd3b93a6ebe81212c3c6039a1043a0664d7
tree5a6492dea230119fc5fb1df3512a8248d6fcc20f
parentffea3524e2f5094e1b559c74feb2f5f312b35651
ARM: VGIC: Introduce gic_get_nr_lrs()

So far the number of list registers (LRs) a GIC implements is only
needed in the hardware facing side of the VGIC code (gic-vgic.c).
The new VGIC will need this information in more and multiple places, so
export a function that returns the number.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/gic-vgic.c
xen/include/asm-arm/gic.h