summaryrefslogtreecommitdiffstats
path: root/sys/dev/buslogic
Commit message (Collapse)AuthorAgeFilesLines
...
* - Restore correct operation of bt_mca.mdodd1999-10-091-14/+26
| | | | | | | | - Work around a problem not yet solved in the tree (but solved in mine.) device_get_ivars() should never be cast to a struct resource_list * The solution, under review, involves the creation of a device_get_resource_list() function. More later.
* Sync with recent changes to the MCA bus code. Resource IVARS wentmdodd1999-10-081-17/+9
| | | | away.
* mca_add_{iospace,mspace}() no longer takes a 4th arg.mdodd1999-09-261-1/+1
|
* This adds support for the Buslogic/Bustek/Storage Dimensionsmdodd1999-09-031-0/+324
| | | | | | | | | | | MCA SCSI adapters. bt_mca.c is going to live in sys/dev/buslogic instead of sys/dev/mca as per a conversation with Peter, Doug and Mike. Thanks to Andy Farkas <andyf@speednet.com.au> for being such a good sport and doing all the testing for me (as I don't actually own one of these cards. Yet.)
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Properly set the alignment argument to bus_dma_tag_create(). If wegibbs1999-08-164-12/+12
| | | | don't care about the alignment, set it to 1, meaning single byte alignment.
* Move the specification of EDGE/LEVEL triggered interrupts tomdodd1999-08-011-2/+7
| | | | | | | | | | | | | | | | | eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE). The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars. This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach. Also, print out 'edge' or 'level' in the IRQ announcement message. Reviewed by: dfr
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirepeter1999-07-031-5/+1
| | | | files. config will leave the whole file out if configured to do so.
* 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
|
* Poll for interrupts in bt_cmd in case they are masked. A completinggibbs1999-05-231-4/+14
| | | | | | | mailbox command will block the completion of an immediate command, so we must service them for our command to succeed. PR: 11799
* 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-084-8/+6
| | | | to the BUS_SETUP_INTR call.
* Add a number of interrelated CAM feature enhancements and bug fixes.ken1999-05-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: These changes will require recompilation of any userland applications, like cdrecord, xmcd, etc., that use the CAM passthrough interface. A make world is recommended. camcontrol.[c8]: - We now support two new commands, "tags" and "negotiate". - The tags commands allows users to view the number of tagged openings for a device as well as a number of other related parameters, and it allows users to set tagged openings for a device. - The negotiate command allows users to enable and disable disconnection and tagged queueing, set sync rates, offsets and bus width. Note that not all of those features are available for all controllers. Only the adv, ahc, and ncr drivers fully support all of the features at this point. Some cards do not allow the setting of sync rates, offsets and the like, and some of the drivers don't have any facilities to do so. Some drivers, like the adw driver, only support enabling or disabling sync negotiation, but do not support setting sync rates. - new description in the camcontrol man page of how to format a disk - cleanup of the camcontrol inquiry command - add support in the 'devlist' command for skipping unconfigured devices if -v was not specified on the command line. - make use of the new base_transfer_speed in the path inquiry CCB. - fix CCB bzero cases cam_xpt.c, cam_sim.[ch], cam_ccb.h: - new flags on many CCB function codes to designate whether they're non-immediate, use a user-supplied CCB, and can only be passed from userland programs via the xpt device. Use these flags in the transport layer and pass driver to categorize CCBs. - new flag in the transport layer device matching code for device nodes that indicates whether a device is unconfigured - bump the CAM version from 0x10 to 0x11 - Change the CAM ioctls to use the version as their group code, so we can force users to recompile code even when the CCB size doesn't change. - add + fill in a new value in the path inquiry CCB, base_transfer_speed. Remove a corresponding field from the cam_sim structure, and add code to every SIM to set this field to the proper value. - Fix the set transfer settings code in the transport layer. scsi_cd.c: - make some variables volatile instead of just casting them in various places - fix a race condition in the changer code - attach unless we get a "logical unit not supported" error. This should fix all of the cases where people have devices that return weird errors when they don't have media in the drive. scsi_da.c: - attach unless we get a "logical unit not supported" error scsi_pass.c: - for immediate CCBs, just malloc a CCB to send the user request in. This gets rid of the 'held' count problem in camcontrol tags. scsi_pass.h: - change the CAM ioctls to use the CAM version as their group code. adv driver: - Allow changing the sync rate and offset separately. adw driver - Allow changing the sync rate and offset separately. aha driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. ahc driver: - Allow setting offset and sync rate separately bt driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. NCR driver: - Fix the ultra/ultra 2 negotiation bug - allow setting both the sync rate and offset separately Other HBA drivers: - Put code in to set the base_transfer_speed field for XPT_GET_TRAN_SETTINGS CCBs. Reviewed by: gibbs, mjacob (isp), imp (aha)
* Remove bt_softcs. It is no longer used.imp1999-05-052-5/+2
|
* 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.
* Typo, use SYS_RES_IRQ when releasing the irq resource, not SYS_RES_IOPORT.peter1999-04-241-2/+2
|
* ahc_pci.c:gibbs1999-04-231-3/+3
| | | | | | | | | Convert to new bus and bus dma. Use latest PCI API. bt_pci.c: Fix a few bugs in how resourses are released left over from when this driver was converted to new bus.
* bt.c:gibbs1999-04-232-10/+18
| | | | | | Simplify some inline functions. btreg.h: Correct a comment.
* Make bt driver work on eisa again.dfr1999-04-201-2/+2
| | | | Submitted by: Matthew N. Dodd <winter@jurai.net>
* 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!)
* Check bus_setup_intr() as a seatbelt...peter1999-04-181-2/+7
|
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-185-419/+504
| | | | | | | | | 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>
* Improve bt_cmd() so that it has a better chance of working when theregibbs1999-04-072-61/+84
| | | | | | | are pending I/O transactions. It is not clear that is works 100% of the time under SMP, but since the bt_cmds() that are sent after other CPUs are started are not critical, the driver will function until I can figure out why this is the case.
* failled spell-checkphk1999-04-061-2/+2
|
* Fix a typo.gibbs1999-03-231-2/+2
| | | | | PR: 10722 Submitted by: Chris Costello <chris@holly.dyndns.org>
* Add bt_port_probe() a routine shared by the EISA and ISA probe code togibbs1999-03-082-15/+87
| | | | | | | determine IRQ and DRQ information. Fix a bug that would cause us to attempt to retrieve extended sync rate information on cards/firmware revs that do not support that command.
* Ask the card where our interrupt is instead of attempting to use the EISAgibbs1999-03-081-85/+31
| | | | | | config info. On early revision cards (742a), the EISA register space, other than the location used to determine the address of the card's main command ports, is write only.
* 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.
* probe function changed from returning char * to const char *.dillon1998-12-141-3/+3
|
* Remove unsued variable.gibbs1998-12-111-9/+12
| | | | | | | | | If we are not transfering any data, use a non S/G ccb type that doesn't return residual information. It seems that some firmware revisions dislike S/G ccbs with 0 length S/G lists. Correct bt_cmd() so that we always honor command status that was latched by our interrupt routine while polling for completion..
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-5/+5
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Move a diagnostic behind "if (bootverbose)".gibbs1998-11-131-5/+7
|
* Noop Commit - Change was in last revision.gibbs1998-11-101-1/+1
| | | | | | If the next available mailbox is not in the free state, print a warning and handle the condition as a temporary resource shortage. The condition should never happen, but we shouldn't panic since recovery is possible.
* Convert to change in ISA compatiblity port handling in the base bt driver.gibbs1998-11-101-3/+3
|
* Fix probes when a port address is specified.gibbs1998-11-103-47/+115
|
* Do not disable the ISA compatibility window if it is the same value asgibbs1998-10-303-10/+22
| | | | that set for our PCI IO address space. This can happen on the BT-946.
* -Wunused cleanup.gibbs1998-10-151-4/+2
| | | | Submitted by: Poul-Henning Kamp <phk@freebsd.org>
* Honor CAM_TAG_ACTION_NONE.gibbs1998-10-151-3/+4
|
* 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
* Hook up ahapoll so that dumps, synchronize cache commands or any othergibbs1998-10-091-1/+2
| | | | command that comes in through xpt_polled_action works correctly.
* Removed unused include of "ioconf.h" again. The CAM changes made ioconf.hbde1998-09-241-3/+1
| | | | empty but regressed to including it here.
* On wide cards with firmware revisions < 5.06L, we have to infer thatgibbs1998-09-201-1/+17
| | | | | wide targets are in fact running wide since the "setup info" command for these revisions does not fill out the wide negotiation bits.
* Use %p with (void *) casts to print pointers with printf.gibbs1998-09-171-6/+6
|
* Fix printf format bugs.gibbs1998-09-161-7/+9
|
* Mylex/Buslogic MultiMaster SCSI-Host Adapter Driver for CAM.gibbs1998-09-155-0/+3755
OpenPOWER on IntegriCloud