#ifndef _QEDF_DBG_H_
#define _QEDF_DBG_H_
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <linux/string.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <scsi/scsi_transport.h>
#include <linux/fs.h>
#include <linux/qed/common_hsi.h>
#include <linux/qed/qed_if.h>
extern uint qedf_debug;
#define QEDF_LOG_DEFAULT …
#define QEDF_LOG_INFO …
#define QEDF_LOG_DISC …
#define QEDF_LOG_LL2 …
#define QEDF_LOG_CONN …
#define QEDF_LOG_EVT …
#define QEDF_LOG_TIMER …
#define QEDF_LOG_MP_REQ …
#define QEDF_LOG_SCSI_TM …
#define QEDF_LOG_UNSOL …
#define QEDF_LOG_IO …
#define QEDF_LOG_MQ …
#define QEDF_LOG_BSG …
#define QEDF_LOG_DEBUGFS …
#define QEDF_LOG_LPORT …
#define QEDF_LOG_ELS …
#define QEDF_LOG_NPIV …
#define QEDF_LOG_SESS …
#define QEDF_LOG_TID …
#define QEDF_TRACK_TID …
#define QEDF_TRACK_CMD_LIST …
#define QEDF_LOG_NOTICE …
#define QEDF_LOG_WARN …
#define QEDF_DEBUGFS_LOG_LEN …
struct qedf_dbg_ctx { … };
#define QEDF_ERR(pdev, fmt, ...) …
#define QEDF_WARN(pdev, fmt, ...) …
#define QEDF_NOTICE(pdev, fmt, ...) …
#define QEDF_INFO(pdev, level, fmt, ...) …
__printf(4, 5)
void qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
const char *fmt, ...);
__printf(4, 5)
void qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
const char *, ...);
__printf(4, 5)
void qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func,
u32 line, const char *, ...);
__printf(5, 6)
void qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
u32 info, const char *fmt, ...);
struct Scsi_Host;
#define QEDF_UEVENT_CODE_GRCDUMP …
struct sysfs_bin_attrs { … };
extern int qedf_alloc_grc_dump_buf(uint8_t **buf, uint32_t len);
extern void qedf_free_grc_dump_buf(uint8_t **buf);
extern int qedf_get_grc_dump(struct qed_dev *cdev,
const struct qed_common_ops *common, uint8_t **buf,
uint32_t *grcsize);
extern void qedf_uevent_emit(struct Scsi_Host *shost, u32 code, char *msg);
extern int qedf_create_sysfs_attr(struct Scsi_Host *shost,
struct sysfs_bin_attrs *iter);
extern void qedf_remove_sysfs_attr(struct Scsi_Host *shost,
struct sysfs_bin_attrs *iter);
struct qedf_debugfs_ops { … };
extern const struct qedf_debugfs_ops qedf_debugfs_ops[];
extern const struct file_operations qedf_dbg_fops[];
#ifdef CONFIG_DEBUG_FS
struct qedf_list_of_funcs { … };
#define qedf_dbg_fileops(drv, ops) …
#define qedf_dbg_fileops_seq(drv, ops) …
extern void qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
const struct qedf_debugfs_ops *dops,
const struct file_operations *fops);
extern void qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf);
extern void qedf_dbg_init(char *drv_name);
extern void qedf_dbg_exit(void);
#endif
#endif