John Baldwin
1e8b33eb23
#ifdef a local variable only used in debugging code.
...
Reviewed by: -scsi
2001-01-24 01:46:57 +00:00
John Baldwin
e2138fee20
Const'ify cam_sim.sim_name to quiet warnings.
...
Reviewed by: -scsi
2001-01-24 01:46:18 +00:00
Cameron Grant
1a8de399e7
don't grope around inside snd_dbuf structures as they will change in future
2001-01-24 01:36:15 +00:00
Cameron Grant
2707da0758
fix certain cards failing to attach
...
Submitted by: Russell Cattelan <cattelan@thebarn.com>
2001-01-24 01:27:31 +00:00
Cameron Grant
03d18442f6
fix blocksizing for playback, implement blocksizing for record
2001-01-24 01:22:53 +00:00
Cameron Grant
7ed9700b1f
some cosmetics, changed channel setup and revamped irq handling - ignore
...
repeated interrupts
2001-01-24 01:20:04 +00:00
Cameron Grant
6e64c174bd
prevent excessively small buffer sizes resulting in hundreds of irqs per
...
second
2001-01-24 01:15:50 +00:00
John Baldwin
0d6d6aa373
Don't grab Giant when calling kmem_alloc/kmem_free as this is just
...
encouraging other people to follow the same practice. If this is going
to be done, then it should be done inside of those two functions instead.
2001-01-24 00:36:03 +00:00
John Baldwin
e5690aadaa
Proc locking.
2001-01-24 00:35:12 +00:00
John Baldwin
a914fb6b27
- Proc locking.
...
- Protect calcru() with sched_lock.
2001-01-24 00:33:44 +00:00
John Baldwin
762dba203e
- Proc locking.
...
- Protect calcru() with sched_lock.
2001-01-24 00:28:07 +00:00
John Baldwin
611d940790
Proc locking.
2001-01-24 00:27:28 +00:00
John Baldwin
cfb4c0b4f9
Proc locking to protect p_ucred while we obtain additional references.
2001-01-24 00:26:19 +00:00
John Baldwin
1e3e44f22f
- Proc locking.
...
- Use FreeBSD stackgap_init() semantics.
- Adjust some #ifdef's to hide unused variables.
2001-01-24 00:24:57 +00:00
John Baldwin
fdfdfb786a
- Proc locking.
...
- Use NULL instead of 0.
2001-01-24 00:23:30 +00:00
Matt Jacob
df6c100d51
"Rejected with status" is better than "Rejected for status".
2001-01-24 00:14:37 +00:00
John Baldwin
172c0b6aec
Use selrecord() instead of doing the work ourselves.
2001-01-24 00:06:26 +00:00
John Baldwin
92ad4dfbd1
Make the device name in an isa_device a const char * instead of a char *
...
to silence cast-qual warnings.
2001-01-24 00:05:13 +00:00
John Baldwin
401cee34d4
Use queue macros.
2001-01-24 00:01:42 +00:00
John Baldwin
0f483a016c
Proc locking.
2001-01-23 23:59:38 +00:00
John Baldwin
1070c735ff
- Use 'p' instead of 'curproc' for the namei lookup as this is what
...
other image activators use.
- Proc locking.
2001-01-23 23:59:30 +00:00
John Baldwin
c797833a37
Proc locking.
2001-01-23 23:51:56 +00:00
Matt Jacob
fad5d2b1f8
Hmm. This must be a first. The man page was updated *before* the source.
...
Correct some slight inaccuracies in the man page.
2001-01-23 23:24:48 +00:00
Matt Jacob
9fa6ccfb5e
Allow fxp to configure in I/O space if the user wants it and specifies
...
an override as a loader settable variable (fxp_iomap). fxp_iomap is
a bitmap of fxp units that should be configured to use PCI I/O space
in stead of PCI Memory space.
Reviewed by: Kees Jan Koster <dutchman@tccn.cs.kun.nl>, dg@freebsd.org
2001-01-23 23:22:17 +00:00
John Baldwin
157403fff0
Proc locking, mostly protecting p_ucred while obtaining additional
...
references.
2001-01-23 22:41:15 +00:00
John Baldwin
d19a727628
- Remove unused header include.
...
- Use queue macros.
2001-01-23 22:38:38 +00:00
John Baldwin
1aab03a584
Proc locking to protect p_ucred while we obtain an additional reference.
2001-01-23 22:38:15 +00:00
John Baldwin
f5343b3219
- FreeBSD doesn't have an abortop vnop as far as I can tell, so #ifdef
...
references to the hpf op out.
- Remove a lockdestroy() on a non-existent variable.
2001-01-23 22:37:30 +00:00
John Baldwin
1c827e2d15
Tag unused functions with __unused.
2001-01-23 22:24:26 +00:00
John Baldwin
0e9f2d667c
Proc locking to protect p_ucred while we obtain another reference to it.
2001-01-23 22:23:25 +00:00
John Baldwin
4957d1b4cb
Use suser(9) instead of checking p->p_ucred->cr_uid directly.
2001-01-23 22:22:25 +00:00
John Baldwin
6db2e28142
Remove a prototype for an unused and undefined debugging function.
2001-01-23 22:21:14 +00:00
John Baldwin
399fde35e8
Tag unused functions with __unused.
2001-01-23 22:18:41 +00:00
John Baldwin
b787813727
- Move stg_card_intr()'s prototype and definition inside appropriate
...
#ifdef's as it is is only used on older versions of FreeBSD.
- #ifdef a local variable only used on older versions of FreeBSD.
2001-01-23 22:18:07 +00:00
Justin T. Gibbs
98ba52eadc
When flipping the first entry in the qinfifo with the "next queued SCB",
...
we must also inform the card of this change. Otherwise the sequencer
will traverse a corrupt list of SCBS. The side effects of this problem
were unknown SCBs completing in the qoutfifo or worse yet, panics due
to sequencer interrupts that referenced what, to the kernel, were invalid
SCB ids.
2001-01-23 22:17:03 +00:00
John Baldwin
4a08af58fe
Relocate the 'hwfuncs' functions below the inlined functions they attempt
...
to call so that the other functions can actually be inlined.
2001-01-23 22:16:18 +00:00
John Baldwin
ec447af191
- Proc locking.
...
- Use queue macros.
- Use NULL instead of 0 for pointers.
Reviewed by: des
2001-01-23 22:13:07 +00:00
John Baldwin
f5f7ddc668
Move nsp_card_intr()'s prototype and definition inside the appropriate
...
#ifdef's as it is only used in older versions of FreeBSD.
2001-01-23 22:09:04 +00:00
John Baldwin
acf5cad5aa
Move the definition of nsp_start_timer() earlier in the file before it is
...
called so that it can be inlined.
2001-01-23 22:08:21 +00:00
John Baldwin
32c98125c9
The ncv_card_intr function is only used in older versions of FreeBSD, so
...
move its prototype and definition inside the appropriate #ifdef's.
2001-01-23 22:06:10 +00:00
John Baldwin
5d3e8edac4
Use the 'slp' local variable that was otherwise unused instead of casting
...
the driver softc under the assumption that the first part of it was a
struct scsi_low_softc.
2001-01-23 22:05:07 +00:00
John Baldwin
5928fa5cc7
#if 0 out local variables only used in #if 0'd code and remove unused
...
local variables.
2001-01-23 22:02:08 +00:00
John Baldwin
e54e93e21a
Add curly braces ({}) around each struct speedtab to quiet warnings.
2001-01-23 22:00:05 +00:00
John Baldwin
14c3599a2d
Proc locking in the form of using the proc lock to protect p_ucred while
...
we obtain another reference to it for vnode operations.
2001-01-23 21:58:44 +00:00
John Baldwin
d1a147af8b
Axe unused local variable.
2001-01-23 21:53:44 +00:00
John Baldwin
4cd9657860
- Mark an unused function with __unused.
...
- Temporarily #if 0 some unused local variables.
2001-01-23 21:52:34 +00:00
John Baldwin
705a513a29
Axe an unused static softc.
2001-01-23 21:51:26 +00:00
John Baldwin
9697124fc8
Move a temporary #ifdef of code (just the #ifdef part) up so that it is
...
above the local variable declaration to quiet warnings about unused
variables.
2001-01-23 21:45:05 +00:00
John Baldwin
65baa27ce6
Kill a warning by marking an unused function with __unused.
2001-01-23 21:43:47 +00:00
Jacques Vidrine
8ad2668439
Call pam_setcred.
...
Reviewed by: markm, months ago
2001-01-23 21:43:32 +00:00