Commit Graph

4185 Commits

Author SHA1 Message Date
jmcneill 9c40186bce Add support functions for capturing and restoring PCI configuration
registers for power management code.
2005-01-26 21:49:00 +00:00
kleink 9ce91047cd Clean up the array of audio_formats supported. 2005-01-26 21:28:55 +00:00
fvdl 5ccd9c2654 Don't print a message when there's no interrupt to be handled, since this
can happen when one is shared. Also, don't claim it in that case.

Make some printfs more consistent.
2005-01-26 12:59:06 +00:00
jmmv 51b5451e34 Capture incomplete packets coming from the card, as this driver doesn't
support this feature.  This avoids multiple crashes that I've had in the
past.  Also ensure that packets are not empty when DIAGNOSTIC is set.

However, this is just another sanity check of the received packets, but
does not address the real problem.  The issue seems to be the following:
if the card receives data while doing a reset (vr_init), it later finds
a bunch of empty packets in the receive ring.

This explains the crashes I've hit: running a program which needs
promiscuous mode (dhclient) while the card was already running in
that mode (tcpdump).  In this situation, it's easy that the second
reset receives stuff from the network.

Unfortunately, I don't know why the card is producing these packets...

While here, fix a typo in a comment.
2005-01-25 17:02:09 +00:00
matt 1dfcdea23d Regen. 2005-01-25 00:55:25 +00:00
matt 2d074b9231 Add additional PCI Device IDs for ATI Radeon 9200 2005-01-25 00:55:00 +00:00
matt 027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
dan f368e90e9b attach tl(4) as an event source to rnd(4)
patches from Sean Davis in PR/28556
(slightly modified to actually catch our own interrupts)
2005-01-23 10:53:19 +00:00
fredb 53c21c67e7 Regen. 2005-01-23 03:07:05 +00:00
fredb 18c05962e3 Recognize Belkin Gigabit Desktop Network PCI card. 2005-01-23 03:06:07 +00:00
briggs d01fdd733e Put the headers in a more standard order with machine-specific and
dev/bus-specific headers after the sys and net headers.  This allows
it to actually compile on macppc, among other things.
2005-01-22 04:34:22 +00:00
tsutsui 62b7a35d2d Unload xfer dmamap in pscsp_dma_stop(). 2005-01-21 14:37:58 +00:00
yamt a9b37be6a2 - switch to dev/rtl8169.c from pci/if_re.c.
- enable re@cardbus.
both of re@pci and re@cardbus seem to work for me.
2005-01-21 12:32:18 +00:00
dyoung a10b4b5f6b Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times.  If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
2005-01-19 06:00:22 +00:00
yamt 28bcd01d16 - add rcsid.
- restore Bill Paul's copyright notice.
2005-01-18 11:11:58 +00:00
tsubai fcad06a784 Regen. 2005-01-18 06:24:18 +00:00
tsubai e5b7a48413 Add some Apple devices. 2005-01-18 06:23:01 +00:00
dyoung fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
martin ab7375f57f More changes from Michael Lorenz:
- fix a panic in mach64_alloc_screen()
 - some cleanup
 - restrict mach64_mmap() to addresses which belong to it
 - mach64_attach now prints bus addresses instead of kernel vm addresses
 - initial support for macppc
2005-01-17 22:52:46 +00:00
augustss c9d494cae1 Make it compile with debug. 2005-01-17 12:24:37 +00:00
mycroft ea0b1cb353 Just to be absolutely correct, wait an additional 1ms after the "power cycle"
event, to cover the RESET Width (Tw (RESET)).
2005-01-16 08:56:29 +00:00
mycroft b0345c674e Christos's crappy Libretto 100CT has an extremely long ramp for socket Vcc
(violating the PC Card spec), so... use the "power cycle" socket event to
determine when we've reached Vcc before proceeding, rather than using a fixed
amount of time.  This has the double advantage that it makes the card attach
time even shorter on sane systems -- the minimum is now ~38ms on my i8500
rather than 222ms.

