Commit Graph

12476 Commits

Author SHA1 Message Date
augustss 45e00a035a Don't forget the symbolc names for the keymaps. 2002-03-17 18:12:15 +00:00
augustss b32942bb23 Whitespace fixes. 2002-03-17 18:02:52 +00:00
augustss 3fba39846b Add Swiss keyboard mappings. From OpenBSD. 2002-03-17 18:01:07 +00:00
augustss ada83730a8 Add more language map definitions. 2002-03-17 18:00:17 +00:00
kent fe274639f9 aurateconv.c:
- Simplify the source
  - Accept any convresions such that sample_rate < hw_sample_rate

uaudio.c:
  - Request the above conversion.  This is needed for 4ch-only devices to
    play monaural/stereo data.
2002-03-17 16:14:21 +00:00
kent 2b2d118e66 Rename aurateconvproto.h to aurateconv.h. 2002-03-17 11:36:37 +00:00
martin 1e802e7eba Clean up the application (layer 4) driver vs. B channel driver interface.
One step further on the way to make layer 4 drivers LKMable.
2002-03-17 09:45:58 +00:00
isaki ec23c6650c Fix infinate loop in recoding on vs0. 2002-03-17 03:20:40 +00:00
dbj 28819987b7 don't set prism2 bit when WI_NIC_LUCENT is detected 2002-03-17 02:52:59 +00:00
chs 4b6d0e2df5 lxtphy needs the ukphy_subr attribute now. 2002-03-17 01:34:48 +00:00
chs bbc8f01aef add a quirk for some disks I have that don't like tagged queuing. 2002-03-16 23:26:34 +00:00
jmcneill 94e84af5fb Backout addition of the VIA VT8233. 2002-03-16 21:45:49 +00:00
chs 9a418970cf decode the sub-system IDs on adaptec cards so we can differentiate between
multi-port cards (which need the shared-rom/intr stuff) and single-port cards
(which must not have it).  previously we enabled sharing for all adaptec cards,
which caused problems if you had multiple single-port cards on the same PCI bus.
2002-03-16 18:44:17 +00:00
chs 9846849435 in the TULIP_ROM_MB_21142_MII case of tlp_2114x_isv_tmsw_init(),
use "cp" instead of "ncp" as a temporary pointer into the SROM.
we still need the value of ncp here, it points to the next media block.
(update the copy of this code in tlp_21142_reset() just 'cause.)
this makes the BNC port on the Adaptec ANA-6911A work.
2002-03-16 17:38:35 +00:00
bouyer 0b16dfbbae Present the same interface to periph driver for ASYNC scsipi_command() in the
normal case, and in the polling or "no thread yet" cases:
don't return an error from scsipi_complete(), as the error should already have
been handled in scsipi_complete() and eventually periph driver callbacks.
Should fix kern/15190.
2002-03-16 17:21:19 +00:00
jmcneill 5f17e8f802 Add support for the VT8233 AC'97. 2002-03-16 17:20:05 +00:00
tsutsui ce457aa10e Fix a couple of typo:
- s/ehci/uhci/ (in unused arg of macro)
- s/ohci/uhci/ (in panic message)
2002-03-16 16:13:41 +00:00
tsutsui e01954f52a Fix a couple of typo:
- s/ehci/ohci/ (in unused arg of macro)
- s/uhci/ohci/ (in debug message)
2002-03-16 16:11:18 +00:00
ichiro 66ae17a426 add device TDK USB-PDC Adapter UPA9664 2002-03-16 16:10:19 +00:00
jmcneill 9bcb29f652 Add multiple voice support to the ESS Allegro-1 / Maestro-3 family of
audio accelerators.

Mixing is done in hardware by the ASSP, but is limited to 4 simultaneous
channels due to the restricted "minisrc" image that we are currently
working with.

Due to limitations in the audio subsystem, I'm currently attaching multiple
'audio' devices to 'esa', one for each voice. Because of this hack, the
default ESA_NUM_VOICES is 1.
2002-03-16 14:34:00 +00:00
isaki 81b3e9fb81 Fix mis-increment bug in converter msm6258_ulinear8_to_adpcm().
This fix needs factor_denom.
2002-03-16 09:00:42 +00:00
isaki ae997346b5 Add factor_denom, a denominator of factor,
in 'struct audio_param' for vs0 on x68k.

{hw,user}_bytes_per_sample is changed to {hw,user}_bits_per_sample
to handle 4bit/sampling.
2002-03-16 08:58:49 +00:00
martin a4b1277fd2 Ooops, "isdnbch" realy is "isdnbchan". 2002-03-15 22:29:49 +00:00
martin 66c41c89cb Adapt ISDN devices to their new names. Sort. 2002-03-15 22:11:05 +00:00
kent 3ca7d89bcf uaudio_set_params(): Set conversions:
- 8bit slinear/ulinear to 16bit slinear for playing
  - 16bit slinear to 8bit slinear/ulinear for recording
2002-03-15 17:20:14 +00:00
kent 569fb75aef audio.c: revert a part of previous change.
auconv.c: correct handling of size parameter.
2002-03-15 14:55:03 +00:00
kent a5bad132ba Fix a bug of audio_read() in a case that params->factor is not 1. 2002-03-15 14:35:32 +00:00
martin f4be3308da Psssst, don't tell anybody I commited this.
Add an ugly hack, #ifdef WI_AT_BIGENDIAN_BUS_HACK, to make the wi driver
access the underlying bus in big endian byte order.

This makes it possible to use this driver (probably one of the most
interesting ones) in the pcmcia slot of a stp4020 (nell) adapter at sbus. The
sparc ports bus_space_{read,write}_* macros do not provide a way to do this
cleanly now as they ignore the bus_space_tag_t parameter.

XXX - make bus_space_{read,write}_* on sparc do the right thing.
2002-03-15 13:15:36 +00:00
tsutsui f54d57e135 Remove an arg name in prototype declaration. 2002-03-15 12:57:21 +00:00
tacha 52d9a1d306 Use appropriate emulation functions and set ADC rate(not DAC date!) for recording.
Now /dev/audio with auich becomes usable.
2002-03-15 07:16:10 +00:00
eeh 5f84db4b34 Get rid of bus_type_t. 2002-03-15 07:00:34 +00:00
chs 1ba402084f assume that 21143 SROM info blocks are in extended format (as the spec
requires), even if the bit to indicate this is not set.
this makes Phobos P430 4-port cards work.
2002-03-14 04:44:34 +00:00
chs e444e2ddd4 regen 2002-03-14 04:41:09 +00:00
chs dc3bc0c490 add support for LXT971 PHYs. 2002-03-14 04:40:26 +00:00
ad 5d95c4499b Fix botch in previous. 2002-03-13 23:17:18 +00:00
wiz 3c20f3f606 Fix some typos in comments. 2002-03-13 22:23:50 +00:00
ad 0cf4c60b83 zskbd_keydesctab -> lkkbd_keydesctab 2002-03-13 15:21:30 +00:00
ad 690cf19e33 Give wskbdmap_lk201.c its own attribute. 2002-03-13 15:18:19 +00:00
ad b89e39b91a Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
ad cf9ef8999f Clean up. 2002-03-13 10:42:56 +00:00
ad 4a032cc0fb Set RI_FORCEMONO so that wscons doesn't try to use colors (mfb is an 8-bpp
device with a depth of 1).
2002-03-13 10:07:14 +00:00
chs 5d8f761ba0 support the 4-port boards with the Cogent OUI as well. 2002-03-13 05:05:38 +00:00
yamt 05bfd84f7c fix a bug that timevals are compared incorrectly. 2002-03-13 04:36:49 +00:00
chs fcbc075a7a support ANA-6944A boards (in addition to ANA-6922). 2002-03-13 04:15:05 +00:00
kent 3d212e0ce0 Fix a typo in a comment. 2002-03-13 03:48:19 +00:00
kent 33525eb269 Accept 24bit precision. 2002-03-12 15:12:03 +00:00
uwe 4b6b8f2e41 Fix whitespace nits (oops). 2002-03-12 06:00:42 +00:00
uwe a05702eaac Rework the driver to add EBus DMA support and improve APC DMA support.
Audio-related stuff is left almost intact.

