Commit Graph

16589 Commits

Author SHA1 Message Date
dyoung cc1434eac0 wi_stop tells which stations' rssadapt descriptors it cleans up
when IFF_DEBUG is set.
2004-01-31 10:40:19 +00:00
fredb 7f674884ad Fix a couple of long-standing bugs in the volume control(s) part of the
audio device interface:

1) When attempting to match the appropriate mixer control, we weren't
checking the class label, but only the second level label, so for
devices that had both an "inputs.cd" and a "record.cd", for example,
we could never do the right thing except by chance. For this reason,
evidently, all the record masters were labeled (by the underlying
drivers) either "record.record" or "record.volume", to distinguish
from "outputs.master". We'll now accept "record.master", and document
that as the the new preferred way.

2) More importantly, the model was deficient. Selecting a port on many
chips completely disables most of the level controls, which doesn't play
nice with other applications which are trying to use the interface. Now,
selecting a port simply sets which mixer input control shall be changed,
setting state in the audio layer. In other words, the "mixerout" port
is really selected all the time, enabling the final stage mixer, and
setting "gain" sets the level of the appropriate input. It should be
possible for separate applications to each control the mic, dac, and cd
inputs at the same time using this interface, simply by reiterating their
port selections with each change, but applications that don't bother to
do that aren't any worse off than they were before.

The user is expected to set the master output with another application,
dedicated to that task. Though it is now meaningful to select "no port"
with the audio device interface, to manipulate the master output, there's
no particular reason for an audio device consumer to do that. (I added
the capability in order to restore the initial state of the audio device,
for testing purposes. It might also be useful to users of broken binary-
only applications.)

Observe that the mixer device interface (and so, "mixerctl") still
retains all capabilities, including the ability to set the actual input
port on the chip, overriding the level controls. No change is being made
to the mixer device interface. The mixer device simply presents all the
controls on the chip, with no attempt at abstraction, so there are no
bugs there.

The upshot is, that applications that have been trying to use the audio
device interface to change the volume, such as mplayer, now "just work".

