aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Role core minor. Handles are 16, not 32 bits. Add the ISPCTL_RUN_MBOXCMDMatt Jacob2001-03-041-3/+11
| | | | | | | | isp_control functio. Add the ISPASYNC_UNHANDLED_RESPONSE response async event code. Notes: svn path=/stable/4/; revision=73549
* MFC: The flag ICBOPT_BOTH_WWNS is more descriptive than ICBOPT_USE_PORTNAME.Matt Jacob2001-03-041-1/+1
| | | | Notes: svn path=/stable/4/; revision=73547
* MFC: Update copyright. Accomodate changes to Qlogic parallel SCSI targetMatt Jacob2001-03-041-9/+13
| | | | | | | | | | | mode spec (half of what had been a 32 bit 'driver reserved' value is now a 16 bit handle that is used to correllate CTIOs with a specific ATIO- we have to make sure we pass it on thru. Propagate back proper at2_entry format (instead of one derived from an at_entry). Handles are 16, not 32 bits. Notes: svn path=/stable/4/; revision=73546
* MFC: rev copyright. propage Asmodai's spelling correction. HandlesMatt Jacob2001-03-041-3/+4
| | | | | | | are 16 not 32 bits now. Notes: svn path=/stable/4/; revision=73545
* MFC: handles are 16 not 32 bits now.Matt Jacob2001-03-041-14/+14
| | | | Notes: svn path=/stable/4/; revision=73544
* Roll platform minor.Matt Jacob2001-03-041-9/+9
| | | | | | | | MFC: Remove name/unit from softc- replace with device_t from probe. Store default WWWs for both port && node. Notes: svn path=/stable/4/; revision=73543
* MFC: Remove usage of isp->isp_name/isp->isp_unit (use isp->isp_dev). RemoveMatt Jacob2001-03-041-55/+81
| | | | | | | | | | | stray newline in foormat string. Note the we don't support 2nd channel on 12160/1280 cards in target mode yet. Clean up target mode so that it more or less works again. Remove nearly all printfs and use device_printf or isp_prt. Handles are 16- not 32 bits now. We can now cope with at least the latest Qlogic 1040 Target Mode f/w (12160/1X80 not working yet). Notes: svn path=/stable/4/; revision=73542
* MFC: Update Copyright. Change handles from 32 to 16 bits. Catch aMatt Jacob2001-03-041-28/+70
| | | | | | | | longstanding bug about making sure that we're using both WWNs (port and node). Add ISPCTL_RUN_MBOXCMD isp_control function. Notes: svn path=/stable/4/; revision=73541
* MFC: Fix isp_print_qentry to print all four lines- it's been broken for months.Matt Jacob2001-03-021-2/+3
| | | | Notes: svn path=/stable/4/; revision=73312
* MFC: removal of ISP2100_FABRIC. Insertion of extra loop states. MoreMatt Jacob2001-02-121-19/+86
| | | | | | | MFC: isp_control functions && defines && explanations. Ditto isp_control. Notes: svn path=/stable/4/; revision=72385
* MFC: FC-AL position map structure.Matt Jacob2001-02-121-0/+16
| | | | Notes: svn path=/stable/4/; revision=72384
* MFC: implementation of isp_fc_runstate function.Matt Jacob2001-02-121-0/+54
| | | | Notes: svn path=/stable/4/; revision=72383
* Roll version minor. MFC: removal of ISP2100_FABRIC.Matt Jacob2001-02-121-2/+1
| | | | Notes: svn path=/stable/4/; revision=72382
* MFC: cleanup of adapter role, 'fixing' of target mode.Matt Jacob2001-02-121-35/+33
| | | | Notes: svn path=/stable/4/; revision=72381
* MFC: major rework of loop events.Matt Jacob2001-02-121-370/+593
| | | | Notes: svn path=/stable/4/; revision=72380
* MFC: removal of MAINTAINER (let the games begin!)Matt Jacob2001-02-121-2/+0
| | | | Notes: svn path=/stable/4/; revision=72379
* MFC: constify some strings (for better compile time checking support).Matt Jacob2001-01-171-129/+260
| | | | | | | | | | | Reset FPM/FBM for 2X00 cards in isp_reset. Implement HBA role support. Some isp_prt argument cleanup. Change some fabric stuff to use targets 0..125 in F-port topologies, notice when fabric devices go away. Register FC4 types with the name server (so we can work with McData switches). Yet again fool around with some more WWN default stuff. Notes: svn path=/stable/4/; revision=71186
* MFC: fix for overflowing 32 bit timeout tick values (on high HZ alphas).Matt Jacob2001-01-171-22/+49
| | | | | | | | Fix some isp_prt missing/misplaced arguments. Accomodate recent changes to Fabric Support. Notes: svn path=/stable/4/; revision=71185
* MFC: Roll platform version. Wait longer for mailbox commands to time out.Matt Jacob2001-01-171-6/+11
| | | | | | | | Print out opcode if we imeout. MFC fix for 22650 (remember to set CAM_AUTOSNS_VALID if we have sense data). Notes: svn path=/stable/4/; revision=71183
* Add in offsets for ATIO2 WWPN && ATIO2 OXIDs...Matt Jacob2001-01-171-0/+3
| | | | Notes: svn path=/stable/4/; revision=71182
* MFC: add some specific 2X00 status request defines. Add in the SNSMatt Jacob2001-01-171-1/+13
| | | | | | | offsets && sizes for REGISTER FC4 SNS subcommands. Notes: svn path=/stable/4/; revision=71181
* MFC: add enough bits to access and reset the FPM and FBM modules.Matt Jacob2001-01-171-0/+17
| | | | Notes: svn path=/stable/4/; revision=71180
* MFC: Add in HBA roles. Shuffle some fabric stuff so that ISPASYNC_PDB_CHANGEDMatt Jacob2001-01-171-12/+54
| | | | | | | | | | | is gone and replaced by ISPASYNC_LOGGED_INOUT, and ISPASYNC_CHANGE_NOTIFY covers both fabric and local loop stuff. Declare isp_rpt to be a printf like function (for GNUC compilers only). Hey- it helped catch some missing arg cases. Notes: svn path=/stable/4/; revision=71179
* MFC: Add interrupt instrumentation. Change ISP_CFG_NPORT config option toMatt Jacob2000-12-051-1/+11
| | | | | | | | a set of options that allows specific loop, loop-only, nport, nport-only topology settings. Define a required macro for all platforms (USEC_SLEEEP). Notes: svn path=/stable/4/; revision=69602
* MFC: Only call ISP_UNLOCK/ISP_LOCK if isp->isp_osinfo.intsok in USEC_SLEEP.Matt Jacob2000-12-051-42/+45
| | | | | | | | | | Add a test against isp->isp_osinfo.islocked prior to trying to see whether --isp->isp_osinfo.islocked is zero to cause us to unlock (non-SMPLOCK case). Add USEC_SLEEP macro support. Change the location at which we define ISP_LOCK/ISP_UNLOCK macros. Roll minor revision again. Notes: svn path=/stable/4/; revision=69601
* MFC: Replace some more printfs with isp_prt's. Use isp_prt/ISP_LOGDEBUG0Matt Jacob2000-12-051-33/+32
| | | | | | | for rate setting/getting printouts. Remove "SERVICING_INTERRUPT" nonsense Notes: svn path=/stable/4/; revision=69600
* MFC: Make the Not RESPONSE in RESPONSE QUEUE message have a bit more infoMatt Jacob2000-12-051-14/+36
| | | | | | | | | | | (specifically, how many entries we've looked at so far). Maintain interrupt instrumentation. Use USEC_SLEEP instead of USEC_DELAY in a number of places (this allows us to drop locks and sleep instead of spin). Track changes to configuration options for topology preference. Fix botched order of printout for Channel, Target, Lun. Notes: svn path=/stable/4/; revision=69599
* fix copyrightMatt Jacob2000-10-271-1/+0
| | | | Notes: svn path=/stable/4/; revision=67736
* fix type in copyrightMatt Jacob2000-10-271-1/+1
| | | | Notes: svn path=/stable/4/; revision=67735
* MFC: changes to default WWN handling.Matt Jacob2000-10-272-41/+83
| | | | Notes: svn path=/stable/4/; revision=67734
* MFC: changes to default WWN handling.Matt Jacob2000-10-271-18/+4
| | | | | | | Roll platform minor. Notes: svn path=/stable/4/; revision=67733
* MFC the major rewrite of this driver (core version 2.0). MFC supportMatt Jacob2000-09-219-1753/+2093
| | | | | | | for the non-attach of Qlogic 12160 with certain sub-vendorid. Notes: svn path=/stable/4/; revision=66197
* MFC: correct missing portion of complete STRNCAT cleanup.Matt Jacob2000-07-181-1/+2
| | | | Notes: svn path=/stable/4/; revision=63394
* MFC:Add in some new IN_XXX and CT_XXXX flags in preparationMatt Jacob2000-07-181-0/+6
| | | | | | | | for the rototilling that !*$)~@!$_@*_(~@$*_(~@$*~@$* Qlogic F/W changes will need. Notes: svn path=/stable/4/; revision=63391
* MFC:If debugging set, zero out an incoming response entryMatt Jacob2000-07-181-1/+5
| | | | | | | | | | when we're done reading it (makes checking things easier). Before calling isp_notify_ack make sure we're at RUNSTATE- elsewise we can be responding to LIPs or SCSI bus resets before we've finished some of the wiring. Notes: svn path=/stable/4/; revision=63389
* MFC (rev 1.42)- lots of target mode changes.Matt Jacob2000-07-181-40/+169
| | | | Notes: svn path=/stable/4/; revision=63386
* MFC: Raise debug level for some messages. Fix botched inversionMatt Jacob2000-07-181-11/+9
| | | | | | | about MBOX_COMMAND_ERROR vs. MBOX_COMMAND_PARAM_ERROR. Notes: svn path=/stable/4/; revision=63384
* MFC:Matt Jacob2000-07-051-0/+12
| | | | | | | | | | Oops! If we're deciding a command is now really dead, make *darned* sure that it really is by issuing a ISPCTL_ABORT_CMD just on the off chance the f/w will start it up again and, ha ha, start using the DMA resources we gave it but are now taking away. Notes: svn path=/stable/4/; revision=62647
* MFC:Matt Jacob2000-07-051-7/+14
| | | | | | | | | Clean up ISPCTL_ABORT_CMD function to not be too chatty if it succeeds, or even if it fails with INVALID_PARM (which just means that the handle doesn't refer to an active commane). Notes: svn path=/stable/4/; revision=62646
* MFC: Remove obsolete isp_dogactive tag.Matt Jacob2000-07-041-14/+9
| | | | | | | | | | | | | | Add 8 bits of volatile mailbox busy mask- this will be the bitmask of output mailbox values we want to get back out of the chip once a mailbox command is done. Add storage for the maximum number of output mailbox registers to the softc. Set ISP_MAX_LUNS to be off of new isp_maxluns tag in softc. Change our 'fabdev' tag to 'loggedin'. Increase size (and add defines for) topology storage. Roll minor version numbers. Notes: svn path=/stable/4/; revision=62546
* MFC: Add mailbox bitmask macros (numbers of available mailbox registersMatt Jacob2000-07-041-17/+25
| | | | | | | | | | | | based upon Qlogic chip type). Define maximum mailboxes. Add INT_PENDING_MASK macro. Change mailbox offset macro name. cleanup i_int_X vs. uint_X definitions The storage for WWN from NVRAM is actually the PORT WWN, not the NODE WWN. Notes: svn path=/stable/4/; revision=62545
* MFC: add MBOX_GET_RESOURCE_COUNT commandMatt Jacob2000-07-041-0/+1
| | | | Notes: svn path=/stable/4/; revision=62544
* MFC: add "disable autodisconnect" flagsMatt Jacob2000-07-041-0/+1
| | | | Notes: svn path=/stable/4/; revision=62543
* MFC: Remove all ISP2100_SCCLUN define based code and replace it with runtimeMatt Jacob2000-07-041-27/+27
| | | | | | | | | comparisons against the tag isp_maxluns- if > 16, we're SCCLUN based. On initial regular SCSI startup, disable auto-disconnect. Notes: svn path=/stable/4/; revision=62542
* MFC: Fix completely stupid and idiotiuc sprintfs in isp_inline.h withMatt Jacob2000-07-041-39/+33
| | | | | | | | | | | | | with the STRNCAT function. Add an isp_handle_index function- this is prepatory to loading more into the handle (i.e., generation number), so we will now need a function that will take a handle and return a flat index [ 0 .. maxhandles-1 ] for auxillary routines that need an index to get at buddy store values (like dma maps or xflist pointers). Notes: svn path=/stable/4/; revision=62540
* MFC: Roll platform minor number. Force definition of SCSI_ISP_FABRICMatt Jacob2000-07-041-28/+107
| | | | | | | | | | | | | | | | | | | | | | | | | (we always support fabric now). Remove SCCLUN definition (we always support SCCLUN now, if we load the f/w). Add typedef definition of an external firmware fetch function. Clean up private storage so that we can use the spriv_field0 to store a bitmask of whether we've set a value into ccb->ccb_h.status, whether we're in the watchdog routine for this command now, whether we've set a grace period for this command and whether this command is actually done. See comments of rev 1.45 of isp.c for more complete information. Add in isp_lock/isp_unlock inlines. Add in an islocked/intsok flag to isp_osinfo substructure (all in prep for SMP). Define MBOX_WAIT_COMPLETE and MBOX_NOTIFY_COMPLETE macros so that we can now (temp) use tsleep to wait for mailbox completion. Requires us to guess whether we're servicing an interrupt or not- will use intr_nesting_level. Add local strncat function. Notes: svn path=/stable/4/; revision=62539
* MFC (1.35, 1.36, 1.37, 1.38, 1.39, 1.40): (yes, these should be a betterMatt Jacob2000-07-041-139/+215
| | | | | | | set of comments- basically synchronization of changes to watchdog timeouts). Notes: svn path=/stable/4/; revision=62538
* MFC (revisions 1.42 - 1.46) - I'm not going to replicate all of theMatt Jacob2000-07-041-494/+442
| | | | | | | comments- particularily for 1.45. Notes: svn path=/stable/4/; revision=62537
* MFC: Remove asm_pci.h from this branch- we now have the ispfw module.Matt Jacob2000-07-041-32639/+0
| | | | Notes: svn path=/stable/4/; revision=62531
* MFC: roll core minor. Add definitions for topology.Matt Jacob2000-05-091-7/+14
| | | | Notes: svn path=/stable/4/; revision=60244