* support audiocs at ebus playback and capture
    tested on krups and u5 (thanks, martin)
* make first attempt at supporting audiocs at sbus capture
* nb: full-duplex is not tested
* while here, fix CSAUDIO_MONITOR_MUTE to be of CSAUDIO_MONITOR_CLASS
    i.e. outputs.monitor.mute -> monitor.monitor.mute

Ok by pk, eeh.
2002-03-12 04:48:28 +00:00
uwe 40a8bc1d34 Drop ebus_bus_map(), use plain bus_space_map() instead. 2002-03-12 00:32:30 +00:00
joda 642cb4cedf regen 2002-03-11 23:19:01 +00:00
joda e981250262 some devices found in a dell machine 2002-03-11 23:17:37 +00:00
pk 56d115aa57 `bus_type_t' is gone. 2002-03-11 16:01:57 +00:00
pk f61bdee8e7 Get rid of `bus_type_t' and use BUS_ADDR() (in sbus_bus_map()) to construct
a `bus_addr_t' to pass on to bus_space_map().

Drop `va' argument from sbus_bus_map(); it should not be used by MI Sbus
drivers.
2002-03-11 16:00:55 +00:00
kent 289a98c007 Fix a typo in a comment.
Remove some unnecessary whitespace.
2002-03-11 14:59:57 +00:00
christos 071d0cb34b Search for space to attach a 3c562d correctly. From Hayakawa Koichi
<haya@netbsd.org>, thanks.
2002-03-10 22:28:02 +00:00
christos 07fb02cbcb Undo my previous change that worked around a problem attaching a 3c562d.
This is handled correctly now in the driver itself. From Hayakawa Koichi
<haya@netbsd.org>, thanks.
2002-03-10 22:27:04 +00:00
christos 7ef1545f01 PR/15839: Peter Seebach: PS/2 driver improvements 2002-03-10 22:21:21 +00:00
lukem cd19d52695 * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
augustss 42314426c9 Regen. 2002-03-10 19:55:55 +00:00
augustss 861a9e05a1 Add some WLAN devices. 2002-03-10 19:55:23 +00:00
augustss 101cc60a48 Don't define ACPI_BUT_DEBUG here. 2002-03-10 19:55:01 +00:00
cyber 7e4db265ee _io_alloc and _io_map work in pairs, dont try to do anything with the data
until afterward the _io_map.
In some pcmcia chipsets the _io_alloc is a noop.
2002-03-10 19:20:50 +00:00
augustss 7cf6202cca Fix a typo. 2002-03-10 18:46:35 +00:00
kent 8574f78760 auich_set_params() sets 2 to hw_channels whenever monaural format is requested. 2002-03-10 16:48:58 +00:00
martin e41836739f Remove another old debug message.
Return the real mapping size in *_mem_map and *_io_map.
Minor cleanup.
2002-03-10 16:18:44 +00:00
martin df4ebf76f9 Regen (seems I forgot that after TDK/Elsa ISDN MCall addition) 2002-03-10 15:13:52 +00:00
jmcneill 023d9c6eb8 Correctly enable/disable the low-pass filter, depending on the sample rate.
This fixes timing issues when playing back at 48kHz (noticable using
pkgsrc/graphics/mplayer and DivX ;-) streams).
2002-03-10 14:57:31 +00:00
ichiro 8596bfd754 fix 128bit WEP work with Prism2 Card.
from FreeBSD
2002-03-10 14:43:38 +00:00
itohy d5f39a2d9c Add explicit support of OPL3-SA2 (YMF711).
Not well tested....
2002-03-10 13:57:10 +00:00
martin e889f54f2f Adjust some unused register offsets to the new world order and fix a
comment.
2002-03-10 11:55:50 +00:00
martin 7e219b424d Remove RAY_USE_AMEM. This option claimed to use attribute memory access
for the registers, which was true, but actually the same as the driver
did without this option.

