aboutsummaryrefslogtreecommitdiff
path: root/include/chip.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-07 11:49:53 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-08 16:36:51 +1000
commit6480d96563482066557460e85d9113d4cbea7540 (patch)
treef5fd5348bcc133111ab892356b1aef86d12ac35c /include/chip.h
parentfe0cc4773748b46859786e06d6705a1bf8547173 (diff)
downloadskiboot-6480d96563482066557460e85d9113d4cbea7540.zip
skiboot-6480d96563482066557460e85d9113d4cbea7540.tar.gz
skiboot-6480d96563482066557460e85d9113d4cbea7540.tar.bz2
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 <benh@kernel.crashing.org> [stewart@linux.vnet.ibm.com: add (C) header, fix whitespace, missing breaks] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/chip.h')
-rw-r--r--include/chip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/chip.h b/include/chip.h
index 4541368..1f31a13 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);