diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_nx.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nx.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.h b/drivers/scsi/qla2xxx/qla_nx.h index 4ac50e274661..393319861bd6 100644 --- a/drivers/scsi/qla2xxx/qla_nx.h +++ b/drivers/scsi/qla2xxx/qla_nx.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #define CRB_RCVPEG_STATE QLA82XX_REG(0x13c) | 26 | #define CRB_RCVPEG_STATE QLA82XX_REG(0x13c) |
27 | #define BOOT_LOADER_DIMM_STATUS QLA82XX_REG(0x54) | 27 | #define BOOT_LOADER_DIMM_STATUS QLA82XX_REG(0x54) |
28 | #define CRB_DMA_SHIFT QLA82XX_REG(0xcc) | 28 | #define CRB_DMA_SHIFT QLA82XX_REG(0xcc) |
29 | #define CRB_TEMP_STATE QLA82XX_REG(0x1b4) | ||
29 | #define QLA82XX_DMA_SHIFT_VALUE 0x55555555 | 30 | #define QLA82XX_DMA_SHIFT_VALUE 0x55555555 |
30 | 31 | ||
31 | #define QLA82XX_HW_H0_CH_HUB_ADR 0x05 | 32 | #define QLA82XX_HW_H0_CH_HUB_ADR 0x05 |
@@ -1178,4 +1179,16 @@ static const int MD_MIU_TEST_AGT_RDDATA[] = { 0x410000A8, 0x410000AC, | |||
1178 | #define CRB_NIU_XG_PAUSE_CTL_P0 0x1 | 1179 | #define CRB_NIU_XG_PAUSE_CTL_P0 0x1 |
1179 | #define CRB_NIU_XG_PAUSE_CTL_P1 0x8 | 1180 | #define CRB_NIU_XG_PAUSE_CTL_P1 0x8 |
1180 | 1181 | ||
1182 | #define qla82xx_get_temp_val(x) ((x) >> 16) | ||
1183 | #define qla82xx_get_temp_state(x) ((x) & 0xffff) | ||
1184 | #define qla82xx_encode_temp(val, state) (((val) << 16) | (state)) | ||
1185 | |||
1186 | /* | ||
1187 | * Temperature control. | ||
1188 | */ | ||
1189 | enum { | ||
1190 | QLA82XX_TEMP_NORMAL = 0x1, /* Normal operating range */ | ||
1191 | QLA82XX_TEMP_WARN, /* Sound alert, temperature getting high */ | ||
1192 | QLA82XX_TEMP_PANIC /* Fatal error, hardware has shut down. */ | ||
1193 | }; | ||
1181 | #endif | 1194 | #endif |