Vikas Chaudhary | a355943 | 2011-07-25 13:48:51 -0500 | [diff] [blame] | 1 | /* |
| 2 | * QLogic iSCSI HBA Driver |
| 3 | * Copyright (c) 2011 QLogic Corporation |
| 4 | * |
| 5 | * See LICENSE.qla4xxx for copyright and licensing details. |
| 6 | */ |
| 7 | #ifndef __QL4_BSG_H |
| 8 | #define __QL4_BSG_H |
| 9 | |
| 10 | /* BSG Vendor specific commands */ |
| 11 | #define QLISCSI_VND_READ_FLASH 1 |
| 12 | #define QLISCSI_VND_UPDATE_FLASH 2 |
Harish Zunjarrao | 8b0402e | 2011-08-01 03:26:15 -0700 | [diff] [blame] | 13 | #define QLISCSI_VND_GET_ACB_STATE 3 |
Harish Zunjarrao | 7c07d13 | 2011-08-01 03:26:16 -0700 | [diff] [blame] | 14 | #define QLISCSI_VND_READ_NVRAM 4 |
| 15 | #define QLISCSI_VND_UPDATE_NVRAM 5 |
Harish Zunjarrao | 5232f80 | 2011-08-12 02:51:26 -0700 | [diff] [blame] | 16 | #define QLISCSI_VND_RESTORE_DEFAULTS 6 |
Harish Zunjarrao | 6085491 | 2011-08-12 02:51:27 -0700 | [diff] [blame] | 17 | #define QLISCSI_VND_GET_ACB 7 |
Vikas Chaudhary | df86f77 | 2013-11-22 05:28:17 -0500 | [diff] [blame] | 18 | #define QLISCSI_VND_DIAG_TEST 8 |
| 19 | |
| 20 | /* QLISCSI_VND_DIAG_CMD sub code */ |
| 21 | #define QL_DIAG_CMD_TEST_DDR_SIZE 0x2 |
| 22 | #define QL_DIAG_CMD_TEST_DDR_RW 0x3 |
| 23 | #define QL_DIAG_CMD_TEST_ONCHIP_MEM_RW 0x4 |
| 24 | #define QL_DIAG_CMD_TEST_NVRAM 0x5 /* Only ISP4XXX */ |
| 25 | #define QL_DIAG_CMD_TEST_FLASH_ROM 0x6 |
| 26 | #define QL_DIAG_CMD_TEST_INT_LOOPBACK 0x7 |
| 27 | #define QL_DIAG_CMD_TEST_EXT_LOOPBACK 0x8 |
| 28 | #define QL_DIAG_CMD_TEST_DMA_XFER 0x9 /* Only ISP4XXX */ |
| 29 | #define QL_DIAG_CMD_SELF_DDR_RW 0xC |
| 30 | #define QL_DIAG_CMD_SELF_ONCHIP_MEM_RW 0xD |
Vikas Chaudhary | a355943 | 2011-07-25 13:48:51 -0500 | [diff] [blame] | 31 | |
| 32 | #endif |