History log of /src/sys/dev/isapnp/wss_isapnp.c |
Revision | | Date | Author | Comments |
1.31 |
| 07-Oct-2021 |
uwe | Fix KASSERT triggered when attaching opl at wss@isapnp.
Not really tested (no h/w), but this problem is exhibited by the congruent code in acpi and pnpbios attachments.
wss has two attributes, "wss" and "audiobus", and this call didn't specify an iattr for opl to attach to. config_search_internal asserts that when no iattr is specified, the parent should only have one.
|
1.30 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.29 |
| 24-Apr-2021 |
thorpej | branches: 1.29.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.28 |
| 08-May-2019 |
isaki | branches: 1.28.12; Merge isaki-audio2 branch, the overhaul of audio subsystem. - Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible).
Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
|
1.27 |
| 22-Nov-2011 |
jakllsch | branches: 1.27.50; 1.27.54; Set "mode" to 2 at the correct time. Fixes recording on some isapnp(4) wss(4) chips.
|
1.26 |
| 02-Jun-2011 |
tsutsui | branches: 1.26.2; Split device_t/softc of all ad1848 variants properly. Compile test only.
Please check all attribute users in all files.* on device_t/softc split.
XXX: not sure if gus(4) needs device_t in ad1848_isa_softc
|
1.25 |
| 12-May-2009 |
cegger | branches: 1.25.4; 1.25.6; 1.25.10; struct device * -> device_t, no functional changes intended.
|
1.24 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.23 |
| 28-Apr-2008 |
martin | branches: 1.23.14; Remove clause 3 and 4 from TNF licenses
|
1.22 |
| 08-Apr-2008 |
cegger | branches: 1.22.2; 1.22.4; use aprint_*_dev and device_xname
|
1.21 |
| 19-Oct-2007 |
ad | branches: 1.21.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.20 |
| 16-Nov-2006 |
christos | branches: 1.20.8; 1.20.22; 1.20.24; 1.20.28; __unused removal on arguments; approved by core.
|
1.19 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.18 |
| 29-Mar-2006 |
thorpej | branches: 1.18.8; 1.18.10; Use device_private().
|
1.17 |
| 11-Dec-2005 |
christos | branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12; merge ktrace-lwp.
|
1.16 |
| 13-Jan-2005 |
kent | branches: 1.16.10; ansify and KNF
|
1.15 |
| 04-Dec-2003 |
keihan | netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally "NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
|
1.14 |
| 02-Oct-2002 |
thorpej | branches: 1.14.6; Add trailing ; to CFATTACH_DECL.
|
1.13 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.12 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.11 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.10 |
| 06-Sep-1999 |
rh | branches: 1.10.14; 1.10.16; Add opl at wss for isapnp devices w/o MAD chip.
|
1.9 |
| 22-Mar-1999 |
mycroft | Nuke sc_iooffs from orbit. This is exactly what bus_space_subregion() is for.
|
1.8 |
| 22-Mar-1999 |
mycroft | Reject variant numbers which are too large (so that a new version of isapnpdevs with an old driver will not lose mysteriously).
|
1.7 |
| 22-Mar-1999 |
mycroft | Add support for switching Aztech chips into WSS mode.
|
1.6 |
| 23-Feb-1999 |
nathanw | Update for recent changes in wssvar.h.
|
1.5 |
| 25-Nov-1998 |
augustss | Make the copyright header conform to the NetBSD template.
|
1.4 |
| 25-Aug-1998 |
pk | Adjust for ad1848.c split.
|
1.3 |
| 28-Jul-1998 |
augustss | Improve chances of success and make it compile again.
|
1.2 |
| 23-Jul-1998 |
christos | Create a master list of pnp logical and compatibility device codes instead of hard-coding it into each driver and use a centralized probe function.
|
1.1 |
| 30-Jun-1998 |
augustss | Add WSS attachment for ISAPnP. Not tested yet.
|
1.10.16.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.10.16.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.10.14.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.10.14.1 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.14.6.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.14.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.14.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.14.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.16.10.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.16.10.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.16.10.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.17.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.17.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.17.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.17.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.17.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.18.10.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.18.10.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.18.8.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.20.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.20.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.20.22.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.20.8.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.21.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.22.4.2 |
| 16-May-2009 |
yamt | sync with head
|
1.22.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.22.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.23.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.25.10.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.25.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.25.4.1 |
| 12-Jun-2011 |
rmind | sync with head
|
1.26.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.27.54.1 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.27.50.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.28.12.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.29.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|