Commit Graph

4137 Commits

Author SHA1 Message Date
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
fredb f8f4807136 Regen. 2005-01-08 16:07:20 +00:00
fredb 99ad984e37 Recognize the Broadcom 5721 Gigabit Ethernet, as found on SuperMicro P8SCi
motherboards.
2005-01-08 16:00:03 +00:00
ginsbach 4b4b860766 regen 2005-01-08 04:58:22 +00:00
ginsbach d3c0713e84 Use the more common name, Radeon U1, for the IGP 320M. 2005-01-08 04:53:39 +00:00
he 33d45d5d2a Add recognition of LSI Logic FC919X chips, as found on
LSI Logic LSI7102XP-LC controllers.
Document FC919X and FC929X with separate entries in the man page.
2005-01-06 14:58:00 +00:00
he c4d71a859c Regen after adding entry for LSI Logic FC919X. 2005-01-06 14:56:22 +00:00
he 9d71f19b13 Add entry for LSI Logic FC919X, as found on LSI Logic LSI7102XP-LC
controllers.
2005-01-06 14:55:37 +00:00
tsutsui 2be3acc29a u_intNN_t -> uintNN_t 2005-01-02 12:03:12 +00:00
reinoud 4501e21ecb Update generated files from pcidevs (ENE update) 2004-12-27 17:21:46 +00:00
reinoud a76863e103 Addition of description for :
/* ENE Technology products */
product ENE MCR510      0x510   MCR510 PCI Memory Card Reader Controller
2004-12-27 17:20:32 +00:00
jonathan 9d44c4d9b1 Snapshot of incomplete-but-working split of re(4) driver into a
bus-independent backend, with PCI and CardBus attachment code.
The committed code has two serious bugs:

1. The driver makes no attempt to recover resources when a (Cardbus)
instance is removed; bus resources are leaked.

2. In testing with a NetGear GA-511, the Cardbus card never responded
   to a reset/wakeup if the card is powered down after attachment.
   So for now, leave cardbus instances powered up at attachment
   (insertion, or at boot if a card is already present).

That aside, it acutally works on my GA-511. Committed as-is despite
the bugs, after repeated requests to make the code available for
further testing.  Also requires sys/dev/mii/miidevs rev 1.54 -> 1.55,
and consequent regen of miidevs{,_data}.h.
2004-12-23 06:26:30 +00:00
fvdl a3cea30b50 Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.

The amount can be configured as USB_MEM_RESERVE. The default value is
256k.

Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
2004-12-21 16:41:24 +00:00
xtraeme 5f19bd62b5 regen 2004-12-18 11:55:02 +00:00
xtraeme e4e6ec7dae + ATI Technologies Radeon 9600 XT 2004-12-18 11:54:03 +00:00
heas 2239334429 Add entry for the Radeon Mobility T2. 2004-12-16 00:29:06 +00:00
cube 909aa49296 Some SiS 7012 chips come muted by default, so un-mute all SiS 7012 chips at
attach time the way Linux does it.  Reported and tested by Jonathan
Schleifer, I checked it didn't break my own 7012 device which doesn't need
that manipulation.
2004-12-11 17:48:56 +00:00
reinoud 62ff9500b4 Add ATI IXP audio controllers 2004-12-11 01:55:01 +00:00
jdarrow 90ceccfb90 Regen from pcidevs 1.672:
Add a new vendor and product ID for a cardbus NIC I've got
Belkin 0x1799
F5D6020v3 0x6020
2004-12-07 04:30:59 +00:00
jdarrow 75f0c06d8a Add a new vendor and product ID for a cardbus NIC I've got
Belkin 0x1799
F5D6020v3 0x6020
2004-12-07 04:28:07 +00:00
cube eac73e5ce7 Add config wires for ixpide(4). 2004-12-06 19:23:09 +00:00
cube 7164a75552 Add ixpide(4), a driver for the IDE controller found in the ATI IXP series
of integrated chipsets.

Documented from the Linux driver.  Tested by reinoud@, ok'd by bouyer@.
2004-12-06 19:22:24 +00:00
cube cc48293bc4 Regen (ATI IXP IDE). 2004-12-06 12:55:26 +00:00
cube 30962ed274 Add ATI IXP IDE Controller. 2004-12-06 12:54:37 +00:00
bouyer 32ea72dcdc Regen: Cleanup in VIA chipset names. From Lloyd Parkes in kern/15466. 2004-12-05 21:03:45 +00:00
bouyer 52ad9744eb Cleanup in VIA chipset names. From Lloyd Parkes in kern/15466. 2004-12-05 21:01:43 +00:00
xtraeme 347378fc9f Add ACPI mpu(4) attachment, based on lpt_acpi.c by jmcneill@,
reviewed by christos@, cube@ and martin@.

