Deleted Added
sdiff udiff text old ( 67047 ) new ( 69522 )
full compact
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 67047 2000-10-12 23:47: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 */
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 */
390#define ISP_CFG_NPORT 0x04 /* try to force N- instead of L-Port */
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
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 ---