ispvar.h (56004) | ispvar.h (57145) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 56004 2000-01-15 01:47:10Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/ispvar.h 57145 2000-02-11 19:25:01Z mjacob $ */ |
2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 357 unchanged lines hidden (view full) --- 367 368/* 369 * ISP Configuration Options 370 */ 371#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */ 372#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */ 373#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */ 374#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */ | 2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 357 unchanged lines hidden (view full) --- 367 368/* 369 * ISP Configuration Options 370 */ 371#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */ 372#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */ 373#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */ 374#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */ |
375#define ISP_CFG_NPORT 0x04 /* try to force N- instead of L-Port */ |
|
375 376#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic) 377#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2]) 378 379/* 380 * Bus (implementation) types 381 */ 382#define ISP_BT_PCI 0 /* PCI Implementations */ --- 8 unchanged lines hidden (view full) --- 391#define ISP_HA_SCSI_1020A 0x3 392#define ISP_HA_SCSI_1040 0x4 393#define ISP_HA_SCSI_1040A 0x5 394#define ISP_HA_SCSI_1040B 0x6 395#define ISP_HA_SCSI_1040C 0x7 396#define ISP_HA_SCSI_1240 0x8 397#define ISP_HA_SCSI_1080 0x9 398#define ISP_HA_SCSI_1280 0xa | 376 377#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic) 378#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2]) 379 380/* 381 * Bus (implementation) types 382 */ 383#define ISP_BT_PCI 0 /* PCI Implementations */ --- 8 unchanged lines hidden (view full) --- 392#define ISP_HA_SCSI_1020A 0x3 393#define ISP_HA_SCSI_1040 0x4 394#define ISP_HA_SCSI_1040A 0x5 395#define ISP_HA_SCSI_1040B 0x6 396#define ISP_HA_SCSI_1040C 0x7 397#define ISP_HA_SCSI_1240 0x8 398#define ISP_HA_SCSI_1080 0x9 399#define ISP_HA_SCSI_1280 0xa |
400#define ISP_HA_SCSI_12160 0xb |
|
399#define ISP_HA_FC 0xf0 400#define ISP_HA_FC_2100 0x10 401#define ISP_HA_FC_2200 0x20 402 403#define IS_SCSI(isp) (isp->isp_type & ISP_HA_SCSI) 404#define IS_1240(isp) (isp->isp_type == ISP_HA_SCSI_1240) 405#define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080) 406#define IS_1280(isp) (isp->isp_type == ISP_HA_SCSI_1280) | 401#define ISP_HA_FC 0xf0 402#define ISP_HA_FC_2100 0x10 403#define ISP_HA_FC_2200 0x20 404 405#define IS_SCSI(isp) (isp->isp_type & ISP_HA_SCSI) 406#define IS_1240(isp) (isp->isp_type == ISP_HA_SCSI_1240) 407#define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080) 408#define IS_1280(isp) (isp->isp_type == ISP_HA_SCSI_1280) |
407#define IS_12X0(isp) \ 408 (isp->isp_type == ISP_HA_SCSI_1240 || isp->isp_type == ISP_HA_SCSI_1280) 409#define IS_DUALBUS(isp) IS_12X0(isp) 410#define IS_ULTRA2(isp) \ 411 (isp->isp_type == ISP_HA_SCSI_1080 || isp->isp_type == ISP_HA_SCSI_1280) | 409#define IS_12160(isp) (isp->isp_type == ISP_HA_SCSI_12160) 410 411#define IS_12X0(isp) (IS_1240(isp) || IS_1280(isp)) 412#define IS_DUALBUS(isp) (IS_12X0(isp) || IS_12160(isp)) 413#define IS_ULTRA2(isp) (IS_1080(isp) || IS_1280(isp) || IS_12160(isp)) 414#define IS_ULTRA3(isp) (IS_12160(isp)) 415 |
412#define IS_FC(isp) (isp->isp_type & ISP_HA_FC) | 416#define IS_FC(isp) (isp->isp_type & ISP_HA_FC) |
417#define IS_2100(isp) (isp->isp_type == ISP_HA_FC_2100) 418#define IS_2200(isp) (isp->isp_type == ISP_HA_FC_2200) |
|
413 | 419 |
420 |
|
414/* 415 * Function Prototypes 416 */ 417 418/* 419 * Reset Hardware. Totally. Assumes that you'll follow this with 420 * a call to isp_init. 421 */ --- 68 unchanged lines hidden --- | 421/* 422 * Function Prototypes 423 */ 424 425/* 426 * Reset Hardware. Totally. Assumes that you'll follow this with 427 * a call to isp_init. 428 */ --- 68 unchanged lines hidden --- |