simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
simonb
276fd1665c
The Double-Semi-Colon Police.
2003-01-20 05:29:53 +00:00
jmc
29a7ff6364
Put back MSG_IDENTIFY_LUNMASK (renamed to just be within the IHA namespace.
...
The definitions were not the same between the scsi_messages file and this
definition so simply removing it here and letting the other one be used
results in incorrect behavior (regardless of whether it made the code
compile....)
2002-12-08 01:09:34 +00:00
tsutsui
2388751cea
Sync with copyright verbiage update of OpenBSD's iha(4).
2002-11-14 17:07:42 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
bouyer
e5727031fb
Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
...
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
tsutsui
f54d57e135
Remove an arg name in prototype declaration.
2002-03-15 12:57:21 +00:00
tsutsui
0f5d20e20b
- rename struct iha_scsi_req_q -> struct iha_scb
...
- reorder some functions
- some more cosmetics
2002-02-09 15:13:00 +00:00
tsutsui
7d563fd40e
malloc() + memset() -> malloc() with M_ZERO flag
2001-12-16 04:17:02 +00:00
tsutsui
689089f7a9
- Use MI ADAPTER_REQ_SET_XFER_MODE callback.
...
- Nuke some magic numbers.
2001-11-18 14:33:10 +00:00
tsutsui
11a1ddc5dd
- make sure to call bus_dmamap_unload() even after request sense
...
- fix usage of scb flags
- misc cleanup
2001-11-17 21:26:12 +00:00
lukem
a4bae8b066
add/cleanup RCSID
2001-11-13 13:14:31 +00:00
tsutsui
9cb10f82f8
Calculate offsets of sglist dinamically rather than use an static array
...
because PAGE_SIZE is not constant on some ports.
2001-09-29 14:23:37 +00:00
tsutsui
3339a3e525
Remove iha_minphys() and use minphys() instead.
2001-09-27 15:26:57 +00:00
tsutsui
1f1c7b96d8
Fix some comments and remove an unused define. Partially from OpenBSD.
2001-07-27 16:16:34 +00:00
tsutsui
aa9c31f0c3
Pull up some changes from OpenBSD's iha.c rev 1.6:
...
- rename tul_* functions/variables iha_* for consistency
- disable updating EEPROM routine, which does not work anyway
- make iha_rate_tbl[] const
2001-07-27 15:51:14 +00:00
tsutsui
5a7161cf2a
Pull up some changes from OpenBSD's iha.c rev 1.5:
...
- minor code cleanups
- rename some functions for better consistensy/clarity
- consolidate extended message generation into new function
- a couple of minor code clarifications to eliminate extra return
statements and make absolutely sure actscb is NULL during a reselect
2001-07-27 15:10:56 +00:00
thorpej
623f83a793
Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
2001-07-19 16:25:23 +00:00
thorpej
0884f20bf7
bzero -> memset
2001-07-07 16:13:44 +00:00
thorpej
025decbccb
Don't clear a callout on a scsipi_xfer that has been scsipi_done()'d.
2001-06-07 03:44:00 +00:00
tsutsui
15f8692183
Make some functions __inline.
2001-06-05 12:42:44 +00:00
tsutsui
bcdd082840
Add a driver for the Initio INIC-940/950 PCI SCSI controllers.
...
Based on OpenBSD's iha driver, and modified some structures by me.
Tested on arc, i386 and macppc.
2001-06-03 13:43:45 +00:00