ispvar.h (45040) | ispvar.h (45282) |
---|---|
1/* $Id: ispvar.h,v 1.11 1999/03/17 05:04:39 mjacob Exp $ */ 2/* release_03_25_99 */ | 1/* $Id: ispvar.h,v 1.12 1999/03/25 22:52:45 mjacob Exp $ */ 2/* release_4_3_99 */ |
3/* 4 * Soft Definitions for for Qlogic ISP SCSI adapters. 5 * 6 *--------------------------------------- 7 * Copyright (c) 1997, 1998 by Matthew Jacob 8 * NASA/Ames Research Center 9 * All rights reserved. 10 *--------------------------------------- --- 243 unchanged lines hidden (view full) --- 254 isp_port : 1, /* for dual ported impls */ 255 isp_used : 1, 256 isp_dblev : 3, 257 isp_gotdparms : 1, 258 isp_dogactive : 1, 259 isp_bustype : 1, /* BUS Implementation */ 260 isp_type : 8; /* HBA Type and Revision */ 261 | 3/* 4 * Soft Definitions for for Qlogic ISP SCSI adapters. 5 * 6 *--------------------------------------- 7 * Copyright (c) 1997, 1998 by Matthew Jacob 8 * NASA/Ames Research Center 9 * All rights reserved. 10 *--------------------------------------- --- 243 unchanged lines hidden (view full) --- 254 isp_port : 1, /* for dual ported impls */ 255 isp_used : 1, 256 isp_dblev : 3, 257 isp_gotdparms : 1, 258 isp_dogactive : 1, 259 isp_bustype : 1, /* BUS Implementation */ 260 isp_type : 8; /* HBA Type and Revision */ 261 |
262 u_int16_t isp_fwrev; /* Running F/W revision */ 263 u_int16_t isp_romfw_rev; /* 'ROM' F/W revision */ | 262 u_int16_t isp_fwrev[3]; /* Running F/W revision */ 263 u_int16_t isp_romfw_rev[3]; /* 'ROM' F/W revision */ |
264 void * isp_param; 265 266 /* 267 * Volatile state 268 */ 269 270 volatile u_int 271 : 19, --- 61 unchanged lines hidden (view full) --- 333#define ISP_RUNSTATE 3 334 335/* 336 * ISP Configuration Options 337 */ 338#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */ 339#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */ 340 | 264 void * isp_param; 265 266 /* 267 * Volatile state 268 */ 269 270 volatile u_int 271 : 19, --- 61 unchanged lines hidden (view full) --- 333#define ISP_RUNSTATE 3 334 335/* 336 * ISP Configuration Options 337 */ 338#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */ 339#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */ 340 |
341#define ISP_FW_REV(maj, min) ((maj) << 10| (min)) | 341#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic) 342#define ISP_FW_REVX(xp) ((xp[0 ]<< 24) | (xp[1] << 16) | xp[2]) |
342 | 343 |
344 |
|
343/* 344 * Bus (implementation) types 345 */ 346#define ISP_BT_PCI 0 /* PCI Implementations */ 347#define ISP_BT_SBUS 1 /* SBus Implementations */ 348 349/* 350 * Chip Types 351 */ 352#define ISP_HA_SCSI 0xf 353#define ISP_HA_SCSI_UNKNOWN 0x1 354#define ISP_HA_SCSI_1020 0x2 355#define ISP_HA_SCSI_1020A 0x3 356#define ISP_HA_SCSI_1040 0x4 357#define ISP_HA_SCSI_1040A 0x5 358#define ISP_HA_SCSI_1040B 0x6 | 345/* 346 * Bus (implementation) types 347 */ 348#define ISP_BT_PCI 0 /* PCI Implementations */ 349#define ISP_BT_SBUS 1 /* SBus Implementations */ 350 351/* 352 * Chip Types 353 */ 354#define ISP_HA_SCSI 0xf 355#define ISP_HA_SCSI_UNKNOWN 0x1 356#define ISP_HA_SCSI_1020 0x2 357#define ISP_HA_SCSI_1020A 0x3 358#define ISP_HA_SCSI_1040 0x4 359#define ISP_HA_SCSI_1040A 0x5 360#define ISP_HA_SCSI_1040B 0x6 |
361#define ISP_HA_SCSI_1040C 0x7 |
|
359#define ISP_HA_SCSI_1080 0xd 360#define ISP_HA_SCSI_12X0 0xe 361#define ISP_HA_FC 0xf0 362#define ISP_HA_FC_2100 0x10 363 364#define IS_SCSI(isp) (isp->isp_type & ISP_HA_SCSI) 365#define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080) 366#define IS_12X0(isp) (isp->isp_type == ISP_HA_SCSI_12X0) --- 113 unchanged lines hidden --- | 362#define ISP_HA_SCSI_1080 0xd 363#define ISP_HA_SCSI_12X0 0xe 364#define ISP_HA_FC 0xf0 365#define ISP_HA_FC_2100 0x10 366 367#define IS_SCSI(isp) (isp->isp_type & ISP_HA_SCSI) 368#define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080) 369#define IS_12X0(isp) (isp->isp_type == ISP_HA_SCSI_12X0) --- 113 unchanged lines hidden --- |