Commit Graph

16692 Commits

Author SHA1 Message Date
augustss 187630511a Add a serial adapter. From PR 24482 2004-02-19 01:12:05 +00:00
augustss 84fc0b7421 Regen. 2004-02-19 01:11:13 +00:00
augustss 6f5601f100 Add a serial adapter. From PR 24482 2004-02-19 01:10:42 +00:00
dyoung 8ecfa06341 Move the RF Microdevices RF3000 & Silicon Laboratories SI4126/SI4136
register sets into their own header files for re-use by future
drivers.
2004-02-17 21:20:55 +00:00
kleink e436929104 Fix a (non-dangerous) malloc size botch in eso_allocm();
from Stephen Ma in PR kern/18342.
2004-02-17 17:39:55 +00:00
kleink d82820e03a Audio 2's DMA current address register implements only the least
significant 20 bits, so make sure its memory allocation won't cross
a 1M boundary.  From Stephen Ma in PR kern/18342.
2004-02-17 17:34:21 +00:00
jdolecek 6d8183e508 add rnd hooks 2004-02-15 09:40:32 +00:00
kochi 93ec3b2720 Merge ACPI-CA 20040211. 2004-02-14 16:57:24 +00:00
junyoung ff24ed0023 device<tab>
attach<tab>
2004-02-14 16:38:06 +00:00
bjh21 5aca86918f Add a new MI attribute, pckbc_machdep_cnattach, and change pckbc_cnattach()
to only call pckbc_machdep_cnattach() if this is present.  This allows
pckbc_machdep_cnattach() to be omitted entirely on most ports, where it only
returns ENXIO anyway.

The devices with this attribute at the moment are pc(4) on i386 and bebox, and
pckbc on sparc, where pckbc_machdep_cnattach() mysteriously returns 0 rather
than ENXIO.
2004-02-14 14:33:28 +00:00
bjh21 c1e3dd3d1f Remove "pc", "pcconskbd" and "pckbcport" on prep, since they've practically
not been there for two years.
2004-02-14 14:10:05 +00:00
hannken 142e9d5deb Add a generic copy-on-write hook to add/remove functions that will be
called with every buffer written through spec_strategy().

Used by fss(4). Future file-system-internal snapshots will need them too.

Welcome to 1.6ZK

Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-02-14 00:00:56 +00:00
enami 6c4e6273df xs->timeout is in milliseconds so convert it to tick before passing
it to callout_reset().
2004-02-13 21:22:13 +00:00
shige f8b38a76cf Fix unlocking operation (RWEL register).
PR:		kern/24231
Submitted by:	KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
2004-02-13 20:12:00 +00:00
wiz e365329be5 Spell length with h after t. Inspired by a commit by brad@openbsd. 2004-02-13 18:02:05 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
wiz f5b32c1e69 RealTek -> Realtek. 2004-02-13 10:00:54 +00:00
dyoung 05bd205756 KNF. Change
static
        void mem_write_2(...)

to

        static void
        mem_write_2(...)
2004-02-13 01:22:20 +00:00
shige 571b4462da Fix problem: checking 24H flag.
PR:		kern/24229
Submitted by:	KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
2004-02-12 17:01:31 +00:00
jdolecek 63e9ee7bf5 add Gary Thorpe copyright notice 2004-02-10 21:55:38 +00:00
jdolecek fba6bed686 fix atppcintr() to support shared interrupts properly
problem found and fix provided by Paul Shupak
2004-02-10 18:42:48 +00:00
jdolecek 3ce4ac0bbd checkpoint DMA support; still disabled, not tested yet 2004-02-10 18:19:47 +00:00
jdolecek e5d99e330f inform better of what exactly is printed in ppbus_scan_bus(), and only
print anything with PPBUS_VERBOSE || PPBUS_DEBUG
2004-02-10 18:13:12 +00:00
dyoung 6f9c4a91f1 If the firmware returns to us an RSS descriptor index that is out
of bounds, then complain and recover by freeing all of the descriptors.
That will usually provoke additional complaints---see the next
paragraph.

If the firmware returns to us an RSS descriptor that is in-bounds
but out of service (id_node == NULL), then gripe and get out of
the interrupt handler. ***This will still leak RSS descriptors.***
I'm working on a better solution. Possibly I will just free all of
the descriptors.
2004-02-10 01:08:05 +00:00
dyoung 9f147300d1 Disable rate-adaptation for Lucent firmware version 8.42.1, per a
bug report from Simon Burge: the firmware seems to lock up.

If rate-adaptation is disabled on a Lucent card, then do all the
rate-adaptation work *except* for writing the new transmit rate,
since I suspect that is what locks-up the firmware.
2004-02-10 00:59:38 +00:00
dyoung b664edb5ad Shorten the retry count on Prism APs to improve the speed of
rate-adaptation.
2004-02-10 00:52:12 +00:00
dyoung d32ed08a80 Factor out the initialization/reset of RSS descriptors, making
wi_rssdescs_init, wi_rssdescs_reset, which I will use to receover
when the firmware botches up the RSS descriptor index.
2004-02-10 00:47:41 +00:00
dyoung c9dcac9ffa The radiotap header is little-endian. 2004-02-10 00:32:40 +00:00
hpeyerl e3c5164736 On some 'fast' i386 motherboards, the timing between consecutive reads
and writes of the EEPROM are too fast so invalid data is returned. So we
increase the DELAY()s.  The right thing would be to check a ready bit
on the E^2 if such a thing exists.  (checked by potr)
2004-02-09 22:29:26 +00:00
bjh21 a093883c82 Trailing whitespace cleanup. 2004-02-08 13:49:43 +00:00
oster 2eaec068c9 Relegate some printf's to DEBUG land. 2004-02-08 04:37:56 +00:00
matt c62861525c Regen. 2004-02-07 00:51:45 +00:00
matt f70be9035f Add LXT973/974/975 PHYs 2004-02-07 00:51:05 +00:00
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
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