octeontx2-af: Dump current resource provisioning status
[linux-2.6-microblaze.git] / drivers / net / ethernet / marvell / octeontx2 / af / rvu.h
index c9d60b0..9e8ef1f 100644 (file)
 #define RVU_PFVF_FUNC_SHIFT    0
 #define RVU_PFVF_FUNC_MASK     0x3FF
 
+#ifdef CONFIG_DEBUG_FS
+struct rvu_debugfs {
+       struct dentry *root;
+};
+#endif
+
 struct rvu_work {
        struct  work_struct work;
        struct  rvu *rvu;
@@ -263,6 +269,10 @@ struct rvu {
        struct list_head        cgx_evq_head; /* cgx event queue head */
 
        char mkex_pfl_name[MKEX_NAME_LEN]; /* Configured MKEX profile name */
+
+#ifdef CONFIG_DEBUG_FS
+       struct rvu_debugfs      rvu_dbg;
+#endif
 };
 
 static inline void rvu_write64(struct rvu *rvu, u64 block, u64 offset, u64 val)
@@ -501,4 +511,12 @@ int rvu_mbox_handler_npc_mcam_alloc_and_write_entry(struct rvu *rvu,
                          struct npc_mcam_alloc_and_write_entry_rsp *rsp);
 int rvu_mbox_handler_npc_get_kex_cfg(struct rvu *rvu, struct msg_req *req,
                                     struct npc_get_kex_cfg_rsp *rsp);
+
+#ifdef CONFIG_DEBUG_FS
+void rvu_dbg_init(struct rvu *rvu);
+void rvu_dbg_exit(struct rvu *rvu);
+#else
+static inline void rvu_dbg_init(struct rvu *rvu) {}
+static inline void rvu_dbg_exit(struct rvu *rvu) {}
+#endif
 #endif /* RVU_H */