aboutsummaryrefslogtreecommitdiff
path: root/include/npu2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index 6171cd3..d2a3430 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -118,6 +118,8 @@ struct npu2_dev_nvlink {
const char *slot_label;
};
+#define NPU2_DEV_BROKEN 0x1
+
struct npu2_dev {
enum npu2_dev_type type;
uint32_t link_index;
@@ -126,6 +128,7 @@ struct npu2_dev {
struct dt_node *dt_node;
struct npu2_pcie_bar bars[2];
struct npu2 *npu;
+ long flags;
uint32_t bdfn;
@@ -251,4 +254,6 @@ int64_t npu2_map_lpar(struct phb *phb, uint64_t bdf, uint64_t lparid,
int64_t npu2_set_relaxed_order(struct phb *phb, uint32_t gcid, int pec,
bool enable);
+void npu2_opencapi_set_broken(struct npu2 *npu, int brick);
+
#endif /* __NPU2_H */