summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/adwlib.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The only thing worse than trailing whitespace is leading spaces instead of tabs.krw2020-08-081-9/+9
|
* Nuke unused struct scsi_link members of adapter softc's where thekrw2020-07-221-2/+1
| | | | driver successfully compiles on one or more of amd64, i386, hppa.
* Trailing whitespace.krw2020-02-181-16/+16
|
* Nuke softc field 'sc_adapter" and just point sc_link's at shiney newkrw2020-02-071-2/+1
| | | | 'adw_switch' like all the cool kids do.
* iopoolification. Tested on my Advansys ASP-3940U2W. Various eyeskrw2010-10-031-1/+3
| | | | including miod@, oga@, dlg@, matthew@.
* Stop maintaining internal queues of received scsi_xfer structures.krw2008-11-261-4/+1
| | | | | We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers.
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* First round of __P removal in sysmillert2002-03-141-9/+9
|
* Remove local defines for SCSI status codes and use those nowkrw2001-11-111-16/+1
| | | | defined in scsi_all.h.
* Move offsetof define into sys/param.hcsapuntz2001-04-061-3/+1
|
* Typo police:krw2001-02-221-33/+33
| | | | | | | | Replace last ADV/ASC/Adv, etc. uses with ADW/Adw as appropriate. Delete comments about non-existant structure members, correct references to existing structure members to use correct structure names or typedefs.
* This update should cause the adw driver to:krw2000-12-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - actually check the returned scsi_status value and act accordingly instead of ALWAYS returning XS_NOERROR - always return the scsi status value in xs->status for completed requests - no longer reference ccb->xs and ccb->dmamap_xfer if an 'unallocated' ccb is encountered - immediately remove the ccb adw_isr_callback is working on from the pending list, leaving it in limbo until it is put on the free list just before any return - 'freeze' a target only when a scsi_status indicating it is busy is encountered, and 'thaw' a target whenever a bus reset is done or a request completes - check done_status, host_status and scsi_status in that order as is done in the linux driver and was done here until very recently, which seems cleaner to me. But opinions may vary. The only behaviour change that should result is that done_status of QD_NO_STATUS no longer causes a check of host_status values, but is an error causing a XS_DRIVER_STUFFUP - produce a more general error message with actual values for host_status, scsi_status and done_status values, with references to adw(4) for more details on the error where appropriate (man page update coming) - take what seems like appropriate action for all known host_status, scsi_status and done_status values with more use of XS_RESET where appropriate - use adw_reset_bus() instead of AdwResetSCSIBus() in adw_async_callback() so pending requests are requeued and devices left unfrozen when this happens - print an error message with the code # when adw_async_callback is called with an unknown code.
* sync to NetBSD:krw2000-07-221-44/+44
| | | | | | | | | | | | | | | | | - remove #include <vm/vm_param.h> and #include <vm/pmap.h> as they are already included with #include <vm/vm.h> - more Adv -> Adw, ADV -> ADW adjustments & other minor formatting corrections plus: - put 'Carrier Ready failure!' warning message inside #ifdef ADW_DEBUG/#endif as it appears under heavy load but is nothing but a reminder the card was too busy to notice a 'tickle' from the driver.
* Sync adw files with (almost) latest NetBSD versions:krw2000-06-291-397/+257
| | | | | | | | | | | | | | | | | | | adw.c synched with v1.23 (from v1.14) adw.h v1.9 ( v1.5 ) adwlib.c v1.17 ( v1.7 ) adwlib.h v1.13 ( v1.7 ) adwmcode.c v1.5 ( v1.2 ) adwmcode.h v1.5 ( v1.2 ) microcode for cards is updated to latest version, loss of carrier problems are solved in a more robust manner than before, lots of code cleanup. first support for upcoming U3W cards added, as a result of which the driver is now too large for RAMDISK and has been moved to RAMDISKB. Most of the work done by dante@ NetBSD.
* add $ tagkrw2000-04-291-0/+1
|
* support new u2w cards; dante@mclink.it, merged by kwesterback@home.comderaadt2000-02-051-218/+393
|
* Add adw device driver, from NetBSD.downsj1998-11-171-0/+1093