martin
3183166c6c
When issuing a non-dma command, make sure to set the "remaining length of
...
command to be transfered via dma" (sc_cmdlen) to zero upfront, otherwise we
might get confused on command completition interrupt (no dma active but still
data left to transfer).
2012-06-18 21:23:56 +00:00
mrg
b6b8ac0580
take the kernel lock in functions called from attach*().
2012-03-10 20:54:20 +00:00
jakllsch
58cf20f9d6
simple_lock to mutex conversion.
2011-07-31 18:39:00 +00:00
joerg
258624699d
Fix memset usage.
2011-07-04 16:06:17 +00:00
tsutsui
c67601b868
Whitespace nits.
2009-09-07 13:31:44 +00:00
tsutsui
531b631d68
Some backends may use ncr53c9x_abort(), so remove static declaration from
...
the function and explicitly declare it in ncr53c9xvar.h. Noticed by he@.
2009-09-02 10:34:04 +00:00
tsutsui
6c957c4802
Uncomment /*static*/ function declarations,
...
and #ifdef'ed out an unused function.
2009-08-29 06:05:39 +00:00
martin
cb13eee90c
Add missing braces - patch from Kurt Lidl in PR port-vax/41314.
2009-05-01 03:18:20 +00:00
christos
5b61e403a2
don't play with timevals directly, use the macros. From OpenBSD
2008-05-13 22:16:27 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
tsutsui
4f55dadd88
Fix another typo.
2008-04-13 12:59:10 +00:00
mlelstv
941dd022e4
fix format strings for DIAGNOSTIC output
2008-04-13 12:22:13 +00:00
tsutsui
78a1d236b6
Split device_t/softc for MI ncr53c9x and some related devices,
...
with various cleanup.
2008-04-13 04:55:52 +00:00
cegger
7088512994
use aprint_*_dev and device_xname
2008-04-08 12:07:25 +00:00
martin
c51526f373
Back out accidently commited part of previous
2007-10-01 12:54:39 +00:00
martin
163215473e
Do not stop callouts for polled commands.
2007-10-01 09:43:00 +00:00
tsutsui
37e53f693f
KNF, ANSIfy, TAB/space cosmetics.
2007-08-20 12:32:30 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
ad
59d979c5f1
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
...
the pool's lock.
2007-03-12 18:18:22 +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
itohy
8e90b03622
Cancel commands and free allocated resources on detach.
2007-01-09 12:53:12 +00:00
itohy
3e588075d6
Stop callout on detach.
2006-12-28 03:13:54 +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
christos
b64edcaded
fix empty if
2006-10-04 15:53:24 +00:00
kardel
de4337ab21
merge FreeBSD timecounters from branch simonb-timecounters
...
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00
perry
3d4ed1fbc7
__inline__ -> inline
2005-12-24 23:41:33 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
tsutsui
830c0db95b
NCRDMA_SETUP() should be called before NCR_SET_COUNT() and NCRCMD_DMA command
...
in ncr53c9x_select(). Tested with esp on SS1+ and sun3/80, and pcscp at pci.
2005-11-06 10:31:46 +00:00
christos
f381db6045
- add missing const
...
- fix variable shadowing
- remove unneeded casts
2005-05-30 04:43:46 +00:00
perry
f31bd063e9
nuke trailing whitespace
2005-02-27 00:26:58 +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
bouyer
a480086121
pool_prime() the ncr53c9x_ecb pool with one element (this will cause one page
...
to be allocated anyway). scsipi can deal with resources shortage, but if this
pool goes down to 0 pages we can deadlock with the scsipi_xfer, vnode or
inode pools.
Also update a comment, despite resources accounting we can return
ATAPTER_RESOURCES_SHORTAGE here.
2004-09-10 23:44:29 +00:00
pk
4b19351352
On reset, clear state flags and the msgout queue and notify the upper layer.
2004-05-03 12:25:34 +00:00
wiz
c5670263e0
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 11:07:44 +00:00
jdolecek
467746e275
avoid strong words; use 'screw' instead
2003-11-01 17:00:49 +00:00
simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
pk
9957c167e0
Print more diagnostic info on the occassions `unexpected disconnect' and
...
`invalid state'.
2003-07-25 06:40:29 +00:00
petrov
7d83b6157f
Comment out debug printf.
2003-04-16 18:53:50 +00:00
pk
557a5199d2
Make this driver MP-safe by using a single spin lock to guard all its entrances.
2003-02-04 20:05:11 +00:00
pk
ac9d761168
The introduction of FAS366 support annihilated the `reselect-while-selecting'
...
workaround for the ESP100 variant.
2003-01-30 11:03:45 +00:00
petrov
94f3e9b824
Reset the driver on scsibus reset.
2002-10-06 21:35:33 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
mycroft
5031fe3837
Update copyright.
2002-09-25 06:23:29 +00:00
mycroft
04f09a4b0c
Additional fixes to make 16 targets work on FAS366.
2002-09-25 05:19:20 +00:00
mycroft
06c9e05c76
Oof, this driver needs a lot more work to support 16 targets.
2002-09-24 13:29:44 +00:00
mycroft
b200651116
Tell the scsibus layer we have 16 targets on the FAS366.
2002-09-22 19:05:11 +00:00
petrov
dc81a805ea
Use driver reset in case 'internal state mismatch'.
2002-09-16 21:49:15 +00:00
petrov
a413e88543
Accept WDTR from device(based on John Heasley patch for SCSI3 drive).
...
Do not define NCR53C9X_DEBUG.
2002-08-26 06:23:32 +00:00