summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
Commit message (Collapse)AuthorAgeFilesLines
* If we're defined to have a default role for target mode, make itmjacob2004-02-071-5/+4
| | | | | | just ISP_ROLE_TARGET- not both. MFC after: 1 week
* Change role defines so that they better match class 3 service parameters.mjacob2004-02-071-3/+4
| | | | | | Add ISPCTL_GET_PDB isp_control operation. MFC after: 1 week
* Fix a bug where we never managed to include the sense data we wanted to send.mjacob2004-01-291-2/+2
|
* Fix longstanding buglet- for centrally handled CTIO2s we were checking the wrongmjacob2004-01-291-2/+3
| | | | | | | bit for this being the last CTIO2. It didn't matter since it really was the last CTIO2 and the resources recycled, but still.... Add in CTIO3 define for future DAC work.
* If we have ISP_ROLE_INITIATOR set, make sure that we clear ICBOPT_INI_DISABLEmjacob2004-01-231-0/+6
| | | | | from the fwoptions. Likewise, we *set* ICBOPT_INI_DISABLE if we don't have initiator role.
* add MAKE_WWN_FROM_NODE_NAME macromjacob2004-01-231-0/+10
|
* Add firmware major, minor and micro revsions to the ISP_FC_GETHINFO ioctlmjacob2004-01-232-0/+7
| | | | structure.
* fix broken _IOR usagemjacob2003-11-141-1/+1
|
* Turn off ISP_SMPLOCK- not to be turned on again.mjacob2003-10-211-1/+1
| | | | | Until we can have perfect knowledge that all callers above us think it's okay for us to sleep, releasing *our* locks of course, we don't dare try and sleep.
* The present defaults for the open and close for device drivers whichphk2003-09-271-2/+0
| | | | | | | | | | | | | | provide no methods does not make any sense, and is not used by any driver. It is a pretty hard to come up with even a theoretical concept of a device driver which would always fail open and close with ENODEV. Change the defaults to be nullopen() and nullclose() which simply does nothing. Remove explicit initializations to these from the drivers which already used them.
* Add a module dependancy. Now CAM will autoload when you load this.markm2003-09-151-0/+1
| | | | OK'ed by: mdodd
* NetBSD'er with time on their hands (dma->DMA)mjacob2003-09-131-1/+1
|
* Bland synchronization of common source with no effect on FreeBSD whatsomever.mjacob2003-09-131-66/+132
|
* Some ridiculous target mode botches- like having the wrong definitionsmjacob2003-09-132-32/+34
| | | | | for messages. Some spelling fixes. Some target mode structure cleanups to reflect reality.
* Some canonicalization function cleanups based upon some target modemjacob2003-09-131-13/+2
| | | | structure cleanups.
* No time like the present to turn back on SMP locking.mjacob2003-09-131-2/+1
|
* Report correct active vs. nvram node/port WWNs in an ioctl.mjacob2003-09-131-2/+4
|
* On reset, make sure that we have some parameters set correctly. Thismjacob2003-09-131-1/+18
| | | | | | | | | | | | fixes a longstanding issue WRT resetting the chip after startup- it would fail if we were connected as an F-port to a switch. If we were connected as an F-port, we got assigned a hard loop ID of 255, which is really a bogus loop id. Then when we turned around to reset ourselves, the firmware would reject the ICB_INIT request because the loop id was bogus. *sputter* Minor fixlet from somebody in NetBSD with too much time on their hands (dma -> DMA).
* Move the inclusion of <machine/ofw_machdep.h> after the inclusion ofmarcel2003-09-021-1/+1
| | | | | | | <dev/ofw/openfirm.h> to allow the former to contain prototypes that use types defined in the latter. Reviewed by: mjacob@
* Revert previous commit. Violates Maintainer (O'Brien knows how tomjacob2003-08-251-13/+24
| | | | | reach me directly), but more importantly, breaks compiles on non-FreeBSD platforms.
* Use __FBSDID().obrien2003-08-244-6/+14
| | | | Also some minor style cleanups.
* s=include <ofw/=include <dev/ofw/= to reflect removal of -I$S/devimp2003-08-231-1/+1
|
* Prefer new location of pci include files (which have only been in theimp2003-08-221-2/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Mega busdma API commit.scottl2003-07-012-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* Merge common XPT_CALC_GEOMETRY functions into a single convenience function.njl2003-06-141-13/+1
| | | | | | | | | | | | | Devices below may experience a change in geometry. * Due to a bug, aic(4) never used extended geometry. Changes all drives >1G to now use extended translation. * sbp(4) drives exactly 1 GB in size now no longer use extended geometry. * umass(4) drives exactly 1 GB in size now no longer use extended geometry. For all other controllers in this commit, this should be a no-op. Looked over by: scottl
* Restore parentheses removed inappropriately in last commit.mjacob2003-06-011-2/+3
|
* Remove unused variablesphk2003-05-312-6/+5
| | | | | | Add /* FALLTHROUGH */ Found by: FlexeLint
* Add an explanatory comment about what operational modes in xfwopt are.mjacob2003-03-251-1/+5
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+6
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Back out M_* changes, per decision of the TRB.imp2003-02-192-5/+5
| | | | Approved by: trb
* Pointy hat- bad commit.mjacob2003-02-161-1/+1
|
* Make sure we propagate rxid && iid in isp_target_put_atiomjacob2003-02-161-0/+2
|
* Pick up some compilation warning fixes from NetBSD.mjacob2003-02-161-7/+7
| | | | | | If we don't have ISP_FW_CRASH_DUMP defined, we have to do a isp_reinit in the core code- not the platform code- so fix the ISP_CONN_FATAL case.
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-5/+5
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Make compiles (LINT and/or ISP_TARGET_MODE options) happier by making suremjacob2003-01-021-5/+7
| | | | | | printf type format args and actual args match. Reviewed by: Sam Leffler <sam@errno.com>
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-012-4/+4
| | | | especially in troff files.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-303-4/+4
| | | | Add FreeBSD Id tag where missing.
* LINT related fixes (as noticed by bde)mjacob2002-10-141-6/+6
|
* This should enable 10160 support. As best as I can tell, the samemjacob2002-10-113-4/+27
| | | | | | | f/w as 12160 is used, and otherwise, this is just a single channel variant of the 10160. MFC after: 0 days
* From PHK's flex tool- we can get -1 returned from xpt_path_target_id,mjacob2002-10-101-15/+18
| | | | | | so don't index off of it. MFC after: 1 day
* Some kernel threads try to do significant work, and the default KSTACK_PAGESscottl2002-10-021-1/+1
| | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb
* Remove ISP_DMA_ADDR_T definition.mjacob2002-09-231-10/+17
| | | | | | | | Instead, based upon whether ISP_DAC_SUPPORTED is defined, typedef isp_dma_addr_t appropriately. If ISP_DAC_SUPPORTRED is defined, the DMA_WD2/DMA_WD3 macros do something useful, else they define to '0'.
* Add MBOX_INIT_REQ_QUEUE_A64/MBOX_INIT_RES_QUEUE_A64 definitions.mjacob2002-09-231-0/+6
| | | | Define ispreq64_t to be the same as ispreqt3_t.
* Redo dma tag creation to correctly reflect the boundary and segmentmjacob2002-09-231-8/+7
| | | | limitations inherent to the isp1000 on SBus cards.
* Re-specify the bus space creation such that if we have ISP_DAC_SUPPORTEDmjacob2002-09-231-8/+12
| | | | | | | | | | | defined, we set the address space limitation to BUS_SPACE_UNRESTRICTED, otherwise to BUS_SPACE_MAXADDR_32BIT. If we have a 1240, ULTRA2 or better, or an FC card, the boundary limit is BUS_SPACE_UNRESTRICTED and segment limit is BUS_SPACE_MAXADDR_32BIT. The older 1020/1040 cards have boundary and segment limits of BUS_SPACE_MAXADDR_24BIT.
* Fix buglet in A64 CTIO3 structure copy.mjacob2002-09-231-1/+1
|
* Remove ISP_DMA_ADDR_T define (see ispvar.h)mjacob2002-09-231-1/+4
| | | | | | Add in commented out: +/* #define ISP_DAC_SUPPORTED 1 */
* If we have a 1240 or an ULTRA2 or better card, use MBOX_INIT_RES_QUEUE_A64mjacob2002-09-231-22/+49
| | | | (preparation for DAC/A64 support)
* The size argument to snprintf does not have to be backed off by onemjacob2002-09-071-17/+17
| | | | | | to account for a NULL byte. Submitted by: Jacques A. Vidrine <nectar@celabo.org>
* Remove STRNCAT (==>strncat) usage. Apparently I never read the manmjacob2002-09-063-20/+17
| | | | | | page correctly and it wasn't doing what I thought it was. Noticed by: Brooks Davis <brooks@one-eyed-alien.net>
OpenPOWER on IntegriCloud