While here, remove a printf() in mpu_attach() (ic/mpu.c) to remove
an empty line in some frontends (mpu_isa.c, etc).
2004-12-02 09:50:41 +00:00
grant 9204390fe4 add iteide(4) driver for ITE8212-based IDE controllers. from
OpenBSD, ported to NetBSD by me.

ok'd by bouyer@, thorpej@.
2004-12-01 22:27:45 +00:00
grant de8ed3cda9 regen 2004-11-30 05:02:57 +00:00
grant 63ea06b029 add ITE 8212 IDE controller. 2004-11-30 05:02:37 +00:00
briggs 87dda823cf Minor tweak to add newline to an aprint_error(). 2004-11-30 03:08:27 +00:00
bouyer 9958df25fd Add RAID support, from Shin'ichiro TAYA on current-users@. 2004-11-28 14:34:31 +00:00
bouyer fe4d81db48 pdcsata(4), a driver for the Promise SATA150 (aka PDC203xx) serie of
controllers. Tested with a PDC20375 (2 SATA, one PATA) controller on sparc64.
Added to all kernel config file which had pdcide(4).
2004-11-24 20:49:17 +00:00
bouyer 489e5e5287 Move bus_dma setup out of pciide_dma_init() in a new function,
pciide_dma_dmamap_setup(), for the benefit of drivers that needs special
registers setup in dmainit().
2004-11-24 19:52:50 +00:00
briggs 83931ac682 The 8254x apparently doesn't respond well to I/O accesses at 0. Do not
attempt to map the I/O BAR if it is 0.  This will have the side-effect
of causing the wm_reset() routine to fall back to memory BAR accesses
for those chips on which it would attempt I/O BAR accesses for the reset.

Also update the comments about why we attempt the I/O BAR accesses for
the reset in favor of the memory BAR accesses.
2004-11-24 15:14:13 +00:00
thorpej 38f94c5d99 Don't bother caching the checksum context. Other drivers for this chip
don't, and it seems as though doing it may cause some problems.
2004-11-24 00:02:50 +00:00
thorpej 978214ebe8 If we have to do an m_pullup() when setting up offload parameters,
make sure that the pullup was done into trailing space at the end of
the existing first-mbuf-in-chain.  If not, log an error and drop the
packet, because the mbuf chain no longer corresponds to the DMA map,
and we are already committed to transmitting the packet.
2004-11-23 23:05:33 +00:00
thorpej 0d16742b72 Also toggle the second port's Ethernet address lsb on the WM_T_82546_3. 2004-11-23 21:36:38 +00:00
thorpej 0d68f66da9 Use log() instead of printf(). 2004-11-22 19:28:37 +00:00
rumble bacd128163 regen 2004-11-22 04:24:25 +00:00
rumble 501793b6d8 kern/28384: VT3606 -> VT6306 typo 2004-11-22 04:23:21 +00:00
jmmv dcfa2c4905 Fix typo in previous commit that was breaking the build (hi, tacha@!). 2004-11-19 17:59:09 +00:00
tacha f2ffe49e42 Add support for Broadcom BCM5705K. 2004-11-19 10:17:17 +00:00
tacha a7c87301d7 regen. 2004-11-19 10:01:20 +00:00
tacha 1e152ddcc3 add Broadcom BCM5705K. 2004-11-19 09:58:42 +00:00
kent ca2819710c implement auich_activate() and auich_detach() 2004-11-17 15:19:30 +00:00
kent d1afddf792 make functions static as possible 2004-11-17 15:14:38 +00:00
jdarrow f18e689470 Regen from pcidevs 1.666 (add two wireless cards) 2004-11-17 11:18:27 +00:00
jdarrow 22caf82968 Add PCI IDs for two wireless cards I've got.
Ralink Technologies (vendor 0x1814) RT2460 (product 0x0101).
Texas Instruments (vendor 0x104c) ACX111 (product 0x9066).
2004-11-17 11:15:03 +00:00