Commit Graph

40 Commits

Author SHA1 Message Date
tsutsui
b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
tsutsui
8f9452f5e9 Change my mail address to netbsd.org one. 2008-05-03 05:21:25 +00:00
tsutsui
11da9127f7 Split device_t/softc. 2008-04-12 08:21:19 +00:00
cegger
7088512994 use aprint_*_dev and device_xname 2008-04-08 12:07:25 +00:00
ad
a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
christos
fe6055587f void casts to functions whose return values are ignored. 2006-05-21 23:56:09 +00:00
christos
1882f76728 Coverity CID 1099: Don't deref NULL if !DIAGNOSTIC 2006-04-14 20:51:41 +00:00
rtr
d6ba186243 avoid deref of NULL
coverity 2436 / run 6
2006-03-19 06:22:45 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
christos
f381db6045 - add missing const
- fix variable shadowing
- remove unneeded casts
2005-05-30 04:43:46 +00:00
thorpej
df9803ce96 Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.
2005-02-21 00:29:06 +00:00
tsutsui
1d25696d75 u_intNN_t -> uintNN_t 2005-01-02 12:22:18 +00:00
thorpej
3e22338d60 When checking the CDB length, check against the field in the SCB
that we're actually storing it to.

XXX Should be re-examined; this is not actually a hardware-constrained
size with this driver.
2004-12-07 14:48:58 +00:00
tsutsui
ae6239f109 Use ANSI function decls. 2004-09-25 09:46:17 +00:00
wiz
c5670263e0 Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 11:07:44 +00:00
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