Deleted Added
full compact
ispvar.h (43420) ispvar.h (43793)
1/* $Id: ispvar.h,v 1.8 1999/01/10 02:51:48 mjacob Exp $ */
2/* release_01_29_99 */
1/* $Id: ispvar.h,v 1.9 1999/01/30 07:29:00 mjacob Exp $ */
2/* release_02_05_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 *---------------------------------------

--- 32 unchanged lines hidden (view full) ---

43#ifdef __FreeBSD__
44#include <dev/isp/ispmbox.h>
45#endif
46#ifdef __linux__
47#include "ispmbox.h"
48#endif
49
50#define ISP_CORE_VERSION_MAJOR 1
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 *---------------------------------------

--- 32 unchanged lines hidden (view full) ---

43#ifdef __FreeBSD__
44#include <dev/isp/ispmbox.h>
45#endif
46#ifdef __linux__
47#include "ispmbox.h"
48#endif
49
50#define ISP_CORE_VERSION_MAJOR 1
51#define ISP_CORE_VERSION_MINOR 5
51#define ISP_CORE_VERSION_MINOR 6
52
53/*
54 * Vector for bus specific code to provide specific services.
55 */
56struct ispsoftc;
57struct ispmdvec {
58 u_int16_t (*dv_rd_reg) __P((struct ispsoftc *, int));
59 void (*dv_wr_reg) __P((struct ispsoftc *, int, u_int16_t));

--- 74 unchanged lines hidden (view full) ---

134#define DPARM_WIDE 0x2000
135#define DPARM_SYNC 0x1000
136#define DPARM_TQING 0x0800
137#define DPARM_ARQ 0x0400
138#define DPARM_QFRZ 0x0200
139#define DPARM_RENEG 0x0100
140#define DPARM_NARROW 0x0080 /* Possibly only available with >= 7.55 fw */
141#define DPARM_ASYNC 0x0040 /* Possibly only available with >= 7.55 fw */
52
53/*
54 * Vector for bus specific code to provide specific services.
55 */
56struct ispsoftc;
57struct ispmdvec {
58 u_int16_t (*dv_rd_reg) __P((struct ispsoftc *, int));
59 void (*dv_wr_reg) __P((struct ispsoftc *, int, u_int16_t));

--- 74 unchanged lines hidden (view full) ---

134#define DPARM_WIDE 0x2000
135#define DPARM_SYNC 0x1000
136#define DPARM_TQING 0x0800
137#define DPARM_ARQ 0x0400
138#define DPARM_QFRZ 0x0200
139#define DPARM_RENEG 0x0100
140#define DPARM_NARROW 0x0080 /* Possibly only available with >= 7.55 fw */
141#define DPARM_ASYNC 0x0040 /* Possibly only available with >= 7.55 fw */
142#define DPARM_DEFAULT (0xFFFF & ~DPARM_QFRZ)
142#define DPARM_DEFAULT (0xFF00 & ~DPARM_QFRZ)
143#define DPARM_SAFE_DFLT (DPARM_DEFAULT & ~(DPARM_WIDE|DPARM_SYNC|DPARM_TQING))
144
145
146#define ISP_20M_SYNCPARMS 0x080c
147#define ISP_10M_SYNCPARMS 0x0c19
148#define ISP_08M_SYNCPARMS 0x0c25
149#define ISP_05M_SYNCPARMS 0x0c32
150#define ISP_04M_SYNCPARMS 0x0c41

--- 165 unchanged lines hidden (view full) ---

316#define ISP_RESETSTATE 1
317#define ISP_INITSTATE 2
318#define ISP_RUNSTATE 3
319
320/*
321 * ISP Configuration Options
322 */
323#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
143#define DPARM_SAFE_DFLT (DPARM_DEFAULT & ~(DPARM_WIDE|DPARM_SYNC|DPARM_TQING))
144
145
146#define ISP_20M_SYNCPARMS 0x080c
147#define ISP_10M_SYNCPARMS 0x0c19
148#define ISP_08M_SYNCPARMS 0x0c25
149#define ISP_05M_SYNCPARMS 0x0c32
150#define ISP_04M_SYNCPARMS 0x0c41

--- 165 unchanged lines hidden (view full) ---

316#define ISP_RESETSTATE 1
317#define ISP_INITSTATE 2
318#define ISP_RUNSTATE 3
319
320/*
321 * ISP Configuration Options
322 */
323#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
324#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
324
325#define ISP_FW_REV(maj, min) ((maj) << 10| (min))
326
327/*
328 * Bus (implementation) types
329 */
330#define ISP_BT_PCI 0 /* PCI Implementations */
331#define ISP_BT_SBUS 1 /* SBus Implementations */

--- 100 unchanged lines hidden (view full) ---

432 * (each platform must provide such a function)
433 *
434 * For: Announcing Target Paramter Changes (arg is target)
435 *
436 * Assumes all locks are held.
437 */
438
439typedef enum {
325
326#define ISP_FW_REV(maj, min) ((maj) << 10| (min))
327
328/*
329 * Bus (implementation) types
330 */
331#define ISP_BT_PCI 0 /* PCI Implementations */
332#define ISP_BT_SBUS 1 /* SBus Implementations */

--- 100 unchanged lines hidden (view full) ---

433 * (each platform must provide such a function)
434 *
435 * For: Announcing Target Paramter Changes (arg is target)
436 *
437 * Assumes all locks are held.
438 */
439
440typedef enum {
440 ISPASYNC_NEW_TGT_PARAMS
441 ISPASYNC_NEW_TGT_PARAMS,
442 ISPASYNC_LOOP_DOWN, /* Obvious FC only */
443 ISPASYNC_LOOP_UP /* Obvious FC only */
441} ispasync_t;
442int isp_async __P((struct ispsoftc *, ispasync_t, void *));
443
444/*
445 * lost command routine (XXXX IN TRANSITION XXXX)
446 */
447void isp_lostcmd __P((struct ispsoftc *, ISP_SCSI_XFER_T *));
448
449
450#endif /* _ISPVAR_H */
444} ispasync_t;
445int isp_async __P((struct ispsoftc *, ispasync_t, void *));
446
447/*
448 * lost command routine (XXXX IN TRANSITION XXXX)
449 */
450void isp_lostcmd __P((struct ispsoftc *, ISP_SCSI_XFER_T *));
451
452
453#endif /* _ISPVAR_H */