ql4_bsg.h 969 B

123456789101112131415161718192021222324252627282930313233
  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. /* BSG Vendor specific commands */
  10. #define QLISCSI_VND_READ_FLASH 1
  11. #define QLISCSI_VND_UPDATE_FLASH 2
  12. #define QLISCSI_VND_GET_ACB_STATE 3
  13. #define QLISCSI_VND_READ_NVRAM 4
  14. #define QLISCSI_VND_UPDATE_NVRAM 5
  15. #define QLISCSI_VND_RESTORE_DEFAULTS 6
  16. #define QLISCSI_VND_GET_ACB 7
  17. #define QLISCSI_VND_DIAG_TEST 8
  18. /* QLISCSI_VND_DIAG_CMD sub code */
  19. #define QL_DIAG_CMD_TEST_DDR_SIZE 0x2
  20. #define QL_DIAG_CMD_TEST_DDR_RW 0x3
  21. #define QL_DIAG_CMD_TEST_ONCHIP_MEM_RW 0x4
  22. #define QL_DIAG_CMD_TEST_NVRAM 0x5 /* Only ISP4XXX */
  23. #define QL_DIAG_CMD_TEST_FLASH_ROM 0x6
  24. #define QL_DIAG_CMD_TEST_INT_LOOPBACK 0x7
  25. #define QL_DIAG_CMD_TEST_EXT_LOOPBACK 0x8
  26. #define QL_DIAG_CMD_TEST_DMA_XFER 0x9 /* Only ISP4XXX */
  27. #define QL_DIAG_CMD_SELF_DDR_RW 0xC
  28. #define QL_DIAG_CMD_SELF_ONCHIP_MEM_RW 0xD
  29. #endif