FILE
debugfs.h
File preview with syntax highlighting.
linux-6.19.14/drivers/infiniband/hw/bnxt_re/debugfs.h
1// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2/* 3 * Copyright (c) 2024, Broadcom. All rights reserved. The term 4 * Broadcom refers to Broadcom Limited and/or its subsidiaries. 5 * 6 * Description: Debugfs header 7 */ 8 9#ifndef __BNXT_RE_DEBUGFS__ 10#define __BNXT_RE_DEBUGFS__ 11 12void bnxt_re_debug_add_qpinfo(struct bnxt_re_dev *rdev, struct bnxt_re_qp *qp); 13void bnxt_re_debug_rem_qpinfo(struct bnxt_re_dev *rdev, struct bnxt_re_qp *qp); 14 15void bnxt_re_debugfs_add_pdev(struct bnxt_re_dev *rdev); 16void bnxt_re_debugfs_rem_pdev(struct bnxt_re_dev *rdev); 17 18void bnxt_re_register_debugfs(void); 19void bnxt_re_unregister_debugfs(void); 20 21#define CC_CONFIG_GEN_EXT(x, y) (((x) << 16) | (y)) 22#define CC_CONFIG_GEN0_EXT0 CC_CONFIG_GEN_EXT(0, 0) 23 24#define BNXT_RE_CC_PARAM_GEN0 14 25 26struct bnxt_re_cc_param { 27 struct bnxt_re_dev *rdev; 28 struct dentry *dentry; 29 u32 offset; 30 u8 cc_gen; 31}; 32 33struct bnxt_re_dbg_cc_config_params { 34 struct bnxt_re_cc_param gen0_parms[BNXT_RE_CC_PARAM_GEN0]; 35}; 36 37struct bnxt_re_cq_coal_param { 38 struct bnxt_re_dev *rdev; 39 u32 offset; 40}; 41 42enum bnxt_re_cq_coal_types { 43 BNXT_RE_COAL_CQ_BUF_MAXTIME, 44 BNXT_RE_COAL_CQ_NORMAL_MAXBUF, 45 BNXT_RE_COAL_CQ_DURING_MAXBUF, 46 BNXT_RE_COAL_CQ_EN_RING_IDLE_MODE, 47 BNXT_RE_COAL_CQ_ENABLE, 48 BNXT_RE_COAL_CQ_MAX 49 50}; 51 52struct bnxt_re_dbg_cq_coal_params { 53 struct bnxt_re_cq_coal_param params[BNXT_RE_COAL_CQ_MAX]; 54}; 55#endif
~/
Read-only file preview.