aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha
Commit message (Collapse)AuthorAgeFilesLines
* Pass bus_get_dma_tag() into the first argument of bus_dma_create_tag()Warner Losh2008-10-072-2/+2
| | | | | | | rather than NULL. Notes: svn path=/head/; revision=183678
* Minor typo fix, caught while skimming through the file.Giorgos Keramidas2008-08-101-1/+1
| | | | Notes: svn path=/head/; revision=181530
* Prepare for future integration between CAM and newbus. xpt_bus_registerScott Long2007-06-171-1/+1
| | | | | | | | | | now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE. Notes: svn path=/head/; revision=170872
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willScott Long2007-04-151-2/+2
| | | | | | | | | | | | | | use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in the coming week as this work settles down. The driver API has changed, so all CAM drivers will need to be recompiled. The userland API has not changed, so tools like camcontrol do not need to be recompiled. Notes: svn path=/head/; revision=168752
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-231-1/+1
| | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) Notes: svn path=/head/; revision=166906
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-231-1/+1
| | | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
* Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.Matt Jacob2006-12-113-2/+4
| | | | | | | | PR: 106543 MFC after: 3 days Notes: svn path=/head/; revision=165102
* Remove unused structures.Kevin Lo2006-11-091-25/+0
| | | | | | | | Reviewed by: cognet and imp Approved by: cognet and imp Notes: svn path=/head/; revision=164110
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEMatt Jacob2006-11-021-56/+0
| | | | | | | | | as the default. Reviewed by multitudes. Notes: svn path=/head/; revision=163896
* The first of 3 major steps to move the CAM layer forward to usingMatt Jacob2006-10-311-4/+72
| | | | | | | | | | | | | | | | | | | | | | | | the CAM_NEW_TRAN_CODE that has been in the tree for some years now. This first step consists solely of adding to or correcting CAM_NEW_TRAN_CODE pieces in the kernel source tree such that a both a GENERIC (at least on i386) and a LINT build with CAM_NEW_TRAN_CODE as an option will compile correctly and run (at least with some the h/w I have). After a short settle time, the other pieces (making CAM_NEW_TRAN_CODE the default and updating libcam and camcontrol) will be brought in. This will be an incompatible change in that the size of structures related to XPT_PATH_INQ and XPT_{GET,SET}_TRAN_SETTINGS change in both size and content. However, basic system operation and basic system utilities work well enough with this change. Reviewed by: freebsd-scsi and specific stakeholders Notes: svn path=/head/; revision=163816
* Add explicit dependency on cam. This is necessary when both aha.ko andWarner Losh2006-03-242-0/+2
| | | | | | | | | | | cam.ko are modules so that aha.ko's undefined symbols can be satisfied by cam.ko. Sumitted by: nork Reviewed by: scottl Notes: svn path=/head/; revision=157085
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-292-2/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Simplify aha resource management, and fix a few bugs in unwindingWarner Losh2005-01-193-74/+51
| | | | | | | error cases. Notes: svn path=/head/; revision=140467
* Use the standard FreeBSD licenseWarner Losh2005-01-111-6/+6
| | | | Notes: svn path=/head/; revision=140040
* nitsWarner Losh2005-01-111-2/+3
| | | | Notes: svn path=/head/; revision=140039
* Final attempt to make aha 1542A working. If not, oh well, I don'tWarner Losh2005-01-112-7/+16
| | | | | | | | | | have the card and no way to reproduce problems. We do this by applying the workaround to firmware revsion 0. PR: 14334 Notes: svn path=/head/; revision=140025
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-063-3/+3
| | | | Notes: svn path=/head/; revision=139749
* Various whitespace nits.Warner Losh2004-11-121-21/+27
| | | | | | | Noticed by: njl Notes: svn path=/head/; revision=137599
* Don't use aha after calling aha_free.Warner Losh2004-11-121-4/+4
| | | | Notes: svn path=/head/; revision=137598
* #include <isa/isavar.h> instead of <i386/isa/isa_dma.h>Poul-Henning Kamp2004-09-151-1/+1
| | | | Notes: svn path=/head/; revision=135260
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-172-8/+5
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Save the device so we can do a device_printf.Warner Losh2003-11-133-76/+69
| | | | | | | | | Use this in preference to aha_name. Remove aha_name function and #define it to device_get_unitname() Minor indentation tweaks resulting therefrom Notes: svn path=/head/; revision=122597
* Minor diff reduction with p4Warner Losh2003-11-121-1/+1
| | | | Notes: svn path=/head/; revision=122535
* Move 'guessing' code from the probe into the identify routine where it moreWarner Losh2003-11-102-158/+104
| | | | | | | properly belongs. Notes: svn path=/head/; revision=122385
* Tweak the front end driver file listWarner Losh2003-11-091-31/+26
| | | | | | | Also some minor whitespace nits. Notes: svn path=/head/; revision=122363
* Add my copyright to aha_isa.c to make it crystal clear its licenseWarner Losh2003-11-091-1/+25
| | | | Notes: svn path=/head/; revision=122362
* Let bus space manage softc.Warner Losh2003-11-094-56/+23
| | | | Notes: svn path=/head/; revision=122361
* Minor tweaks to make it behave better:Warner Losh2003-11-091-8/+18
| | | | | | | | | | | | | | | | | o When we're resetting the board, make sure that we error out the pending CCBs first. Otherwise the aha_cmd won't accept further commands, such as those that are used to reset the card (AOP_INITIALIZE_MBOX). This appears to cause a cascade failure where no more commands are possible to the card. o Reduce from 10s down to 1s the amount of time we're willing to tolerate the card being awol. This helps the above case. o Add some error checking to two commands issued in the probe. I have a dim memory of gibbs@ trying to tell me about this problem a few years ago, so pointy hat to imp@ for sitting on it so long. Notes: svn path=/head/; revision=122360
* Minor comment smithingWarner Losh2003-11-091-4/+4
| | | | Notes: svn path=/head/; revision=122359
* Make this driver a little more style(9) compliantWarner Losh2003-11-094-206/+176
| | | | Notes: svn path=/head/; revision=122340
* Use __FBSDID().David E. O'Brien2003-08-243-6/+9
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Mega busdma API commit.Scott Long2003-07-013-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=117126
* Bring back bus_dmasync_op_t. It is now a typedef to an int, though theScott Long2003-05-271-2/+2
| | | | | | | | | | | BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah) Notes: svn path=/head/; revision=115343
* I deserve a big pointy hat for having missed all those referencesMaxime Henrion2003-04-101-2/+2
| | | | | | | to bus_dmasync_op_t in my last commit. Notes: svn path=/head/; revision=113350
* Clean up argument comments for bus_dma_tag_create() calls.Matthew N. Dodd2003-03-293-51/+76
| | | | Notes: svn path=/head/; revision=112782
* Consolidate MIN/MAX macros into one place (param.h).Alfred Perlstein2003-02-021-4/+0
| | | | | | | Submitted by: Hiten Pandya <hiten@unixdaemons.com> Notes: svn path=/head/; revision=110232
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Fix build on alpha. It used to case an int to a pointer in order to doPeter Wemm2002-10-091-1/+2
| | | | | | | | pointer arithmetic. Detour via uintptr_t, since we're generating an offset not dereferencing them. Notes: svn path=/head/; revision=104713
* Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in thePeter Wemm2002-10-092-2/+2
| | | | | | | | 'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in an int on machines with 64 bit longs. Notes: svn path=/head/; revision=104710
* Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanlyPeter Wemm2002-05-241-0/+1
| | | | | | | again. Notes: svn path=/head/; revision=97208
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-012-2/+2
| | | | | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl. Notes: svn path=/head/; revision=73280
* Remove NAHA, NAHATOT and aha_softcs and related code. It was unusedWarner Losh2001-02-042-30/+0
| | | | | | | | | | | | except for setting it. Also remove count from aha and replace it with optional. Also add commented out pccard lines for all the old card drivers. They have to be commented out until they are converted because it causes problems in NEWCARD. Notes: svn path=/head/; revision=72013
* Remove unnecessary includes found by phk's script a long time ago.Warner Losh2000-12-132-4/+0
| | | | Notes: svn path=/head/; revision=69963
* Make a few more mallocs use M_ZERO.David Malone2000-10-291-2/+1
| | | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: imp Notes: svn path=/head/; revision=67897
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Fix typo (accessable --> accessible).Alexander Langer2000-06-141-1/+1
| | | | | | | | | PR: 18588 Submitted by: Anatoly Vorobey <mellon@pobox.com> Reviewed by: asmodai Notes: svn path=/head/; revision=61686
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-5/+5
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-5/+5
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* Remove unneeded <sys/buf.h> includes.Poul-Henning Kamp2000-04-181-1/+0
| | | | | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes. Notes: svn path=/head/; revision=59368
* More pnpids.Warner Losh2000-03-252-2/+8
| | | | Notes: svn path=/head/; revision=58544