What it realy did is work around a stupid bug in the driver that did not
use the "offset" result from the pcmcia_mem_map call mapping the CIS memory.

We got away with this for a long time since on i386 and typical pcmcia
bridged the offset returned will be 0. It always failed (without
RAY_USE_AMEM=1) if the check for a different function CCR aliases in pcmcia.c
failed and mapped the CCR base new - this time at the CCR base of this
function (0xf00), so all register acceses (that had 0xf00 added) happened
way off in neverland.

Now we do not hardcode the CCR base to the register definitions, but
instead use the offset returned by pcmcia_mem_map. This makes the driver
work with and without CCR base aliases being found.
2002-03-10 11:32:18 +00:00
jdolecek 6cfc5b796f use TAILQ_FIRST()/TAILQ_NEXT()/TAILQ_EMPTY macros rather than dereferencing
appropriate structure members
2002-03-10 08:55:40 +00:00
augustss 5cd0234a24 Regen. 2002-03-10 02:58:35 +00:00
augustss bb70169d38 Add vendor Intersil. 2002-03-10 02:58:14 +00:00
augustss 00c6ccf059 Regen. 2002-03-10 02:55:26 +00:00
augustss 61b69e8d60 Add Pen Driver USB Disk. 2002-03-10 02:54:57 +00:00
augustss c93a7a4d14 Add a nic I don't really know much about, but it's used on my D-Link card. 2002-03-10 00:16:47 +00:00
kent 9fad006955 Move prototypes of sampling rate functions to aurateconvproto.h. 2002-03-09 20:35:28 +00:00
kent a1f23f2a90 Move sampling rate conversion functions to aurateconv.c.
Introduce "aurateconv" attribute for audio devices.
Add aurateconv to uaudio and auich.
(due to kern/15845 and kern/15848)
2002-03-09 20:30:42 +00:00
bjh21 4aec2a6382 Regen: Morley user/analogue. 2002-03-09 13:45:13 +00:00
bjh21 903ce8c1e3 Add Morley user/analogue podule. 2002-03-09 13:44:09 +00:00
toshii f9d3d32c2e Fix splaudio/splx botch. 2002-03-09 07:25:41 +00:00
ichiro f0c89eaf40 add device
TDK USB-PHS Adapter UHA6400
2002-03-09 06:06:11 +00:00
tacha 767679dbe9 Add new two convert functions slinear16_to_alaw_[lb]e. 2002-03-09 05:39:00 +00:00
martin dfbd0bc7b8 Shuffle around some initialization code a bit.
Configure power supply on VPP1 at 5V when powering up a socket.
Get rid of stray interrupts.
Make the driver quiet for normal operation when not in debugging mode.

