Deleted Added
full compact
ispvar.h (67047) ispvar.h (69522)
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 67047 2000-10-12 23:47:03Z mjacob $ */
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 69522 2000-12-02 18:06:03Z mjacob $ */
2/*
3 * Soft Definitions for for Qlogic ISP SCSI adapters.
4 *
5 * Copyright (c) 1997, 1998, 1999, 2000 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

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

332 u_int32_t
333 isp_touched : 1, /* board ever seen? */
334 : 1,
335 isp_bustype : 1, /* SBus or PCI */
336 isp_loaded_fw : 1, /* loaded firmware */
337 isp_dblev : 12, /* debug log mask */
338 isp_clock : 8, /* input clock */
339 isp_confopts : 8; /* config options */
2/*
3 * Soft Definitions for for Qlogic ISP SCSI adapters.
4 *
5 * Copyright (c) 1997, 1998, 1999, 2000 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

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

332 u_int32_t
333 isp_touched : 1, /* board ever seen? */
334 : 1,
335 isp_bustype : 1, /* SBus or PCI */
336 isp_loaded_fw : 1, /* loaded firmware */
337 isp_dblev : 12, /* debug log mask */
338 isp_clock : 8, /* input clock */
339 isp_confopts : 8; /* config options */
340 /*
341 * Instrumentation
342 */
343 u_int64_t isp_intcnt; /* total int count */
344 u_int64_t isp_intbogus; /* spurious int count */
340
341 /*
342 * Volatile state
343 */
344
345 volatile u_int32_t
346 isp_mboxbsy : 8, /* mailbox command active */
347 : 1,

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

382
383/*
384 * ISP Configuration Options
385 */
386#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
387#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
388#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */
389#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */
345
346 /*
347 * Volatile state
348 */
349
350 volatile u_int32_t
351 isp_mboxbsy : 8, /* mailbox command active */
352 : 1,

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

387
388/*
389 * ISP Configuration Options
390 */
391#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
392#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
393#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */
394#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */
390#define ISP_CFG_NPORT 0x04 /* try to force N- instead of L-Port */
395#define ISP_CFG_PORT_PREF 0x0C /* Mask for Port Prefs (2200 only) */
396#define ISP_CFG_LPORT 0x00 /* prefer {N/F}L-Port connection */
397#define ISP_CFG_NPORT 0x04 /* prefer {N/F}-Port connection */
398#define ISP_CFG_NPORT_ONLY 0x08 /* insist on {N/F}-Port connection */
399#define ISP_CFG_LPORT_ONLY 0x0C /* insist on {N/F}L-Port connection */
391
392/*
393 * Firmware related defines
394 */
395#define ISP_CODE_ORG 0x1000 /* default f/w code start */
396#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic)
397#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2])
398

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

551 * ISP2100_FABRIC - defines whether FABRIC support is enabled
552 * ISP2100_SCRLEN - length for the Fibre Channel scratch DMA area
553 *
554 * MEMZERO(dst, src) platform zeroing function
555 * MEMCPY(dst, src, count) platform copying function
556 * SNPRINTF(buf, bufsize, fmt, ...) snprintf
557 * STRNCAT(dstbuf, size, srcbuf) strncat
558 * USEC_DELAY(usecs) microsecond spindelay function
400
401/*
402 * Firmware related defines
403 */
404#define ISP_CODE_ORG 0x1000 /* default f/w code start */
405#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic)
406#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2])
407

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

560 * ISP2100_FABRIC - defines whether FABRIC support is enabled
561 * ISP2100_SCRLEN - length for the Fibre Channel scratch DMA area
562 *
563 * MEMZERO(dst, src) platform zeroing function
564 * MEMCPY(dst, src, count) platform copying function
565 * SNPRINTF(buf, bufsize, fmt, ...) snprintf
566 * STRNCAT(dstbuf, size, srcbuf) strncat
567 * USEC_DELAY(usecs) microsecond spindelay function
568 * USEC_SLEEP(isp, usecs) microsecond sleep function
559 *
560 * NANOTIME_T nanosecond time type
561 *
562 * GET_NANOTIME(NANOTIME_T *) get current nanotime.
563 *
564 * GET_NANOSEC(NANOTIME_T *) get u_int64_t from NANOTIME_T
565 *
566 * NANOTIME_SUB(NANOTIME_T *, NANOTIME_T *)

--- 93 unchanged lines hidden ---
569 *
570 * NANOTIME_T nanosecond time type
571 *
572 * GET_NANOTIME(NANOTIME_T *) get current nanotime.
573 *
574 * GET_NANOSEC(NANOTIME_T *) get u_int64_t from NANOTIME_T
575 *
576 * NANOTIME_SUB(NANOTIME_T *, NANOTIME_T *)

--- 93 unchanged lines hidden ---