forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 890e1df1bec891d9203724541e81f8fbe5183388
kernel/drivers/scsi/qla2xxx/qla_bsg.h
....@@ -1,8 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * QLogic Fibre Channel HBA Driver
34 * Copyright (c) 2003-2014 QLogic Corporation
4
- *
5
- * See LICENSE.qla2xxx for copyright and licensing details.
65 */
76 #ifndef __QLA_BSG_H
87 #define __QLA_BSG_H
....@@ -31,6 +30,7 @@
3130 #define QL_VND_GET_PRIV_STATS 0x18
3231 #define QL_VND_DPORT_DIAGNOSTICS 0x19
3332 #define QL_VND_GET_PRIV_STATS_EX 0x1A
33
+#define QL_VND_SS_GET_FLASH_IMAGE_STATUS 0x1E
3434
3535 /* BSG Vendor specific subcode returns */
3636 #define EXT_STATUS_OK 0
....@@ -279,4 +279,14 @@
279279 #define QLA_DPORT_RESULT 0x0
280280 #define QLA_DPORT_START 0x2
281281
282
+/* active images in flash */
283
+struct qla_active_regions {
284
+ uint8_t global_image;
285
+ uint8_t board_config;
286
+ uint8_t vpd_nvram;
287
+ uint8_t npiv_config_0_1;
288
+ uint8_t npiv_config_2_3;
289
+ uint8_t reserved[32];
290
+} __packed;
291
+
282292 #endif