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 */ |
340 /* 341 * Instrumentation 342 */ 343 u_int64_t isp_intcnt; /* total int count */ 344 u_int64_t isp_intbogus; /* spurious int count */ |
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 */ |
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 */ |
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 |
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 --- |