Commit Graph

16609 Commits

Author SHA1 Message Date
augustss bc9ffbf1a7 Add some EEPROM related defines. 2004-02-04 15:43:14 +00:00
shige 8fe65bf226 Fix fatal bug.
1. read/write overflow to array size.
  2. abnormal master addressing

PR:		kern/23825 (splitted kern/{24227,24228,24229,24230,24231,24232})
Submitted by:	KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
2004-02-04 12:03:07 +00:00
soren 10ced29306 Use the right bits for the AGP version. 2004-02-04 06:58:24 +00:00
fredb 4648495436 The variables to hold the registers don't need to be declared volatile.
Pointed out by Simon Burge on tech-kern.
2004-02-04 01:58:44 +00:00
jdolecek 9300becc32 allow setting of interrupt usage, priming and auto LF behaviour
via ioctl; drop the traditional device minor mapping for those in favour
of setting via lptctl(8)

introduce notion of 'control' device (minor bit 0x100 set); ATM this
device always skips the priming, which allows device open even with
disconnected printer

this also changes the default for interrupt use - polling is used
by default now
2004-02-03 21:15:03 +00:00
bouyer 09bfe9c85c Clear drive_flags when wdc_atapi_get_params() fails. Avoid a panic later
when probing a slave-only bus in some cases.
2004-02-03 20:55:02 +00:00
fredb cb6b97c092 Fix a warning about possibly uninitialized variable. 2004-02-03 20:35:17 +00:00
jdolecek f44dc9ed8b overhaul the ioctl interface to be better suited for extensions and to
reduce number of separate ioctls - have only 'get mode', 'set mode',
'get flags', 'set flags'
2004-02-03 19:57:00 +00:00
fredb 0dcb02ec41 Enable the 8X clock on the SIIG Cyberserial serial and combination PCI
cards at attachment time, in order to support bit rates greater than 115K,
as discussed on tech-kern.
2004-02-03 19:51:39 +00:00
jdolecek b267be2d28 some style changes - g/c redundant cast, simplify code in atppc_read_ivar() 2004-02-03 18:54:59 +00:00
jdolecek 9898c64ca9 g/c some unused/write-only/redundant lpt_softc stuff
some style changes in lptwrite() + some printfs adjusted
2004-02-03 18:48:39 +00:00
soren 12e7c81811 As pointed out by Dave Huang, revert back to using 273.15 rather than 273.16
when converting between kelvin and celsius.
2004-02-02 10:36:19 +00:00
soren e8492b62f8 Log message from FreeBSD:
When creating a package element via "Store(0xXXX, Index(ArgX, 0xXXX))",
  be sure to increment the refcount of the argument so it is not
  prematurely deleted.  This is a workaround and may appear in a different
  form in ACPI-CA.  This fixes battery evaluation on Thinkpads that was
  broken by fixing the Dell battery state.

  Submitted by:   Luming Yu <luming.yu at intel.com>
2004-02-02 08:00:56 +00:00
soren 0a0ed6029c Within the scope of the ACPI spec, K = C + 273.2; correct for it. 2004-02-02 07:58:11 +00:00
jdolecek f5e874fba4 make compilable with option DONTPROBE_1284 2004-02-01 17:28:48 +00:00
uwe 3868e01b8d Recognize TAMARACK Ethernet Card.
From PR: 12273 and Mathias Menzel-Nielsen (matze matzsoft de).
2004-02-01 12:41:25 +00:00
uwe 91719cb6e4 Regen for TAMARAC Ethernet card. 2004-02-01 12:38:24 +00:00
uwe 357b0e291a Add CIS for TAMARACK Ethernet Card (another ne2000 clone).
From PR: 12273 and Mathias Menzel-Nielsen (matze matzsoft de).

While here, sort some stray entries alphabetically.
2004-02-01 12:35:59 +00:00
jdolecek 5a87ad473d fix typo in previous, pointed out by Patrick Welche in private mail 2004-01-31 14:48:15 +00:00
jdolecek 5ecaa7ecee add dependency on isadma for atppc attachments
add atppc_isadma.c for atppc@isapnp and atppc@ofisa, too
2004-01-31 13:59:20 +00:00
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