I've tested these changes extensively with "eso" and "eap" since first
proposing them on tech-kern last January, and somewhat with "esm" and a
few others. This closes both PR kern/10221, and PR kern/17159.
2004-01-31 00:07:56 +00:00
jdolecek 8081dfaa4b whitespace fixes, make LPTIO_DISABLE_DMA 'succeed' if DMA is not supported 2004-01-30 11:40:55 +00:00
he 22d88e6c63 Omit declaration of "device lpt" in files.mvme; this is now done by
the recently introduced files.ppbus.
Also, let the mvme68k port use it's own lpt implementation for now,
so define USE_ALT_LPT option in std.memv68k.
This makes the mvme68k kernels configure and build again.
2004-01-30 09:42:01 +00:00
martin d1825213e7 Fix copy&pasto in last revision that (luckily) broke compilation on sparc64.
Noticed by MOCHIZUKI Tomomitsu.
2004-01-29 16:57:29 +00:00
dyoung 5e9822c7e9 Get rid of __P. 2004-01-29 10:25:49 +00:00
dyoung d957a27d98 The MII headers are not necessary, so don't include them. 2004-01-29 10:07:08 +00:00
dyoung a0b92c808f Add atw_pci_enable, atw_pci_disable. Fixes a panic at "ifconfig
down" that was reported by Darren Reed.
2004-01-29 10:06:19 +00:00
dyoung a2c00c4caa Only pass 802.11 frames up if they are greater than the minimum
size or else if monitor mode is enabled.
2004-01-29 10:02:24 +00:00
dyoung b7522c81e7 Avoid division by zero when computing the link-lost lost-beacons
threshold.
2004-01-29 10:01:14 +00:00
dyoung 9641999af3 Deal with the RSSI as an unsigned value. 2004-01-29 09:59:57 +00:00
dyoung d1354038ef Fix whitespace in Si4126 register definitions. 2004-01-29 09:55:35 +00:00
dyoung f7b1f8ea0b Wrap the bit-twiddling macros so that they don't get redefined if
more than one header file defines them.
2004-01-29 09:53:18 +00:00
augustss 7cbb919e9d Fix pasto. 2004-01-28 22:37:50 +00:00
augustss 914d460136 Add Sony Clie v3.5. From FreeBSD. 2004-01-28 22:01:38 +00:00
augustss 33d0bfd046 If vendor or product is the empty string, ignore it.
From FreeBSD.
2004-01-28 22:00:06 +00:00
augustss 87d594416e Regen. 2004-01-28 21:57:11 +00:00
augustss ade63aa50c Add more devices. From FreeBSD. 2004-01-28 21:56:51 +00:00
augustss 2e480fe6bf Regen. 2004-01-28 21:50:52 +00:00
augustss dc826a966b Add another FTDI device. From FreeBSD. 2004-01-28 21:50:28 +00:00
jdolecek 2d2c0ad74d don't limit size of DMA transfer by size of FIFO
problem reported and fix provided in PR kern/24200 by Paul Shupak
2004-01-28 20:08:35 +00:00
jdolecek ccbfffb38b copyright notice as in netbsd-ppbus 1.4 (this files is based
on atppc_isa_subr.h which has this copyright notice in v1.4)
2004-01-28 19:37:30 +00:00
jdolecek 0fa4f927df regen - ISA PnP atppc(4) attachmen 2004-01-28 19:34:17 +00:00
jdolecek bee48ca338 fix typo 2004-01-28 19:33:10 +00:00
jdolecek 0a4cb8aa12 ISA PnP atppc(4) attachment
based loosely on aha ISA PnP attachment
2004-01-28 19:31:07 +00:00
jdolecek bb920938c0 whitespace police 2004-01-28 18:54:32 +00:00
jdolecek 578cce287d ofisa atppc(4) attachment
test-compiled with Shark GENERIC (with atppc* at ofisa? added), otherwise
untested
2004-01-28 18:47:13 +00:00
jdolecek eb0997a461 add plip 2004-01-28 18:09:11 +00:00
jdolecek f06d010f7f make testbyte[] in lpt_detect() static const 2004-01-28 18:03:45 +00:00
jdolecek 73acd716fb drop #ifdef _KERNEL, this is kernel-only header 2004-01-28 17:58:42 +00:00
jdolecek 5863b95fcf copyright police 2004-01-28 17:35:58 +00:00
drochner 14f6e1fdec sort, and add "pps" 2004-01-28 17:29:03 +00:00
drochner 39abe92ecb add a "pps" device to get pulse-per-second signals into ntpd 2004-01-28 17:27:06 +00:00
jdolecek 9e77fbccf8 drop #ifdef _KERNEL (these are kernel-only headers)
add some comments for the multiple inclusion protection #endif's
2004-01-28 17:11:48 +00:00
chs 7f9f8e3309 also match the version of this that's built into my Asus
A7N8X-E Deluxe motherboard.
2004-01-28 17:07:21 +00:00
chs 6b86384036 regen 2004-01-28 17:06:09 +00:00
chs 1978ed699a add some JNI and Emulex fibre-channel cards.
add all the built-in stuff from my Asus A7N8X-E Deluxe motherboard.
add some other misc cards.
update the URL at the top.
2004-01-28 17:05:40 +00:00
onoe c65191a490 Adopt to new 802.11 framework.
Add support of version 5.30.17 firmware of PCMCIA 350 series.
MPI350 mini-PCI is NOT YET supported.
MONITOR mode is still not yet working.
2004-01-28 15:07:52 +00:00
drochner b82ddc9975 -make it compile with ATPPC_DEBUG
-minor cleanup (whitespace, avoid a typecast)
2004-01-28 14:26:24 +00:00
drochner d1506371f5 -unmap port range after probe, so that the attach function has
a chance to map it again
-minor cleanup
2004-01-28 13:51:16 +00:00
jdolecek 89ba3070d0 do not use enums in ioctl structure, use fixed width integers instead
g/c boolean_t enum, explicitly assign numbers for lpt_mode_t enum

Note: lptctl needs to be recompiled to print status properly withh new kernel
2004-01-28 09:29:06 +00:00
blymn f678f5ebbb Added note for updating these files. 2004-01-26 14:20:42 +00:00
blymn 2cfce94241 Added note for correct update procedure for pcidevs. 2004-01-26 14:18:13 +00:00
blymn 74aab7025b Regen with correct rcs id. 2004-01-26 14:08:10 +00:00
blymn f99510798e Add amd8151 agp bridge id. 2004-01-26 13:23:26 +00:00
hannken 3db4e2acd8 Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.
VOP_STRATEGY(bp) is replaced by one of two new functions:

- VOP_STRATEGY(vp, bp)  Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp)      Call the d_strategy routine of bp->b_dev for bp.

DEV_STRATEGY(bp) is used only for block-to-block device situations.
2004-01-25 18:06:48 +00:00
bjh21 24eeccb641 beep(4) is no more. 2004-01-25 14:07:23 +00:00
jdolecek 89a1048e34 pass the DMA tags to child devices, too 2004-01-25 11:57:52 +00:00
jdolecek 82e4b81f3e add puc(4) atppc(4) attachment; probes correctly, but needs further
work to support DMA, and some actual transfer testing
2004-01-25 11:50:51 +00:00
jdolecek 1c1ef41b96 fix register offset of second port for NetMos NM9815 Dual 1284 Printer port
card
2004-01-25 11:48:27 +00:00