aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2019-07-17 15:44:23 -0500
committerOliver O'Halloran <oohall@gmail.com>2019-07-26 15:30:21 +1000
commitd9ecf61c330f5b8d0e2ff66af4e29a999dfd111b (patch)
treeae342f588561bad4b7eb7372efe2ad9bd4ae9209 /include
parent8279e529d524bce56fca20f6ece0e6f92b0f7aba (diff)
downloadskiboot-d9ecf61c330f5b8d0e2ff66af4e29a999dfd111b.zip
skiboot-d9ecf61c330f5b8d0e2ff66af4e29a999dfd111b.tar.gz
skiboot-d9ecf61c330f5b8d0e2ff66af4e29a999dfd111b.tar.bz2
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 <arbab@linux.ibm.com> Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/npu2.h8
1 files changed, 8 insertions, 0 deletions
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 */