summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-063-3/+3
|
* Various whitespace nits.imp2004-11-121-21/+27
| | | | Noticed by: njl
* Don't use aha after calling aha_free.imp2004-11-121-4/+4
|
* #include <isa/isavar.h> instead of <i386/isa/isa_dma.h>phk2004-09-151-1/+1
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-172-8/+5
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Save the device so we can do a device_printf.imp2003-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
* Minor diff reduction with p4imp2003-11-121-1/+1
|
* Move 'guessing' code from the probe into the identify routine where it moreimp2003-11-102-160/+106
| | | | properly belongs.
* Tweak the front end driver file listimp2003-11-091-31/+26
| | | | Also some minor whitespace nits.
* Add my copyright to aha_isa.c to make it crystal clear its licenseimp2003-11-091-1/+25
|
* Let bus space manage softc.imp2003-11-094-56/+23
|
* Minor tweaks to make it behave better:imp2003-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.
* Minor comment smithingimp2003-11-091-4/+4
|
* Make this driver a little more style(9) compliantimp2003-11-094-206/+176
|
* Use __FBSDID().obrien2003-08-243-6/+9
| | | | Also some minor style cleanups.
* Mega busdma API commit.scottl2003-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
* Bring back bus_dmasync_op_t. It is now a typedef to an int, though thescottl2003-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)
* I deserve a big pointy hat for having missed all those referencesmux2003-04-101-2/+2
| | | | to bus_dmasync_op_t in my last commit.
* Clean up argument comments for bus_dma_tag_create() calls.mdodd2003-03-293-51/+76
|
* Consolidate MIN/MAX macros into one place (param.h).alfred2003-02-021-4/+0
| | | | Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-2/+2
| | | | especially in troff files.
* Fix build on alpha. It used to case an int to a pointer in order to dopeter2002-10-091-1/+2
| | | | | pointer arithmetic. Detour via uintptr_t, since we're generating an offset not dereferencing them.
* Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in thepeter2002-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.
* Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanlypeter2002-05-241-0/+1
| | | | again.
* Turn on interrupt-entropy harvesting for all/any mass storage devicesmarkm2001-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.
* Remove NAHA, NAHATOT and aha_softcs and related code. It was unusedimp2001-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.
* Remove unnecessary includes found by phk's script a long time ago.imp2000-12-132-4/+0
|
* Make a few more mallocs use M_ZERO.dwmalone2000-10-291-2/+1
| | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: imp
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Fix typo (accessable --> accessible).alex2000-06-141-1/+1
| | | | | | PR: 18588 Submitted by: Anatoly Vorobey <mellon@pobox.com> Reviewed by: asmodai
* Back out the previous change to the queue(3) interface.jake2000-05-261-5/+5
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-5/+5
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Remove unneeded <sys/buf.h> includes.phk2000-04-181-1/+0
| | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes.
* More pnpids.imp2000-03-252-2/+8
|
* Fix plug and play support:imp2000-01-244-119/+97
| | | | | | | | | | | o Cut out the probed stuff. We no longer need it since newbus implicitly checks for this (likely bt can be changed as well in this way). o Add preliminary support for unload. Untested because aha doesn't yet support identify and there are some interactions with PnP that I've not yet worked out. With this I can boot the AHA-1542CP FW F.0. All the aha resources appear to be picked up via pnp now.
* MIN unused, so kill itimp1999-10-251-1/+0
|
* * Add struct resource_list* argument to resource_list_alloc anddfr1999-10-121-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | resource_list_release. This removes the dependancy on the layout of ivars. * Move set_resource, get_resource and delete_resource from isa_if.m to bus_if.m. * Simplify driver code by providing wrappers to those methods: bus_set_resource(dev, type, rid, start, count); bus_get_resource(dev, type, rid, startp, countp); bus_get_resource_start(dev, type, rid); bus_get_resource_count(dev, type, rid); bus_delete_resource(dev, type, rid); * Delete isa_get_rsrc and use bus_get_resource_start instead. * Fix a stupid typo in isa_alloc_resource reported by Takahashi Yoshihiro <nyan@FreeBSD.org>. * Print a diagnostic message if we can't assign resources to a PnP device. * Change device_print_prettyname() so that it doesn't print "(no driver assigned)-1" for anonymous devices.
* Kill unused includesimp1999-10-112-2/+0
|
* Use the PRVERB() macro instead of 'if (bootverbose) printf()...mdodd1999-10-021-3/+8
| | | | | | | | | | | | | Add debuging for all failure cases in aha_cmd(). Always check DATAIN_REG_READY even if we're ready to exit the read loop. The last fix allows the AHA-1640 MCA SCSI adapter to operate correctly and likely fixes problems on a few other oddball adapters. (I suspect my Dell Drive Array in 1540 mode needs this.) Reviewed by: Warner Losh
* Add support for the AHA-1640 SCSI adapter.mdodd1999-10-011-0/+247
| | | | | | The changes to sys/dev/aha/aha.c that allow these cards to function properly will be here in a day or 2.
* Use rmand_get_bus{tag,handle} rather than hard wiring things toimp1999-09-281-3/+3
| | | | | | I386_BUS_SPACE_IO. Compiles now on the Alpha, but likely will not work due to bus space address <-> virtual address mapping bogons that work for i386 but not alpha.
* Newbusification of aha. dfr sent me the first cut, and I made itimp1999-09-281-129/+165
| | | | | | | | | | | | | work. Be more verbose when one cannot allocate IRQ, et al since this is a common configuration problem. The cards have the IRQ soft wired into their BIOS and do not try to do collision detection. This can cause problems when this IRQ is the same as another card/device. The PNP hasn't been tested. My PNP board is in a deployed system. I'll sneak in testing of it sometime later. I've been able to mount the 3.3R cdrom that arrived today and access files off it. Submitted by: dfr
* Remove vestiges of old pnp code.dfr1999-09-031-8/+0
|
* Missed this use of the old pnp includes. I don't think this is meant topeter1999-09-021-1/+2
| | | | be here though.
* Stub out the old pnp code till these are converted so GENERIC builds again.peter1999-09-021-1/+2
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Properly set the alignment argument to bus_dma_tag_create(). If wegibbs1999-08-162-7/+7
| | | | don't care about the alignment, set it to 1, meaning single byte alignment.
* The 1542 cards do not allow adapter commands to be queued while mailboxgibbs1999-05-252-34/+90
| | | | | | | | | | | | commands are outstanding. You'd think they'd just clear the IDLE bit, but alas, no. Delay until all pending mailbox commands have completed in aha_cmd to work around this. Report sync rates correctly on Fast Adaptec cards. Clones may still be reported incorrectly since there is no documenation on how they report extended sync values. Clean up some unused fields in the aha softc.
* Put a small delay in before sending the inquire_setup command. Theimp1999-05-141-4/+6
| | | | | | | | | | | | | docs don't seem to shed light on why this is needed, but reports from the field indicate this helps prevent problems in this area. Ken's changes seem to have exposed this bug, rather than caused it, as far as I can tell. Thanks to Jack O'Neill for tracking this down. Submitted by: jack@germanium.xtalwind.net Very strong 3.2 merge candidate.
* Add another kludge to the card identification probe. It appears thatimp1999-05-111-4/+7
| | | | | | | | | | some aha 1542B cards will return 0x7f for the unimplemented GEOMETRY register. This is a good 3.2 candidate. PR: 11469 Submitted by: Thomas David Rivers
OpenPOWER on IntegriCloud