This makes ray0 at nell0 actually work when compiled with RAY_USE_AMEM=1.
2002-03-08 21:33:43 +00:00
thorpej a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
kent ad276dda9e free_all_endpoints(): Fix a problem with disabled device. 2002-03-08 17:24:06 +00:00
ad dbd8140c1f PR 15552: don't explode if the board fails to respond during initalization. 2002-03-08 11:37:04 +00:00
thorpej 4c3cc0bfe3 Fix printf format on LP64. 2002-03-08 02:30:54 +00:00
christos 833f408cd1 stupid void pointers... tl_init() needs struct ifnet *... 2002-03-07 21:42:20 +00:00
kent c329c38eef Sampling rate and mono-stereo conversion described in
http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html

auconv.c: Add conversion functions

audio.c: Sample alignment, calling conversion functions, etc.

audio_if.h: Add four hw_* members to "struct audio_params"

audiovar.h: Add conversion buffers, etc.

auich and uaudio: Add conversion request code to *_set_params().
2002-03-07 14:37:02 +00:00
mjacob 1d228ae84c Disable RIO (reduced interrupt operation) for 2200 boards- it seemed like
it worked- but I ran into a case with a 2204 where commands were being lost
right and left. Best be safe.

For target mode, or things called if we call isp_handle_other response- note
that we might have dropped locks by changing the output pointer so we bail
from the loop. It's the responsibility of the entity dropping the lock to
make sure that we let the f/w know we've read thus far into the response
queue (else we begin processing the same entries again- blech!).
2002-03-07 00:14:04 +00:00
frueauf 089f361f5b Make this work after it got broken a year ago in r1.15 (pasto?):
In qeattach() sc->sc_rb.rb_dmabase needs to be set after the buffer got
loaded via bus_dmamem_map(), not before.

Fixes my own pr kern/15817.
2002-03-06 19:10:58 +00:00
jmcneill 9481b68d9a Fix another typo that I missed last time (foo -> ESA_foo) 2002-03-06 18:30:31 +00:00
jmcneill b9083c85dc Fix a few typos (foo -> ESA_foo). 2002-03-06 18:28:07 +00:00
uch 3d0f70f7fc remove ite8181video's bivideo dependency. 2002-03-06 15:00:04 +00:00
dbj 5c7e9abe49 return EINPROGRESS instead of EINVAL when trying to read
the results of an AP scan that is not finished
2002-03-06 14:41:39 +00:00
tsutsui c155b0375f Major overhaul of trm(4) driver:
- Change structures for each device to make them more suitable with
  our scsipi mid-layer.
- Use ADAPTER_REQ_SET_XFER_MODE callback.
- Cleanup misc functions/structures/style.

XXX Tagged queuieng support is disabled for now.
XXX Maybe we should have common library of the scsi protocol engine
XXX to share it among all other drivers..
2002-03-06 12:32:49 +00:00
itohy 1990961dc9 Fix ADPCM playback/recording. 2002-03-06 07:12:02 +00:00
nathanw 2a72ef3147 Remove a variable that is unused after the previous ALTQ commit. 2002-03-06 05:33:05 +00:00