aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/advansys.c40
1 files changed, 16 insertions, 24 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index e2bd4c9e7c22..0f309e80aaad 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -459,14 +459,22 @@ typedef struct asc_risc_sg_list_q {
459#define ASC_WARN_CFG_MSW_RECOVER 0x0040 459#define ASC_WARN_CFG_MSW_RECOVER 0x0040
460 460
461/* 461/*
462 * Error code values are set in ASC_DVC_VAR 'err_code'. 462 * Error code values are set in {ASC/ADV}_DVC_VAR 'err_code'.
463 */ 463 */
464#define ASC_IERR_MCODE_CHKSUM 0x0002 464#define ASC_IERR_NO_CARRIER 0x0001 /* No more carrier memory */
465#define ASC_IERR_SET_PC_ADDR 0x0004 465#define ASC_IERR_MCODE_CHKSUM 0x0002 /* micro code check sum error */
466#define ASC_IERR_START_STOP_CHIP 0x0008 466#define ASC_IERR_SET_PC_ADDR 0x0004
467#define ASC_IERR_SET_SCSI_ID 0x0080 467#define ASC_IERR_START_STOP_CHIP 0x0008 /* start/stop chip failed */
468#define ASC_IERR_BAD_SIGNATURE 0x0200 468#define ASC_IERR_ILLEGAL_CONNECTION 0x0010 /* Illegal cable connection */
469#define ASC_IERR_NO_BUS_TYPE 0x0400 469#define ASC_IERR_SINGLE_END_DEVICE 0x0020 /* SE device on DIFF bus */
470#define ASC_IERR_REVERSED_CABLE 0x0040 /* Narrow flat cable reversed */
471#define ASC_IERR_SET_SCSI_ID 0x0080 /* set SCSI ID failed */
472#define ASC_IERR_HVD_DEVICE 0x0100 /* HVD device on LVD port */
473#define ASC_IERR_BAD_SIGNATURE 0x0200 /* signature not found */
474#define ASC_IERR_NO_BUS_TYPE 0x0400
475#define ASC_IERR_BIST_PRE_TEST 0x0800 /* BIST pre-test error */
476#define ASC_IERR_BIST_RAM_TEST 0x1000 /* BIST RAM test error */
477#define ASC_IERR_BAD_CHIPTYPE 0x2000 /* Invalid chip_type setting */
470 478
471#define ASC_DEF_MAX_TOTAL_QNG (0xF0) 479#define ASC_DEF_MAX_TOTAL_QNG (0xF0)
472#define ASC_MIN_TAG_Q_PER_DVC (0x04) 480#define ASC_MIN_TAG_Q_PER_DVC (0x04)
@@ -1698,22 +1706,6 @@ typedef struct adveep_38C1600_config {
1698#define ADV_MAX_LUN 7 /* max. logical unit number */ 1706#define ADV_MAX_LUN 7 /* max. logical unit number */
1699 1707
1700/* 1708/*
1701 * Error code values are set in ADV_DVC_VAR 'err_code'.
1702 */
1703#define ASC_IERR_MCODE_CHKSUM 0x0002 /* micro code check sum error */
1704#define ASC_IERR_NO_CARRIER 0x0004 /* No more carrier memory. */
1705#define ASC_IERR_START_STOP_CHIP 0x0008 /* start/stop chip failed */
1706#define ASC_IERR_SET_SCSI_ID 0x0080 /* set SCSI ID failed */
1707#define ASC_IERR_HVD_DEVICE 0x0100 /* HVD attached to LVD connector. */
1708#define ASC_IERR_BAD_SIGNATURE 0x0200 /* signature not found */
1709#define ASC_IERR_ILLEGAL_CONNECTION 0x0400 /* Illegal cable connection */
1710#define ASC_IERR_SINGLE_END_DEVICE 0x0800 /* Single-end used w/differential */
1711#define ASC_IERR_REVERSED_CABLE 0x1000 /* Narrow flat cable reversed */
1712#define ASC_IERR_BIST_PRE_TEST 0x2000 /* BIST pre-test error */
1713#define ASC_IERR_BIST_RAM_TEST 0x4000 /* BIST RAM test error */
1714#define ASC_IERR_BAD_CHIPTYPE 0x8000 /* Invalid 'chip_type' setting. */
1715
1716/*
1717 * Fixed locations of microcode operating variables. 1709 * Fixed locations of microcode operating variables.
1718 */ 1710 */
1719#define ASC_MC_CODE_BEGIN_ADDR 0x0028 /* microcode start address */ 1711#define ASC_MC_CODE_BEGIN_ADDR 0x0028 /* microcode start address */