isp_freebsd.h (60222) | isp_freebsd.h (61773) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.h 60222 2000-05-09 01:09:46Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.h 61773 2000-06-18 04:47:12Z mjacob $ */ |
2/* 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions (CAM version) 4 *--------------------------------------- 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 *--------------------------------------- 9 * --- 20 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34#ifndef _ISP_FREEBSD_H 35#define _ISP_FREEBSD_H 36 37#define ISP_PLATFORM_VERSION_MAJOR 5 | 2/* 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions (CAM version) 4 *--------------------------------------- 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 *--------------------------------------- 9 * --- 20 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34#ifndef _ISP_FREEBSD_H 35#define _ISP_FREEBSD_H 36 37#define ISP_PLATFORM_VERSION_MAJOR 5 |
38#define ISP_PLATFORM_VERSION_MINOR 1 | 38#define ISP_PLATFORM_VERSION_MINOR 2 |
39 40 41#include <sys/param.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/queue.h> 46#include <sys/malloc.h> --- 10 unchanged lines hidden (view full) --- 57#include <cam/cam_xpt.h> 58#include <cam/cam_xpt_sim.h> 59#include <cam/cam_debug.h> 60#include <cam/scsi/scsi_all.h> 61#include <cam/scsi/scsi_message.h> 62 63#include "opt_ddb.h" 64#include "opt_isp.h" | 39 40 41#include <sys/param.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/queue.h> 46#include <sys/malloc.h> --- 10 unchanged lines hidden (view full) --- 57#include <cam/cam_xpt.h> 58#include <cam/cam_xpt_sim.h> 59#include <cam/cam_debug.h> 60#include <cam/scsi/scsi_all.h> 61#include <cam/scsi/scsi_message.h> 62 63#include "opt_ddb.h" 64#include "opt_isp.h" |
65#ifdef SCSI_ISP_FABRIC | 65/* 66 * We are now always supporting fabric mode. 67 */ |
66#define ISP2100_FABRIC 1 67#define ISP2100_SCRLEN 0x400 | 68#define ISP2100_FABRIC 1 69#define ISP2100_SCRLEN 0x400 |
68#else 69#define ISP2100_SCRLEN 0x100 70#endif 71#ifdef SCSI_ISP_SCCLUN 72#define ISP2100_SCCLUN 1 73#endif | |
74 75#ifndef SCSI_CHECK 76#define SCSI_CHECK SCSI_STATUS_CHECK_COND 77#endif 78#ifndef SCSI_BUSY 79#define SCSI_BUSY SCSI_STATUS_BUSY 80#endif 81#ifndef SCSI_QFULL 82#define SCSI_QFULL SCSI_STATUS_QUEUE_FULL 83#endif 84 85#define ISP_SCSI_XFER_T struct ccb_scsiio | 70 71#ifndef SCSI_CHECK 72#define SCSI_CHECK SCSI_STATUS_CHECK_COND 73#endif 74#ifndef SCSI_BUSY 75#define SCSI_BUSY SCSI_STATUS_BUSY 76#endif 77#ifndef SCSI_QFULL 78#define SCSI_QFULL SCSI_STATUS_QUEUE_FULL 79#endif 80 81#define ISP_SCSI_XFER_T struct ccb_scsiio |
82typedef void ispfwfunc __P((int, int, int, const u_int16_t **)); |
|
86 87#ifdef ISP_TARGET_MODE 88typedef struct tstate { 89 struct tstate *next; 90 struct cam_path *owner; 91 struct ccb_hdr_slist atios; 92 struct ccb_hdr_slist inots; 93 lun_id_t lun; --- 159 unchanged lines hidden (view full) --- 253 254#define FC_FW_READY_DELAY (5 * 1000000) 255#define DEFAULT_LOOPID(x) 109 256#define DEFAULT_WWN(x) (x)->isp_osinfo.default_wwn 257 258#define INLINE __inline 259#include <dev/isp/isp_inline.h> 260#endif /* _ISP_FREEBSD_H */ | 83 84#ifdef ISP_TARGET_MODE 85typedef struct tstate { 86 struct tstate *next; 87 struct cam_path *owner; 88 struct ccb_hdr_slist atios; 89 struct ccb_hdr_slist inots; 90 lun_id_t lun; --- 159 unchanged lines hidden (view full) --- 250 251#define FC_FW_READY_DELAY (5 * 1000000) 252#define DEFAULT_LOOPID(x) 109 253#define DEFAULT_WWN(x) (x)->isp_osinfo.default_wwn 254 255#define INLINE __inline 256#include <dev/isp/isp_inline.h> 257#endif /* _ISP_FREEBSD_H */ |
258 |
|