18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * QLogic iSCSI HBA Driver
48c2ecf20Sopenharmony_ci * Copyright (c) 2011 QLogic Corporation
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#ifndef __QL4_BSG_H
78c2ecf20Sopenharmony_ci#define __QL4_BSG_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* BSG Vendor specific commands */
108c2ecf20Sopenharmony_ci#define QLISCSI_VND_READ_FLASH		1
118c2ecf20Sopenharmony_ci#define QLISCSI_VND_UPDATE_FLASH	2
128c2ecf20Sopenharmony_ci#define QLISCSI_VND_GET_ACB_STATE	3
138c2ecf20Sopenharmony_ci#define QLISCSI_VND_READ_NVRAM		4
148c2ecf20Sopenharmony_ci#define QLISCSI_VND_UPDATE_NVRAM	5
158c2ecf20Sopenharmony_ci#define QLISCSI_VND_RESTORE_DEFAULTS	6
168c2ecf20Sopenharmony_ci#define QLISCSI_VND_GET_ACB		7
178c2ecf20Sopenharmony_ci#define QLISCSI_VND_DIAG_TEST		8
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/* QLISCSI_VND_DIAG_CMD sub code */
208c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_DDR_SIZE	0x2
218c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_DDR_RW		0x3
228c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_ONCHIP_MEM_RW	0x4
238c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_NVRAM		0x5	/* Only ISP4XXX */
248c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_FLASH_ROM	0x6
258c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_INT_LOOPBACK	0x7
268c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_EXT_LOOPBACK	0x8
278c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_TEST_DMA_XFER	0x9	/* Only ISP4XXX */
288c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_SELF_DDR_RW		0xC
298c2ecf20Sopenharmony_ci#define QL_DIAG_CMD_SELF_ONCHIP_MEM_RW	0xD
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif
32