diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-06-18 17:29:24 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-24 15:59:07 +1000 |
commit | 633645665cb3941be3cbdae73d5c8955d37f1cde (patch) | |
tree | 65cc30c6779fedab8d878f365d56ca24f82ada51 /include | |
parent | dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249 (diff) | |
download | skiboot-633645665cb3941be3cbdae73d5c8955d37f1cde.zip skiboot-633645665cb3941be3cbdae73d5c8955d37f1cde.tar.gz skiboot-633645665cb3941be3cbdae73d5c8955d37f1cde.tar.bz2 |
Move platform specific PRD functionality to struct platform
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index f17847a..0326e1a 100644 --- a/include/platform.h +++ b/include/platform.h @@ -90,6 +90,18 @@ struct platform_psi { }; /* + * Some PRD functionality is platform specific. + */ +struct platform_prd { + void (*msg_response)(uint32_t rc); + int (*send_error_log)(uint32_t plid, uint32_t dsize, void *data); + int (*send_hbrt_msg)(void *data, u64 dsize); + int (*wakeup)(uint32_t i_core, uint32_t i_mode); + int (*fsp_occ_load_start_status)(u64 chipid, s64 status); + int (*fsp_occ_reset_status)(u64 chipid, s64 status); +}; + +/* * Each platform can provide a set of hooks * that can affect the generic code */ @@ -108,6 +120,11 @@ struct platform { */ const struct platform_psi *psi; + /* + * Platform specific PRD handling + */ + const struct platform_prd *prd; + /* OpenCAPI platform-specific I2C information */ const struct platform_ocapi *ocapi; |