From 6480d96563482066557460e85d9113d4cbea7540 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 7 Jul 2016 11:49:53 +1000 Subject: XIVE: Base XIVE support for OPAL XICS emulation calls This provides basic initialization of the XIVE along with some OPAL calls to emulate an old-style XICS which will initially be used by Linux for backward compatibility. The current implementation is limited to one priority and doesn't expose much to Linux for future exploitation mode yet. Signed-off-by: Benjamin Herrenschmidt [stewart@linux.vnet.ibm.com: add (C) header, fix whitespace, missing breaks] Signed-off-by: Stewart Smith --- include/chip.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/chip.h') diff --git a/include/chip.h b/include/chip.h index 45413685..1f31a13a 100644 --- a/include/chip.h +++ b/include/chip.h @@ -106,6 +106,7 @@ struct dt_node; struct centaur_chip; struct mfsi; +struct xive; /* Chip type */ enum proc_chip_type { @@ -201,6 +202,9 @@ struct proc_chip { /* Used by hw/fsi-master.c */ struct mfsi *fsi_masters; + + /* Used by hw/xive.c */ + struct xive *xive; }; extern uint32_t pir_to_chip_id(uint32_t pir); -- cgit v1.2.1