Probably a similar change should be made to pcic, but it was hard enough
figuring out whether it would work with pccbb.  The chip specs suck.

For now, I'm leaving in a couple of additional printf()s in the hope that I
will get some interesting data from them.
2005-01-16 08:51:55 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
skrll 4b90045498 Remove local PCI_PRODUCT defines 2005-01-15 13:27:23 +00:00
skrll fcf73d97d0 Regen. 2005-01-15 13:23:31 +00:00
skrll 26e988358c Add Intel PRO/Wireless LAN 2915ABG Mini-PCI Adapter 2005-01-15 13:21:31 +00:00
kanaoka 79c7579be2 - Make sure D0 state if device has Power Managmet capability.
- Use aprint_*.
 - Change some cosmetic.

XXX not tested.
2005-01-15 12:33:37 +00:00
jdolecek 23ddf6b52d regen: Fix Geforce 6800GT entry 2005-01-15 08:40:41 +00:00
jdolecek cd31b660cb Fix Geforce 6800GT entry 2005-01-15 08:40:07 +00:00
jdolecek 139cc687c0 regen: add bunch of NVIDIA GeForce 6800 devices 2005-01-15 08:38:19 +00:00
jdolecek 9ed9632969 add bunch of GeForce 6800 entries, from Andrew Gillham 2005-01-15 08:37:34 +00:00
jdolecek 8fe1013ea1 regen: use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:33:19 +00:00
jdolecek 739bcb85f8 use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:32:53 +00:00
jdolecek 5dc2830936 match NVIDIA nForce2 Ultra 400 IDE and Serial ATA controller; only the IDE
controller actually tested
2005-01-13 20:54:39 +00:00
jdolecek de76592011 regen: add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:52:20 +00:00
jdolecek 87a7c34e2d add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:51:49 +00:00
jdolecek 69d096eee2 regen: VIA Velocity 2005-01-13 18:25:49 +00:00
jdolecek 0358345ff3 add VIA Velocity ID 2005-01-13 18:25:19 +00:00
jmmv c4c2514524 Fix two typos. 2005-01-13 14:51:28 +00:00
kanaoka 3e734f8e90 - Move re_diag() from bus independend code to PCI attachment code.
XXX: I tested cardbus device,but not PCI device.
2005-01-13 14:24:24 +00:00
simonb 11152f29d3 More KNF nits. 2005-01-13 00:48:01 +00:00
kent 986f217c29 remove empty auixp_open() and auixp_close(). They are optional.
style fixes
* Don't associate a name with the types
* The function type must be declared on a line by itself
  preceding the function.
* DO NOT initialize variables in the declarations.
* No parentheses are needed around the return value.
2005-01-12 15:54:34 +00:00
reinoud 5c590de03d Update copyright messages 2005-01-12 00:28:03 +00:00
reinoud df06ca85e4 Initial commit of auixp(4) driver. It's a driver for the audio part of ATI
IXP-200 and family motherboard chips. Its functional for both recording and
playback.

Note that quadraphonic and Dolby 5.1 audio are not tested by me but ought
to work fine. I can set the number of channels etc. OK but i can't listen
to the result. Any feedback on this performance would be greatly
apreciated.
2005-01-12 00:05:43 +00:00
skrll 28528764d0 Disable the debug stuff 2005-01-11 18:54:18 +00:00
skrll 70f6d0ab0f NetBSD RCSID 2005-01-11 18:49:05 +00:00
skrll e2b108cb16 Add iwi(4). 2005-01-11 18:41:59 +00:00
skrll 60b4bf1e8d iwi(4) - Intel PRO/Wireless 2200AG/2915ABG driver.
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/

Ad-hoc mode and roaming are not fully implemented yet.
2005-01-11 18:24:24 +00:00
kent 23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
martin 5689de1472 Bugfixes and acceleration support.
From Michael Lorenz.
2005-01-09 16:29:20 +00:00