ppc/xics: Split ICS into ics-base and ics class
commitd4d7a59a7a703220757cdc24d08a498db3e70212
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 3 Oct 2016 07:24:47 +0000 (3 09:24 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 14 Oct 2016 05:31:02 +0000 (14 16:31 +1100)
tree5d09a3485b275f09ded0d2989316b77503aeb1a2
parentcc706a530518f867c29177a5a337bb08503e617e
ppc/xics: Split ICS into ics-base and ics class

The existing implementation remains same and ics-base is introduced. The
type name "ics" is retained, and all the related functions renamed as
ics_simple_*

This will allow different implementations for the source controllers
such as the MSI support of PHB3 on Power8 which uses in-memory state
tables for example.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
[ clg: added ICS_BASE_GET_CLASS and related fixes, based on :
       http://patchwork.ozlabs.org/patch/646010/ ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/trace-events
hw/intc/xics.c
hw/intc/xics_kvm.c
hw/intc/xics_spapr.c
include/hw/ppc/xics.h