summaryrefslogtreecommitdiffstats
path: root/sys/dev/buslogic/bt_isa.c
Commit message (Collapse)AuthorAgeFilesLines
* Add locking to the bt(4) driver and mark it MPSAFE.jhb2012-10-151-8/+8
| | | | | | | | | | | - Use device_printf() and device_get_unit() instead of storing the unit number in the softc. - Remove use of explicit bus space handles and tags. - Return an errno value from bt_eisa_attach() if an error occurs rather than -1. - Use BUS_PROBE_DEFAULT rather than 0. Tested by: no one
* Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.mjacob2006-12-111-0/+1
| | | | | PR: 106543 MFC after: 3 days
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-291-1/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Mega busdma API commit.scottl2003-07-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Clean up argument comments for bus_dma_tag_create() calls.mdodd2003-03-291-17/+26
|
* Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in thepeter2002-10-091-1/+1
| | | | | 'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in an int on machines with 64 bit longs.
* * Add struct resource_list* argument to resource_list_alloc anddfr1999-10-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Properly set the alignment argument to bus_dma_tag_create(). If wegibbs1999-08-161-3/+3
| | | | don't care about the alignment, set it to 1, meaning single byte alignment.
* Don't #include i386/isa/isa_dma.h - it's in isa/isavar.h now. Thispeter1999-06-281-2/+1
| | | | driver is probably not far from being MI now anyway.
* Quieten the bt_isa_probe() messages since they get a bit much whenpeter1999-06-031-3/+4
| | | | the isa probe has gone hunting for a card on it's own.
* No support for pnp devices yet.dfr1999-05-301-1/+5
|
* Don't use BUS_WRITE_IVAR to manipulate resources.dfr1999-05-221-9/+10
|
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-2/+1
| | | | to the BUS_SETUP_INTR call.
* Revert part of 1.9; we don't need to reset the port after release now thatpeter1999-04-241-2/+1
| | | | the isa bus doesn't clear the hints at that point.
* Make the bt isa driver work..peter1999-04-181-5/+11
| | | | | | | | | | | - fix cut/paste problem. :-) - don't forget to call isa_dmacascade() - reset the port after we release resources. That last one is a trap to watch out for.. The isa bus driver uses the same port/irq/mem/etc variables for the initial probe hints as it does for allocation/deallocation tracking. Releasing a resource clears the variable and then you loose the hint during attach.. (ouch!)
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-181-68/+127
| | | | | | | | | had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far. Submitted by: Doug Rabson <dfr@nlsystems.com>
* failled spell-checkphk1999-04-061-2/+2
|
* Pull 'ISA style' probe where interrupt information is determined throughgibbs1999-03-081-43/+7
| | | | | commands sent to card, into the base driver module. It is now used for EISA board probes too.
* Fix probes when a port address is specified.gibbs1998-11-101-21/+8
|
* Fix breakage introduced by last patch. bde has added CC_QUIET flag toimp1998-10-121-27/+4
| | | | | | | | hasseen_isadev so this will be less noisy when conflicts do exist. Also eliminate redundant warnings about conflicts. Requested by: bde Reviewed by: gibbs
* Fix conficts in probe:imp1998-10-101-1/+28
| | | | | | | | | | o For bt and aha only probe the one I/O range if a specific I/O is specified in the config file. o Don't even try to probe I/O ranges that have been seen already. o If we conflict with an IRQ or DRQ, then fail the probe. Requested by: bde, gibbs Approved by: jkh
* Removed unused include of "ioconf.h" again. The CAM changes made ioconf.hbde1998-09-241-3/+1
| | | | empty but regressed to including it here.
* Mylex/Buslogic MultiMaster SCSI-Host Adapter Driver for CAM.gibbs1998-09-151-0/+322
OpenPOWER on IntegriCloud