diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-06-18 17:29:23 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-24 15:59:07 +1000 |
commit | dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249 (patch) | |
tree | 9b7ffcb46406c9217caffa5d55eac400a749fa89 /include | |
parent | 5f64c9e48a120ccf49a27354c5a56b46d8441fc5 (diff) | |
download | skiboot-dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249.zip skiboot-dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249.tar.gz skiboot-dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249.tar.bz2 |
Separate FSP specific PSI code
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 15 | ||||
-rw-r--r-- | include/psi.h | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index 966f704..f17847a 100644 --- a/include/platform.h +++ b/include/platform.h @@ -80,6 +80,16 @@ struct platform_ocapi { struct dt_node; /* + * Just for FSP platforms, allows us to partly decouple + * FSP specific code from core code. + */ +struct platform_psi { + void (*psihb_interrupt)(void); + void (*link_established)(void); + void (*fsp_interrupt)(void); +}; + +/* * Each platform can provide a set of hooks * that can affect the generic code */ @@ -93,6 +103,11 @@ struct platform { */ const struct bmc_platform *bmc; + /* + * PSI handling code. FSP specific. + */ + const struct platform_psi *psi; + /* OpenCAPI platform-specific I2C information */ const struct platform_ocapi *ocapi; diff --git a/include/psi.h b/include/psi.h index ad56ce1..1aca1af 100644 --- a/include/psi.h +++ b/include/psi.h @@ -273,6 +273,6 @@ extern void psi_fsp_link_in_use(struct psi *psi); #define EXTERNAL_IRQ_POLICY_SKIBOOT true extern void psi_set_external_irq_policy(bool policy); - +extern struct lock psi_lock; #endif /* __PSI_H */ |