forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/scsi/qedf/qedf_dbg.h
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * QLogic FCoE Offload Driver
34 * Copyright (c) 2016-2018 Cavium Inc.
4
- *
5
- * This software is available under the terms of the GNU General Public License
6
- * (GPL) Version 2, available from the file COPYING in the main directory of
7
- * this source tree.
85 */
96 #ifndef _QEDF_DBG_H_
107 #define _QEDF_DBG_H_
....@@ -45,7 +42,7 @@
4542 #define QEDF_LOG_LPORT 0x4000 /* lport logs */
4643 #define QEDF_LOG_ELS 0x8000 /* ELS logs */
4744 #define QEDF_LOG_NPIV 0x10000 /* NPIV logs */
48
-#define QEDF_LOG_SESS 0x20000 /* Conection setup, cleanup */
45
+#define QEDF_LOG_SESS 0x20000 /* Connection setup, cleanup */
4946 #define QEDF_LOG_TID 0x80000 /*
5047 * FW TID context acquire
5148 * free
....@@ -63,6 +60,8 @@
6360 #define QEDF_LOG_NOTICE 0x40000000 /* Notice logs */
6461 #define QEDF_LOG_WARN 0x80000000 /* Warning logs */
6562
63
+#define QEDF_DEBUGFS_LOG_LEN (2 * PAGE_SIZE)
64
+
6665 /* Debug context structure */
6766 struct qedf_dbg_ctx {
6867 unsigned int host_no;