Deleted Added
full compact
ispvar.h (158813) ispvar.h (160080)
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 158813 2006-05-22 06:47:20Z mjacob $ */
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 160080 2006-07-03 08:24:09Z mjacob $ */
2/*-
3 * Soft Definitions for for Qlogic ISP SCSI adapters.
4 *
5 * Copyright (c) 1997-2006 by Matthew Jacob
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

229/* #define ISP_USE_GA_NXT 1 */ /* Use GA_NXT with switches */
230#ifndef GA_NXT_MAX
231#define GA_NXT_MAX 256
232#endif
233
234typedef struct {
235 uint32_t : 13,
236 isp_gbspeed : 3,
2/*-
3 * Soft Definitions for for Qlogic ISP SCSI adapters.
4 *
5 * Copyright (c) 1997-2006 by Matthew Jacob
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

229/* #define ISP_USE_GA_NXT 1 */ /* Use GA_NXT with switches */
230#ifndef GA_NXT_MAX
231#define GA_NXT_MAX 256
232#endif
233
234typedef struct {
235 uint32_t : 13,
236 isp_gbspeed : 3,
237 : 2,
237 : 1,
238 isp_iid_set : 1,
239 loop_seen_once : 1,
240 isp_loopstate : 4, /* Current Loop State */
238 isp_iid_set : 1,
239 loop_seen_once : 1,
240 isp_loopstate : 4, /* Current Loop State */
241 isp_fwstate : 3, /* ISP F/W state */
241 isp_fwstate : 4, /* ISP F/W state */
242 isp_gotdparms : 1,
243 isp_topo : 3,
244 isp_onfabric : 1;
245 uint32_t : 8,
246 isp_portid : 24; /* S_ID */
247 uint16_t isp_fwoptions;
242 isp_gotdparms : 1,
243 isp_topo : 3,
244 isp_onfabric : 1;
245 uint32_t : 8,
246 isp_portid : 24; /* S_ID */
247 uint16_t isp_fwoptions;
248 uint16_t isp_xfwoptions;
249 uint16_t isp_zfwoptions;
248 uint16_t isp_iid; /* 'initiator' id */
249 uint16_t isp_loopid; /* hard loop id */
250 uint16_t isp_fwattr; /* firmware attributes */
251 uint16_t isp_execthrottle;
252 uint8_t isp_retry_delay;
253 uint8_t isp_retry_count;
254 uint8_t isp_reserved;
255 uint16_t isp_maxalloc;

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

375 uint64_t isp_fphccmplt; /* CMDs via fastpost */
376 uint16_t isp_rscchiwater;
377 uint16_t isp_fpcchiwater;
378
379 /*
380 * Volatile state
381 */
382
250 uint16_t isp_iid; /* 'initiator' id */
251 uint16_t isp_loopid; /* hard loop id */
252 uint16_t isp_fwattr; /* firmware attributes */
253 uint16_t isp_execthrottle;
254 uint8_t isp_retry_delay;
255 uint8_t isp_retry_count;
256 uint8_t isp_reserved;
257 uint16_t isp_maxalloc;

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

377 uint64_t isp_fphccmplt; /* CMDs via fastpost */
378 uint16_t isp_rscchiwater;
379 uint16_t isp_fpcchiwater;
380
381 /*
382 * Volatile state
383 */
384
383 volatile uint32_t
384 isp_obits : 8, /* mailbox command output */
385 volatile uint32_t : 8,
385 isp_mboxbsy : 1, /* mailbox command active */
386 isp_state : 3,
387 isp_sendmarker : 2, /* send a marker entry */
388 isp_update : 2, /* update parameters */
389 isp_nactive : 16; /* how many commands active */
390 volatile uint16_t isp_reqodx; /* index of last ISP pickup */
391 volatile uint16_t isp_reqidx; /* index of next request */
392 volatile uint16_t isp_residx; /* index of next result */
393 volatile uint16_t isp_resodx; /* index of next result */
394 volatile uint16_t isp_rspbsy;
395 volatile uint16_t isp_lasthdls; /* last handle seed */
386 isp_mboxbsy : 1, /* mailbox command active */
387 isp_state : 3,
388 isp_sendmarker : 2, /* send a marker entry */
389 isp_update : 2, /* update parameters */
390 isp_nactive : 16; /* how many commands active */
391 volatile uint16_t isp_reqodx; /* index of last ISP pickup */
392 volatile uint16_t isp_reqidx; /* index of next request */
393 volatile uint16_t isp_residx; /* index of next result */
394 volatile uint16_t isp_resodx; /* index of next result */
395 volatile uint16_t isp_rspbsy;
396 volatile uint16_t isp_lasthdls; /* last handle seed */
397 volatile uint16_t isp_obits; /* mailbox command output */
396 volatile uint16_t isp_mboxtmp[MAILBOX_STORAGE];
397 volatile uint16_t isp_lastmbxcmd; /* last mbox command sent */
398 volatile uint16_t isp_mbxwrk0;
399 volatile uint16_t isp_mbxwrk1;
400 volatile uint16_t isp_mbxwrk2;
398 volatile uint16_t isp_mboxtmp[MAILBOX_STORAGE];
399 volatile uint16_t isp_lastmbxcmd; /* last mbox command sent */
400 volatile uint16_t isp_mbxwrk0;
401 volatile uint16_t isp_mbxwrk1;
402 volatile uint16_t isp_mbxwrk2;
403 volatile uint16_t isp_mbxwrk8;
401 void * isp_mbxworkp;
402
403 /*
404 * Active commands are stored here, indexed by handle functions.
405 */
406 XS_T **isp_xflist;
407
408#ifdef ISP_TARGET_MODE

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

423
424#define SDPARAM(isp) ((sdparam *) (isp)->isp_param)
425#define FCPARAM(isp) ((fcparam *) (isp)->isp_param)
426
427/*
428 * ISP Driver Run States
429 */
430#define ISP_NILSTATE 0
404 void * isp_mbxworkp;
405
406 /*
407 * Active commands are stored here, indexed by handle functions.
408 */
409 XS_T **isp_xflist;
410
411#ifdef ISP_TARGET_MODE

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

426
427#define SDPARAM(isp) ((sdparam *) (isp)->isp_param)
428#define FCPARAM(isp) ((fcparam *) (isp)->isp_param)
429
430/*
431 * ISP Driver Run States
432 */
433#define ISP_NILSTATE 0
431#define ISP_RESETSTATE 1
432#define ISP_INITSTATE 2
433#define ISP_RUNSTATE 3
434#define ISP_CRASHED 1
435#define ISP_RESETSTATE 2
436#define ISP_INITSTATE 3
437#define ISP_RUNSTATE 4
434
435/*
436 * ISP Configuration Options
437 */
438#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
439#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
440#define ISP_CFG_TWOGB 0x20 /* force 2GB connection (23XX only) */
441#define ISP_CFG_ONEGB 0x10 /* force 1GB connection (23XX only) */

--- 446 unchanged lines hidden ---
438
439/*
440 * ISP Configuration Options
441 */
442#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
443#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
444#define ISP_CFG_TWOGB 0x20 /* force 2GB connection (23XX only) */
445#define ISP_CFG_ONEGB 0x10 /* force 1GB connection (23XX only) */

--- 446 unchanged lines hidden ---