jhay
306e6760c1
Newbusify the sr device and move it to its new location.
2001-01-30 10:02:10 +00:00
jhay
11691d89b0
Update include files to reflect the new location of the ar device.
2001-01-30 10:01:15 +00:00
sos
ab7cbc336e
Add option ATA_ENABLE_WC for enabling write caching (now off by default).
2001-01-29 18:00:35 +00:00
peter
8eddfd2f15
Stop counting sppp interfaces, we were just testing its presence to give
...
a warning if it was missing.
2001-01-29 12:27:46 +00:00
peter
c617fc9c7d
Zap silly #if NPCI > 0 and the hoops that we jump through for the module
...
case. Use an 'and' case in conf/files so that it only gets compiled if
pci is present.
2001-01-29 11:38:39 +00:00
peter
b37b0c22ee
Remove unused #include "lnc.h"
2001-01-29 11:19:30 +00:00
peter
10b1794678
Remove unused #include "snp.h"
2001-01-29 10:06:22 +00:00
peter
10126ce00c
Convert ata and atapi #if NATA* > 0 to options instead. Stop config
...
trying to count the number of ata* devs since they were not used anyway.
2001-01-29 10:01:11 +00:00
peter
b7edc4f4e3
Send "#if NISA > 0" to the bit-bucket and replace it with an option.
...
These were compile-time "is the isa code present?" tests and not
'how many isa busses' tests.
2001-01-29 09:38:39 +00:00
phk
11132720d3
Fix a braino in ccd's clone routine.
...
Submitted by: tegge
2001-01-29 06:18:14 +00:00
phk
079c35c874
Remove devstat entries in mddelete()
...
Spotted: tegge
2001-01-28 20:55:55 +00:00
groudier
0fe2e6bab6
A couple of chip errata work-arounds refined:
...
- When used on a 33MHz PCI BUS, the 53C1010-66 revision 0
requires extra clocks to be inserted in data out phase.
Revision 1 is fixed.
- The 53C1010-33 revision 1 requires internal cycles to be
disabled due to possible contentions on IO registers.
Revision 2 is fixed.
Fix:
- The probing of HVD from GPIO3 bit by the driver was reversed.
The driver could misprobe the bus mode of a 825 or 875 chip
that was not previously initialized (no BIOS for example).
2001-01-28 19:58:21 +00:00
gibbs
ceeff8ca20
Update Copyright notices for new year. (should have been in last commit).
2001-01-27 20:54:24 +00:00
jhb
b6baa60b1e
Back out proc locking to protect p_ucred for obtaining additional
...
references along with the actual obtaining of additional references.
2001-01-27 00:01:31 +00:00
jhb
ce34393882
- Don't pass in MTX_NORECURSE, as that is only used with spin mutexes and
...
is going away soon anyways. Instead, don't pass MTX_RECURSE to mtx_init,
so that WITNESS will panic if the driver mutex is recursed on.
- Use MTX_DEF in mtx_init() instead of assuming that it will be 0.
2001-01-26 03:18:17 +00:00
nsouch
adc8a8326d
Discard extra status information if -1. This has been breaking the
...
PS/2 mode for ZIP+ drives for a long time. Thanks Jonathon.
Submitted by: j mckitrick <jcm@FreeBSD-uk.eu.org>
2001-01-25 13:07:55 +00:00
nsouch
fe01c653ba
Consider that the chipset may be in ECP mode (from BIOS settings)
...
even if mode PS/2 is forced with bootflags. As a matter of fact,
chipsets needs some extra configuration for accessing PS/2 mode
from ECP. The current patch is only relevant for generic chipsets
since specific code is supposed to deal with this during detection.
2001-01-25 10:51:41 +00:00
nyan
8edb21358a
Added necessary include for pc98.
2001-01-25 09:56:04 +00:00
peter
98efcc620b
Disable cy - it is now completely broken and needs non-trivial work.
2001-01-25 01:56:27 +00:00
jhay
1acb4466b0
Newbusify ar(4).
2001-01-24 18:45:29 +00:00
jhb
9c54776639
- Proc locking around the vinumdaemon dinking with its flags.
...
- P_INMEM -> PS_INMEM.
2001-01-24 10:28:19 +00:00
cg
2565bf6979
don't grope around inside snd_dbuf structures as they will change in future
2001-01-24 01:36:15 +00:00
cg
99127615ba
fix certain cards failing to attach
...
Submitted by: Russell Cattelan <cattelan@thebarn.com>
2001-01-24 01:27:31 +00:00
cg
456c0fc978
fix blocksizing for playback, implement blocksizing for record
2001-01-24 01:22:53 +00:00
cg
9de50bdcce
some cosmetics, changed channel setup and revamped irq handling - ignore
...
repeated interrupts
2001-01-24 01:20:04 +00:00
cg
2cc907a0c7
prevent excessively small buffer sizes resulting in hundreds of irqs per
...
second
2001-01-24 01:15:50 +00:00
mjacob
6811103a87
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
jhb
fe7d8cee8f
Tag unused functions with __unused.
2001-01-23 22:24:26 +00:00
jhb
b4eb86c28d
Proc locking to protect p_ucred while we obtain another reference to it.
2001-01-23 22:23:25 +00:00
jhb
600bbce055
Use suser(9) instead of checking p->p_ucred->cr_uid directly.
2001-01-23 22:22:25 +00:00
jhb
dede119c77
Remove a prototype for an unused and undefined debugging function.
2001-01-23 22:21:14 +00:00
jhb
4799f0d266
Tag unused functions with __unused.
2001-01-23 22:18:41 +00:00
jhb
e01b490c7e
- 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
gibbs
f2a4379534
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
jhb
2207837a49
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
jhb
1442e82d08
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
jhb
3ed8c05491
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
jhb
d56ddb5579
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
jhb
a24eb2156c
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
jhb
42f3c7594b
#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
jhb
74ab965b0d
Add curly braces ({}) around each struct speedtab to quiet warnings.
2001-01-23 22:00:05 +00:00
jhb
191c7b388b
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
jhb
9f36704413
Axe unused local variable.
2001-01-23 21:53:44 +00:00
jhb
3ab09403ef
- Mark an unused function with __unused.
...
- Temporarily #if 0 some unused local variables.
2001-01-23 21:52:34 +00:00
jhb
82bd6820a6
Axe an unused static softc.
2001-01-23 21:51:26 +00:00
jhb
fd3d6d8dd8
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
jhb
8c3bdd92ce
Kill a warning by marking an unused function with __unused.
2001-01-23 21:43:47 +00:00
jhb
c318d32494
- Add necessary proc locking.
...
- Use proper atomic operations to make the run time initialization
controlled by svr_str_initialized be MP safe.
- Use appropriate queue(3) macros where needed.
2001-01-23 21:06:30 +00:00
peter
ac8d71e326
In answer to the comment: /* XXX is it OK to block here? */, the answer
...
is definately NO! as we are in interrupt context and malloc() does a
KASSERT() to be sure.
2001-01-23 09:43:23 +00:00
dwmalone
50ecd5a27c
Free the kbd pointer when it isn't NULL, as opposed to when it is.
...
This was a typo in the M_ZERO patches.
Submitted by: Mike Silbersack <silby@silby.com>
2001-01-22 22:54:02 +00:00