Home | History | Annotate | Download | only in acpi
History log of /src/sys/dev/acpi/wss_acpi.c
RevisionDateAuthorComments
 1.38  07-Oct-2021  uwe Also print the device name with aprint_naive, like wss@pnpbios does.
 1.37  06-Oct-2021  uwe Don't use aprint_normal_dev("") to print the device name.

wssattach eventually calls ad1848_attach that prints the chip name
with ": %s". Usually that is a continuation of the attachment line,
e.g.

audiocs0 at ebus0 bar 14 offset 0x200000 line 3: CS4231A

but the wss? at acpi?: ... line we print is so long that we terminate
it and start a new one exclusively for ad1848_attach. Hence we do NOT
want the colon that _dev version supplies, it will be supplied by the
callee.
 1.36  06-Oct-2021  uwe Fix KASSERT triggered when attaching opl at wss.

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.

The same problem probably exists for other wss attachments, as opl is
not attached from wssattach, but from each wss_*_attach, so they need
a similar change.
 1.35  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.34  24-Apr-2021  thorpej branches: 1.34.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.33  04-May-2020  jdolecek branches: 1.33.4;
constify
 1.32  08-May-2019  isaki 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.31  14-Jul-2016  msaitoh branches: 1.31.18; 1.31.22;
KNF. No functional change.
 1.30  15-Jan-2016  joerg Don't skip entries in the table, one increment per iteration is enough.
 1.29  02-Jun-2011  tsutsui branches: 1.29.12; 1.29.30;
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.28  02-Jun-2011  nonaka fix compile failure.
 1.27  02-Oct-2010  gsutre branches: 1.27.2; 1.27.6;
Drop _HID requirement for attachment under acpi(4). From now on,
drivers attaching to the acpinodebus interface should not assume
that the passed acpi_devnode has a valid _HID.

ok jruoho@
 1.26  05-Mar-2010  jruoho branches: 1.26.2;
Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.
 1.25  18-Aug-2009  cegger branches: 1.25.2;
with new ACPICA, idstr may be NULL.
Check against NULL, this fixes a crash on my HP Pavilion dv9700 Laptop.
While here simplify the loop via __arraycount()
 1.24  18-Aug-2009  jmcneill Switch to ACPICA 20090730, and update for API changes.
 1.23  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.22  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.21  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.20  17-Feb-2009  jmcneill Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
become:
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 1.19  05-Apr-2008  cegger branches: 1.19.4; 1.19.12; 1.19.14; 1.19.18; 1.19.22;
use aprint_*_dev and device_xname
 1.18  19-Oct-2007  ad branches: 1.18.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.17  16-Nov-2006  christos branches: 1.17.8; 1.17.22; 1.17.24; 1.17.28;
__unused removal on arguments; approved by core.
 1.16  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.15  20-Feb-2006  kochi branches: 1.15.14; 1.15.16;
use aprint_*
 1.14  11-Dec-2005  christos branches: 1.14.2; 1.14.4; 1.14.6;
merge ktrace-lwp.
 1.13  01-May-2004  kochi branches: 1.13.12;
specify static where appropriate.
 1.12  11-Apr-2004  kochi Clean up memory allocated during autoconfiguration
 1.11  11-Apr-2004  kochi change acpi_resource_parse API to support _PRS parsing as well as _CRS
 1.10  11-Apr-2004  kochi return (x) -> return x
use consitent variable name for ACPI_STATUS
 1.9  03-Nov-2003  mycroft More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.
 1.8  03-Nov-2003  mycroft Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
 1.7  03-Nov-2003  kochi * now the size of ACPI_DEVICE_INFO is variable:
it can now accomodate multiple _CIDs
sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
_CIDs are also taken into account now as well as _HID
 1.6  31-Oct-2003  mycroft Catch up with ABI changes in ACPI-CA. Some additional changes to acpi_bat to
set the VALID bits correctly, so we don't report garbage for missing batteries.
 1.5  13-Jan-2003  mrg branches: 1.5.2;
pull across the quirk table from the wss@pnpbios driver and use it identically.
now wss@acpi works on my dell inspiron 3500.
 1.4  30-Dec-2002  matt remove declaration of wss_acpi_config_interrupts since it no longer exists.
 1.3  28-Dec-2002  jmcneill branches: 1.3.2;
