aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispreg.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix some stupid copyright mistakes that have been there for quite some time.Matt Jacob2007-03-101-24/+26
| | | | Notes: svn path=/head/; revision=167403
* Don't attempt to load illegal hard loop addresses intoMatt Jacob2007-02-231-8/+8
| | | | | | | | | | | | | | | an ICB. This shows up on card restarts, and usually for 2200-2300 cards. What happens is that we start up, attempting to acquire a hard address. We end up instead being an F-port topology, which reports out a loop id of 0xff (or 0xffff for 2K Login f/w). Then, if we restart, we end up telling the card to go off an acquire this loop address, which the card then rejects. Bah. Compilation fixes from Solaris port. Notes: svn path=/head/; revision=166929
* Add 4Gb (24XX) support and lay the foundation for a lot of new stuff.Matt Jacob2006-11-021-24/+167
| | | | Notes: svn path=/head/; revision=163899
* Do various fixes to support firmware loading for the 2322Matt Jacob2006-07-031-6/+19
| | | | | | | | | | | | | | (and by extension, the 2422). One peculiar thing I've found with the 2322 is that if you don't force it to do Hard LoopID acquisition, the firmware crashes. This took a while to figure out. While we're at it, fix various bugs having to do with NVRAM reading and option setting with respect to pieces of NVRAM. Notes: svn path=/head/; revision=160080
* a) clean up some declaration stuff (i.e., make more modern with respectMatt Jacob2006-02-151-50/+50
| | | | | | | | | | | | | | | | | | to getting rid u_int for uint and so on). b) Turn back on 64 bit DAC support. Cheeze it a bit in that we have two DMA callback functions- one when we have bus_addr_t > 4 bits in width and the other which should be normal. Even Cheezier in that we turn off setting up DMA maps to be BUS_SPACE_MAXADDR if we're in ISP_TARGET_MODE. More work on this in a week or so. c) Tested under amd64 and 1MB DFLTPHYS, sparc64, i386 (PAE, but insufficient memory to really test > 4GB). LINT check under amd64. MFC after: 1 month Notes: svn path=/head/; revision=155704
* First of several commits as this driver is dusted off and maybe broughtMatt Jacob2006-01-231-4/+15
| | | | | | | | | | | | | | | | | | | | | up to date. Principle changes for this reelase is to support 2K Port Login firmware. This allows us to support the 2322 (and 2422 4Gb) cards which only come with the 2K Port Login firmware. The 2322 should now work- but we don't have firmware sets for it in ispfw (as the change to load 2K Port Login f/w hasn't been made- that f/w is so big it has to be loaded in more than one chunk). Other changes are the beginnings of cleaning up some long standing target mode issues. The next changes here will incorporate a lot of bug fixes from others. Finally, some copyright cleanup and attempts to make the parts of the driver that are FreeBSD specific start conforming more to FreeBSD style. MFC after: 1 month Notes: svn path=/head/; revision=154704
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Support for f/w crash dumps (2200 && 23XX).Matt Jacob2002-02-171-0/+22
| | | | | | | | | | | | | | | | If you want QLogic to look at a potential f/w problem for FC cards, you really have to provide them info in the format they expect. This involves dumping a lot of hardware registers (> 300 16 bit registers) and a lot of SRAM (> 128KB minimum). Thus all of this code is #ifdef protected which will become an option so that the memory allocation of where to dump the crash image is pretty expensive. It's worth it if you have a reproducible problem because they have some tools that can tell them, given the f/w version, the precise state of everything. MFC after: 1 week Notes: svn path=/head/; revision=90754
* + A variety of 23XX changes:Matt Jacob2002-02-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disable MWI on 2300 based on function code, set an 'isp_port' for the 2312- it's a separate instance, but the NVRAM is shared, and the second port's NVRAM is at offset 256. + Enable RIO operation for LVD SCSI cards. This makes a *big* difference as even under reasonable load we get batched completions of about 30 commands at a time on, say, an ISP1080. + Do 'continuation' mailbox commands- this allows us to specify a work area within the softc and 'continue' repeated mailbox commands. This is more or less on an ad hoc basis and is currently only used for firmware loading (which f/w now loads substantially faster becuase the calling thread is only woken when all the f/w words are loaded- not for each one of the 40000 f/w words that gets loaded). + If we're about to return from isp_intr with a 'bogus interrupt' indication, and we're not a 23XX card, check to see whether the semaphore register is currently *2* (not *1* as it should be) and whether there's an async completion sitting in outgoing mailbox0. This seems to capture cases of lost fast posting and RIO interrupts that the 12160 && 1080 have been known to pump out under extreme load (extreme, as in > 250 active commands). + FC_SCRATCH_ACQUIRE/FC_SCRATCH_RELEASE macros. + Endian correct swizzle/unswizzle of an ATIO2 that has a WWPN in it. MFC after: 1 week Notes: svn path=/head/; revision=90224
* Add 2 Gigabit Fibre Channel support (2300 && 2312 cards). This requiredMatt Jacob2001-08-311-0/+32
| | | | | | | | | | | | | some reworking (and consequent cleanup) of the interrupt service code. Also begin to start a cleanup of target mode support that will (eventually) not require more inforamtion routed with the ATIO to come back with the CTIO other than tag. MFC after: 4 weeks Notes: svn path=/head/; revision=82689
* Put in offset definitions for FPM and FBM registers, plus just enoughMatt Jacob2001-01-151-0/+17
| | | | | | | bits defined so we can reset them. Notes: svn path=/head/; revision=71078
* some copyright cleanupsMatt Jacob2000-09-211-6/+2
| | | | Notes: svn path=/head/; revision=66189
* Add in lengths of SBus or PCI registers.Matt Jacob2000-08-011-0/+3
| | | | Notes: svn path=/head/; revision=64088
* Add mailbox bitmask macros (numbers of available mailbox registersMatt Jacob2000-06-271-1/+9
| | | | | | | | based upon Qlogic chip type). Define maximum mailboxes. Add INT_PENDING_MASK macro. Change mailbox offset macro name. Notes: svn path=/head/; revision=62170
* cleanup i_int_X vs. uint_X definitionsMatt Jacob2000-06-181-16/+16
| | | | Notes: svn path=/head/; revision=61769
* The storage for WWN from NVRAM is actually the PORT WWN, not the NODE WWN.Matt Jacob2000-05-091-1/+12
| | | | Notes: svn path=/head/; revision=60218
* Add in 12160 (Ultra3) NVRAM definitions.Matt Jacob2000-02-111-2/+76
| | | | | | | Approved: jkh@freebsd.org Notes: svn path=/head/; revision=57148
* Add Dual LVD bus (1280) supportMatt Jacob1999-12-161-89/+93
| | | | Notes: svn path=/head/; revision=54671
* add in an INT_PENDING macroMatt Jacob1999-10-171-1/+2
| | | | Notes: svn path=/head/; revision=52346
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Clean up some macros. Add in ISP 1080/1240 NVRAM layout definitions.Matt Jacob1999-05-111-8/+128
| | | | Notes: svn path=/head/; revision=46967
* Add in 1080 LVD support and some basis also for the 1240. The port databaseMatt Jacob1999-03-251-10/+21
| | | | | | | printout is now enabled. Notes: svn path=/head/; revision=45040
* A wad of changes- prepping for 1080/1240 support (which caused a massiveMatt Jacob1999-03-171-34/+54
| | | | | | | | | thwank in register layout goop). A different mboxcmd approach. Some PDB change infrastructure. Some better management of loopdown/loopup events (keep them distinct from resource starvation for simq freeze/unfreeze actions). Notes: svn path=/head/; revision=44819
* clean up some NVRAM definesMatt Jacob1999-02-091-9/+5
| | | | Notes: svn path=/head/; revision=43792
* Implement and use Fast Posting for both parallel && fibre. Redo a bit ofMatt Jacob1999-01-301-2/+3
| | | | | | | | | | the startup code. Implement a call to outer framework function so that asynchronous events can be handled (e.g., speed negotiation, target mode). Roll internal release tags. Notes: svn path=/head/; revision=43420
* clarify headers;move uninit to outer layer;remove watchdogMatt Jacob1998-12-281-2/+2
| | | | Notes: svn path=/head/; revision=42131
* offset was wrong for HARDLOOPID in NVRAMMatt Jacob1998-12-051-2/+3
| | | | Notes: svn path=/head/; revision=41518
* Update QLogic ISP support for CAM. Add preliminary target mode support.Justin T. Gibbs1998-09-151-26/+130
| | | | | | | Submitted by: Matthew Jacob <mjacob@feral.com> Notes: svn path=/head/; revision=39235
* Add support for the Qlogic ISP SCSI && FC/AL AdaptersMatt Jacob1998-04-221-0/+589
Notes: svn path=/head/; revision=35388