From d9ecf61c330f5b8d0e2ff66af4e29a999dfd111b Mon Sep 17 00:00:00 2001 From: Reza Arbab Date: Wed, 17 Jul 2019 15:44:23 -0500 Subject: npu2: Refactor NPU OPAL calls Abstract the OPAL entry points for npu2, moving them to a new file. This prepares us to add parallel npu3 versions of the same APIs. No functional change. Signed-off-by: Reza Arbab Reviewed-by: Andrew Donnellan Signed-off-by: Oliver O'Halloran --- include/npu2.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/npu2.h b/include/npu2.h index b63eba8..92b5898 100644 --- a/include/npu2.h +++ b/include/npu2.h @@ -243,4 +243,12 @@ int64_t npu2_freeze_status(struct phb *phb __unused, uint16_t *pci_error_type __unused, uint16_t *severity __unused); void npu2_dump_scoms(int chip_id); + +int64_t npu2_init_context(struct phb *phb, uint64_t msr, uint64_t bdf); +int64_t npu2_destroy_context(struct phb *phb, uint64_t bdf); +int64_t npu2_map_lpar(struct phb *phb, uint64_t bdf, uint64_t lparid, + uint64_t lpcr); +int64_t npu2_set_relaxed_order(struct phb *phb, uint32_t gcid, int pec, + bool enable); + #endif /* __NPU2_H */ -- cgit v1.1