We no longer need to delay the call to wssprobe, so remove the disgusting
config_interrupts hack.
 1.2  28-Dec-2002  matt Fix an uninitialized variable.
 1.1  28-Dec-2002  jmcneill Add 'com at acpi' and 'wss at acpi' glue. These are both working great on
my ThinkPad 600E.

XXX isa_dmainit isn't called early enough for the 'audio at wss' attachment
XXX to work, so I'm deferring the call to 'wssattach' until later on. This
XXX should be fixed soon.
 1.3.2.4  15-Jan-2003  thorpej Sync with HEAD.
 1.3.2.3  03-Jan-2003  thorpej Sync with HEAD.
 1.3.2.2  29-Dec-2002  thorpej Sync with HEAD.
 1.3.2.1  28-Dec-2002  thorpej file wss_acpi.c was added on branch nathanw_sa on 2002-12-29 20:45:31 +0000
 1.5.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1  03-Aug-2004  skrll Sync with HEAD
 1.13.12.3  27-Oct-2007  yamt sync with head.
 1.13.12.2  30-Dec-2006  yamt sync with head.
 1.13.12.1  21-Jun-2006  yamt sync with head.
 1.14.6.1  22-Apr-2006  simonb Sync with head.
 1.14.4.1  09-Sep-2006  rpaulo sync with head
 1.14.2.1  01-Mar-2006  yamt sync with head.
 1.15.16.2  10-Dec-2006  yamt sync with head.
 1.15.16.1  22-Oct-2006  yamt sync with head
 1.15.14.1  18-Nov-2006  ad Sync with head.
 1.17.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.17.24.1  06-Nov-2007  matt sync with HEAD
 1.17.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.17.8.1  23-Oct-2007  ad Sync with head.
 1.18.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.19.22.1  21-Apr-2010  matt sync to netbsd-5
 1.19.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.19.14.1  01-May-2009  snj Pull up following revision(s) (requested by jmcneill in ticket #498):
sys/dev/acpi/acpi_ec.c: revision 1.53
sys/dev/acpi/acpi_resource.c: revision 1.27
sys/dev/acpi/atppc_acpi.c: revision 1.16
sys/dev/acpi/attimer_acpi.c: revision 1.12
sys/dev/acpi/com_acpi.c: revision 1.28
sys/dev/acpi/fdc_acpi.c: revision 1.35
sys/dev/acpi/hpet_acpi.c: revision 1.4
sys/dev/acpi/joy_acpi.c: revision 1.9
sys/dev/acpi/lpt_acpi.c: revision 1.18
sys/dev/acpi/mpu_acpi.c: revision 1.9
sys/dev/acpi/pckbc_acpi.c: revision 1.31
sys/dev/acpi/pcppi_acpi.c: revision 1.11
sys/dev/acpi/ug_acpi.c: revision 1.5
sys/dev/acpi/wss_acpi.c: revision 1.20
sys/dev/acpi/ym_acpi.c: revision 1.6
Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
become:
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 1.19.12.2  28-Apr-2009  skrll Sync with HEAD.
 1.19.12.1  03-Mar-2009  skrll Sync with HEAD.
 1.19.4.5  09-Oct-2010  yamt sync with head
 1.19.4.4  11-Mar-2010  yamt sync with head
 1.19.4.3  19-Aug-2009  yamt sync with head.
 1.19.4.2  16-May-2009  yamt sync with head
 1.19.4.1  04-May-2009  yamt sync with head.
 1.25.2.2  22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.25.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.26.2.2  12-Jun-2011  rmind sync with head
 1.26.2.1  05-Mar-2011  rmind sync with head
 1.27.6.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.27.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.29.30.2  05-Oct-2016  skrll Sync with HEAD
 1.29.30.1  19-Mar-2016  skrll Sync with HEAD
 1.29.12.1  03-Dec-2017  jdolecek update from HEAD
 1.31.22.1  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.31.18.1  10-Jun-2019  christos Sync with HEAD
 1.33.4.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.34.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed