Commit Graph

33 Commits

Author SHA1 Message Date
drochner
c8bb344c69 put some strange text within an "#if 0"'d section into a comment
additionally to appease picky parsers
2009-08-18 11:15:43 +00:00
bouyer
7693ded053 Disable completely bogus DIAGNOSTIC check. 2009-07-31 20:47:25 +00:00
cegger
b8169823d2 use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
2009-05-12 08:22:59 +00:00
cegger
a591bc88dd struct device * -> device_t, no functional changes intended. 2009-05-06 10:34:32 +00:00
cegger
59717d7121 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-06 09:25:14 +00:00
joerg
0528da675e Unbreak twa after the last two commits. 2008-07-27 13:10:11 +00:00
gmcgarry
499a932afa Revert unintentional whitespace changes. From simonb. 2008-06-25 06:22:01 +00:00
gmcgarry
c1cd5c98e9 Ragge says that 6.5.4 clause 2 says:
"Unless the type name specifies a void type, the type name shall specify
qualified or unqualified scalar type and the operand shall have scalar
type."

Therefore, don't cast to a union.
2008-06-24 10:20:41 +00:00
joerg
d2768df2f3 Mention 64bit support once during boot and not every time the controller
is reset.
2008-06-08 14:02:25 +00:00
tsutsui
1f459d82b5 Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00
joerg
27acbcf978 Remove #if 0'd code for flashing firmware. It was never active and even
the FreeBSD version of the driver removed it.
2008-05-10 14:36:02 +00:00
joerg
1fe12cbbc8 Add support for 3ware 9650 and 9690 based on patches contributed by
Wasabi Systems.

Fix bus_dma usage to fix write operations in the light of bounce buffers.
Use the 64bit bus_dma tag for 9550+ to avoid bouncing buffers.
2008-05-08 11:27:54 +00:00
joerg
d72a9bc7fd First part of twa(4) improvements:
- more/better diagnostic messages
- dynamically allocate units in preparation for 9650+ support
- better distribute queue slots over disks according to size
- drain large request queue on 9550
- keep track of resets, will be needed for 9650.

This changes have been contributed by Wasabi Systems.
2008-05-07 17:47:20 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger
9d57c80079 use aprint_*_dev and device_xname 2008-04-10 19:13:36 +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
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill
648920a00e Size is the third argument to memset, not the second. 2006-10-11 05:12:06 +00:00
manu
e057d5fcd9 Tweak the twa(4) driver so that 3ware command line utility works with it.
This includes:
- fixing various structure definitions so that the ioctl parameter match
- adding a hw.twa*.driver_version sysctl
- do not refuse multiple device openings, as the management tool will do it.
  I'm not sure we are safe. FreeBSD allows multiple openings, and use the
  open flag only when an attempt to detach the device is done.
2006-09-23 22:16:35 +00:00
christos
bbf2deb35f - add missing initializer
- inline comes first
2006-09-03 07:02:54 +00:00
christos
dace278549 PR/34292: Aaron Hodgen: twa driver incorrectly reports drive size/description 2006-08-26 19:35:51 +00:00
christos
35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
bouyer
ae11e4655e Add some missing splvm()/splx() around uvm_km_* I noticed. 2006-07-30 10:49:48 +00:00
wrstuden
7cfa6f224f Updated driver, contributed by Jordan Rhody of Wasabi Systems.
Main fix is to improve reliability under heavy load and frequent
status monitoring.
2006-07-29 00:13:57 +00:00
simonb
8c6707812d Use c99 uintN_t. 2006-07-11 00:25:42 +00:00
simonb
f0b22f966f Sprinkle some KNF. Still a bit more needed... 2006-07-11 00:18:04 +00:00
simonb
a4c494b1d1 Remove some incorrect licencing goop. 2006-07-10 23:22:28 +00:00
simonb
52b60673ac Update for timecounters (s/time.tv_sec/time_second/). 2006-07-10 23:20:43 +00:00
wrstuden
d6dd729f42 Add $NetBSD: ids, which work better than $netbsd: ones. 2006-05-25 01:37:08 +00:00
wrstuden
b949192d0f Style changes from simonb at wasabisystems dot com:
Use config_stdsubmatch() instead of our own submatch function.
  Use "__inline" in header files and "inline" in .c files.
  Make some local function static.
2006-05-25 00:21:45 +00:00
wrstuden
a4dd1e2635 3ware 9000 driver, contributed by Wasabi Systems and written
by Jordan Rhody (based on the FreeBSD driver).

Contributed in NetBSD PR 33364.
2006-05-24 23:44:28 +00:00