root/drivers/net/ethernet/qlogic/qed/qed_debug.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-only */
   2 /* QLogic qed NIC Driver
   3  * Copyright (c) 2015 QLogic Corporation
   4  */
   5 
   6 #ifndef _QED_DEBUGFS_H
   7 #define _QED_DEBUGFS_H
   8 
   9 enum qed_dbg_features {
  10         DBG_FEATURE_GRC,
  11         DBG_FEATURE_IDLE_CHK,
  12         DBG_FEATURE_MCP_TRACE,
  13         DBG_FEATURE_REG_FIFO,
  14         DBG_FEATURE_IGU_FIFO,
  15         DBG_FEATURE_PROTECTION_OVERRIDE,
  16         DBG_FEATURE_FW_ASSERTS,
  17         DBG_FEATURE_NUM
  18 };
  19 
  20 /* Forward Declaration */
  21 struct qed_dev;
  22 
  23 int qed_dbg_grc(struct qed_dev *cdev, void *buffer, u32 *num_dumped_bytes);
  24 int qed_dbg_grc_size(struct qed_dev *cdev);
  25 int qed_dbg_idle_chk(struct qed_dev *cdev, void *buffer,
  26                      u32 *num_dumped_bytes);
  27 int qed_dbg_idle_chk_size(struct qed_dev *cdev);
  28 int qed_dbg_reg_fifo(struct qed_dev *cdev, void *buffer,
  29                      u32 *num_dumped_bytes);
  30 int qed_dbg_reg_fifo_size(struct qed_dev *cdev);
  31 int qed_dbg_igu_fifo(struct qed_dev *cdev, void *buffer,
  32                      u32 *num_dumped_bytes);
  33 int qed_dbg_igu_fifo_size(struct qed_dev *cdev);
  34 int qed_dbg_protection_override(struct qed_dev *cdev, void *buffer,
  35                                 u32 *num_dumped_bytes);
  36 int qed_dbg_protection_override_size(struct qed_dev *cdev);
  37 int qed_dbg_fw_asserts(struct qed_dev *cdev, void *buffer,
  38                        u32 *num_dumped_bytes);
  39 int qed_dbg_fw_asserts_size(struct qed_dev *cdev);
  40 int qed_dbg_mcp_trace(struct qed_dev *cdev, void *buffer,
  41                       u32 *num_dumped_bytes);
  42 int qed_dbg_mcp_trace_size(struct qed_dev *cdev);
  43 int qed_dbg_all_data(struct qed_dev *cdev, void *buffer);
  44 int qed_dbg_all_data_size(struct qed_dev *cdev);
  45 u8 qed_get_debug_engine(struct qed_dev *cdev);
  46 void qed_set_debug_engine(struct qed_dev *cdev, int engine_number);
  47 int qed_dbg_feature(struct qed_dev *cdev, void *buffer,
  48                     enum qed_dbg_features feature, u32 *num_dumped_bytes);
  49 int qed_dbg_feature_size(struct qed_dev *cdev, enum qed_dbg_features feature);
  50 
  51 void qed_dbg_pf_init(struct qed_dev *cdev);
  52 void qed_dbg_pf_exit(struct qed_dev *cdev);
  53 
  54 #endif

/* [<][>][^][v][top][bottom][index][help] */