summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/iha.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Shuffle things around so that sc->sc_link initialization iskrw2020-07-021-1/+2
| | | | done just before config_found(), as all other drivers do.
* If the adapter card needs to keep track of its own id on the bus, orkrw2020-07-011-1/+2
| | | | | | | | | | | the width of the bus it is providing, it should rely on info in its softc. i.e. not on info in the prototype scsi_link that is passed out for other bits of the kernel to fiddle with. Most drivers already do this. Make it so for the laggards iha(4) and siop(4). Actually use the existing softc value in wd33c93.c. No intentional functional change.
* Trailing whitespace is icky. Some KNF whitespace tweakskrw2020-02-181-2/+2
| | | | tossed it too.
* *_minphys() functions that cap i/o sizes at a value larger than thekrw2020-02-151-2/+1
| | | | | | | | | | | | | | | value minphys() uses (MAXPHYS) are pointless since minphys() is always called after the *_minphys() function. MAXPHYS (64 * 1024) == 16 * 4096. 4096 is the smallest PAGE_SIZE we have. So a *_minphys() function that caps the i/o size at N * PAGE_SIZE where N is > 16 is just wasting cycles. Nuke adv_minphys (40 * PAGE_SIZE), adw_minphys (254 * PAGE_SIZE), ahc_minphys (128 * PAGE_SIZE), ahd_minphys (128 * PAGE_SIZE), ami_minphys (26 * PAGE_SIZE), cac_minphys (65535 (!!!) * 512), iha_minphsy (32 * PAGE_SIZE), trm_minphys (31 * PAGE_SIZE), twe_minphys (62 * PAGE_SIZE). uha_minphys (32 * PAGE_SIZE),
* Delete unused scsi_adapter fields of softc's.krw2020-02-061-2/+1
|
* iopoolification. Tested on my Initio INIC-950. Various eyes includingkrw2010-10-031-1/+4
| | | | miod@, oga@, dlg@, matthew@.
* Change the scsi_cmd function member of scsi_adapter from int tokrw2010-03-231-2/+2
| | | | | | | | | | | | | void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
* Extend the scsi_adapter minphys() callback to take a struct scsi_link *miod2009-02-161-2/+2
| | | | | | as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
* Rename a few defines to avoid namespace pollution. The only one used was 'READ' which is now 'NVREAD'.krw2004-01-191-4/+4
| | | | Potential conflict with SCSI 'READ' spotted by tdeval@.
* typos from Tom Cosgrove;jmc2003-10-211-5/+5
| | | | | | | | Tom: I did not commit a couple of your changes. i did not include some punctuation fixes (full stops, etc.) mnemorable -> mnemonic: i decided memorable was probably better instrunctions -> instruction: i kept the plural
* As long as I am here pull in some useful changes from NetBSD.krw2003-03-301-10/+10
| | | | | | 1) Eliminate some magic numbers. 2) Eliminate some double semi-colons. 3) Rename iha_scsi_req_q to iha_scb.
* Another chunk of bus_dma fixes. May actually approach correctness now.krw2003-03-291-20/+17
| | | | | | | | | | | | | | | | | | | | | | 1) Actually map and sync scatter gather list that is also DMA'd. 2) Actually map and sync request sense buffer. 3) Actually POSTREAD/WRITE sync data buffer after I/O, rather than skipping it because the I/O was successful and no chars were left to xfer. 4) Eliminate extra fields, clarify some names, reorder fields to clarify their use. 5) Put common scatter gather preparation logic into separate function. 6) If insertion of request sense command fails, complete active command with XS_SENSE, but zero'd sense data. 7) Eliminate physical address arithmetic as much as possible, centralizing remaining manipulations in code actually sending addresses to adapter.
* Rework iha copyight verbiage to make clear what needs to be clear forkrw2002-11-141-19/+9
| | | | | | it to remain in the tree. With agreement of Initio. ok deraadt@
* First round of __P removal in sysmillert2002-03-141-5/+5
|
* Remove local defines for SCSI status codes and use those nowkrw2001-11-111-7/+1
| | | | defined in scsi_all.h.
* Switch everything to the new bus_dmamap_sync API.art2001-11-051-11/+1
| | | | | Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
* Prepare for transition to 5-parameter bus_dmamap_sync() by creating andkrw2001-08-261-3/+8
| | | | | | | | | | using *_bus_dmamap_sync() defines that are defined appropriately depending on __HAS_NEW_BUS_DMAMAP_SYNC. Most of the code changes are simple reversions to the original NetBSD code. Slip in a siop_script_sync() instead of a manually done code section.
* Change references to inic-950 to inic-940/950 to reflect chipskrw2001-07-131-8/+8
| | | | | | | | | | | | | | | actually supported. Update copyright to include 2001. Fold iha_se2_rd_all() into iha_read_eeprom(), eliminating magic number 31 at the same time, calculating correct offset of checksum at run time instead. Eliminate static global variable iha_nvram in favour of dynamic variable in iha_init_tulip(), which is only place it is used. Rectify a few typos in comments.
* Remove static'ness of functions in line with normal OpenBSDkrw2001-07-131-6/+4
| | | | | | | | | | | | | preferences. Rename tul_* functions/variables iha_* for consistancy, since all are now visible. As updating the EEPROM did not work, don't try. Remove now unused static dftNvram variable, and functions used only in trying to write it to EEPROM. Make iha_rate_tbl a const.
* Use offsetof() from sys/param.h, not a local define.krw2001-07-101-3/+1
|
* Fix incorrect logic 'optimization' so that sync is negotiated even ifkrw2001-07-091-2/+1
| | | | | | | wide is not. Now my CD drives on the narrow channel of the INI-9100UW negotiate to the same configuration they do on other cards.
* Use <scsi/scsi_message.h> defines rather than homegrown ones.krw2001-02-081-38/+2
|
* Add support for Initio INI-91xx SCSI Cardskrw2001-01-231-0/+495