Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/cs4280.c
RevisionDateAuthorComments
 1.77  08-Feb-2024  andvar fix misplaced or missing "e" in words with "ment" ending (argument, implement,
increment, decrement, alignment), in comments, documentation, log messages.
 1.76  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.75  24-Dec-2022  andvar s/reqest/request/, s/requst/request/ and s/reuqest/request/ in comments.
 1.74  09-Aug-2021  andvar s/fist/first/
 1.73  03-Feb-2021  isaki Remove code no longer used.
The code that used sc->{halt_input,halt_output} function pointer
was removed in 2004. (see cs428x.c rev 1.7)
 1.72  08-May-2019  isaki branches: 1.72.10;
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.71  16-Mar-2019  isaki branches: 1.71.2;
Use C99 style struct initializer to audio_hw_if.
 1.70  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.69  07-Jul-2016  msaitoh branches: 1.69.16; 1.69.18;
KNF. Remove extra spaces. No functional change.
 1.68  21-Sep-2014  christos branches: 1.68.2;
remove more old pci_findvendor code
 1.67  21-Sep-2014  christos Merge the 3 copies of devlist2h.awk that deal with 16 bit key and value
pairs to the compressed one that matt wrote.
 1.66  29-Mar-2014  christos make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.65  27-Oct-2012  chs branches: 1.65.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.64  30-Jan-2012  drochner branches: 1.64.6;
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
 1.63  24-Nov-2011  mrg branches: 1.63.2;
put back IPL_AUDIO and splaudio(), at the request of rmind. they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.
 1.62  23-Nov-2011  jmcneill Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

Add MP locking to the audio drivers.

Making the audio drivers MP safe is necessary before efforts
can be made to make the VM system MP safe.

The are two locks per device instance, an ISR lock and
a character device lock. The ISR lock replaces calls to
splaudio()/splx(), and will be held across calls to device
methods which were called at splaudio() before (e.g.
trigger_output). The character device lock is held across
calls to nearly all of the methods, excluding some only
used for initialization, e.g. get_locks.

Welcome to 5.99.57.
 1.61  04-Apr-2011  dyoung branches: 1.61.4; 1.61.6;
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args. Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
pci_intr_map() was a leftover from Xen 2. Probably a bug. I
stopped writing it. I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
Probably a bug. I use a temporary variable. I have not tested this
change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
Probably a bug. Use a local pci_attach_args. I have not tested
this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
caller's pci_attach_args. Probably a bug. Make a local copy of the
caller's pci_attach_args and modify the copy. I have not tested
this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
 1.60  25-May-2010  pgoyette branches: 1.60.2;
Revert earlier changes to callers of pci_find{vendor,product} since
the original routine entrypoint name has been restored.

Requested by dyoung@ and mrg@
 1.59  24-May-2010  pgoyette Update all callers of the pci_find{vendor,product} routines to now call
these routines through their global pointers.
 1.58  22-May-2010  pgoyette When PCIVERBOSE is not included, pci_findvendor() and pci_findproduct()
can return NULL. Defend against this and print the values in hex if we
can't decode them properly.
 1.57  24-Feb-2010  dyoung branches: 1.57.2;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.56  08-Jan-2010  dyoung branches: 1.56.2;
Expand PMF_FN_* macros.
 1.55  26-Nov-2009  njoly Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
 1.54  12-May-2009  cegger use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
 1.53  06-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.52  06-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.51  21-Mar-2008  dyoung branches: 1.51.4; 1.51.16; 1.51.18;
Use aprint_*_dev() instead of accessing struct device member dv_xname
directly.
 1.50  21-Mar-2008  dyoung pci_activate() expects for its void * argument to be a device_t,
so change the type of the argument to device_t. Update each use
of pci_activate().

Use device_t and accessors. Use aprint_*_dev().
 1.49  29-Feb-2008  dyoung Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.48  09-Dec-2007  jmcneill branches: 1.48.6; 1.48.10;
Merge jmcneill-pm branch.
 1.47  19-Oct-2007  ad branches: 1.47.4; 1.47.6;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.46  15-Jun-2007  joerg branches: 1.46.6; 1.46.8; 1.46.12;
Fix ACPI suspend/resume support of clcs and clct. Based on auich and
hints from jmcneill@.
 1.45  16-Nov-2006  christos branches: 1.45.2; 1.45.6; 1.45.8; 1.45.10; 1.45.16;
__unused removal on arguments; approved by core.
 1.44  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.43  24-Sep-2006  jmcneill Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.42  29-Aug-2006  christos branches: 1.42.2; 1.42.4;
fix incomplete initializer
 1.41  17-Aug-2006  christos Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
 1.40  06-Aug-2006  jmcneill PR/12843: Workaround for CS4280 on IBM ThinkPads. From Stephane Witzmann.

Note: This workaround conflicts with piixpm(4); you will need to disable
the piixpm driver if you need this fix.
 1.39  17-Jun-2006  christos re-factor the pci powestate api. reviewed by gimpy
 1.38  15-Apr-2006  jmcneill branches: 1.38.2; 1.38.4;
Add support for the Turtle Beach Santa Cruz. Special thanks to Stephane
Witzmann for spending so much time debugging this.

Fixes: kern/18880, kern/24488, port-i386/14260, kern/12603, kern/12723,
kern/24957, kern/23584

Tested on i386 (Stephane Witzmann), alpha (me).
 1.37  29-Jan-2006  dsl branches: 1.37.2; 1.37.4; 1.37.6; 1.37.8; 1.37.10;
Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
 1.36  11-Dec-2005  christos branches: 1.36.2;
merge ktrace-lwp.
 1.35  28-Jun-2005  thorpej branches: 1.35.2;
Use ANSI function decls and static.
 1.34  15-Jan-2005  kent ansify and KNF
 1.33  10-Jan-2005  kent 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
 1.32  09-Nov-2004  kent branches: 1.32.2;
remove mixer setting code in *_attach() because ac97_attach() does it.
 1.31  29-Oct-2004  yamt constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.30  22-Sep-2004  kent ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case.

PR: kern/26973
 1.29  05-Aug-2004  drochner simplify some pointer arithmetics which uses typecasts on the LHS
so that gcc-3.4 doesn't complain
 1.28  09-Jul-2004  mycroft Attempt to make these safer against stray interrupts.
 1.27  23-Apr-2004  itojun pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
 1.26  03-May-2003  wiz branches: 1.26.2; 1.26.4;
DMA, not dma nor Dma.
 1.25  31-Jan-2003  thorpej Use aprint_*().
 1.24  23-Dec-2002  tsutsui Replace magic numbers for power management control with PCI_PMCSR* macros.

XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
 1.23  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.22  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.21  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.20  31-May-2002  augustss Some casts in printf().
 1.19  15-Nov-2001  lukem branches: 1.19.8;
don't need <sys/types.h> when including <sys/param.h>
 1.18  13-Nov-2001  lukem add RCSID
 1.17  03-Oct-2001  augustss Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
 1.16  18-Apr-2001  tacha branches: 1.16.2; 1.16.4;
rewrite suspend/resume routine. If you suspend while playing audio,
clcs and clct continue playing when resume.
 1.15  13-Feb-2001  tacha branches: 1.15.2;
Check and set PCI power management register. clcs now works when
warm boot from Windows.
 1.14  07-Feb-2001  tacha Split out common code to cs428x.c and cosmetic change to introduce
higher symmetry between cs4280.c and cs4281.c.

Also fix the problem rebooting from Windows. Relevant patch is contributed
from Shingo WATANABE <nabe@nabechan.org>.
 1.13  27-Jan-2001  augustss Sleep a little when closing the midi device to allow the UART to drain.
 1.12  18-Jan-2001  jdolecek constify
 1.11  15-Jan-2001  perry powerhook fixes, from thorpej, tested by me. Thinkpad T20 sound now perfect.
 1.10  15-Jan-2001  perry Fixes from OpenBSD via chopps. Audio now works on my Thinkpad T20
provided I don't suspend the thing...
 1.9  28-Dec-2000  sommerfeld Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
 1.8  26-Nov-2000  takemura Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().
 1.7  20-Sep-2000  augustss branches: 1.7.2;
Apply a patch from the driver author (originally from OpenBSD).
 1.6  19-Jul-2000  augustss Add MIDI support. From Tatoku Ogaito.
 1.5  26-Jun-2000  simonb Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
 1.4  15-May-2000  thorpej branches: 1.4.4;
Use <dev/ic/ac97reg.h>
 1.3  15-May-2000  thorpej ac97.h -> ac97var.h
 1.2  14-Jan-2000  augustss Apply patches from Tatoku Ogaito (the author of the code).
 1.1  13-Dec-1999  augustss branches: 1.1.2;
Add a device driver for the Cirrus Logic CS4280 sound chip.
The code has been contributed by Tatoku Ogaito.
 1.1.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.8  06-May-2001  he Pull up revisions 1.7-1.8, 1.10-1.14, 1.16 (via patch, requested by he):
Add driver for Cirrus Logic CrystalClear PCI Audio CS4281.
 1.4.4.7  13-Mar-2001  he Apply patch (requested by tacha):
Correct checking of AC97 Input Slot Valid register bits.
 1.4.4.6  26-Feb-2001  he Pull up revision 1.15 (requested by tacha):
Fix problem when warm booting from Windows.
 1.4.4.5  26-Feb-2001  he Back out previous two pullups, they have "issues".
I must be getting rusty...
 1.4.4.4  26-Feb-2001  he Apply patch (requested by he):
Typo correction.
 1.4.4.3  26-Feb-2001  he Pull up revisions 1.7,1.10-1.11 (via patch, requested by perry):
Fixes so that this audio driver should work (hardware as in e.g.
IBM ThinkPad T20).
 1.4.4.2  19-Jul-2000  augustss Pull up 1.5-1.6 change: Add MIDI support.
Approved by thorpej.
 1.4.4.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.7.2.8  21-Apr-2001  bouyer Sync with HEAD
 1.7.2.7  12-Mar-2001  bouyer Sync with HEAD.
 1.7.2.6  11-Feb-2001  bouyer Sync with HEAD.
 1.7.2.5  18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.7.2.4  05-Jan-2001  bouyer Sync with HEAD
 1.7.2.3  08-Dec-2000  bouyer Sync with HEAD.
 1.7.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.2.1  20-Sep-2000  bouyer file cs4280.c was added on branch thorpej_scsipi on 2000-11-20 11:42:15 +0000
 1.15.2.7  29-Dec-2002  thorpej Sync with HEAD.
 1.15.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.15.2.5  20-Jun-2002  nathanw Catch up to -current.
 1.15.2.4  08-Jan-2002  nathanw Catch up to -current.
 1.15.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.15.2.2  08-Oct-2001  nathanw Catch up to -current.
 1.15.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.16.4.1  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.16.2.3  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.16.2.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.16.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.19.8.1  20-Jun-2002  gehenna catch up with -current.
 1.26.4.1  22-Sep-2004  jmc Pullup rev 1.30 (requested by kent in ticket #867)

ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case. PR#26973
 1.26.2.9  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.26.2.8  17-Jan-2005  skrll Sync with HEAD.
 1.26.2.7  14-Nov-2004  skrll Sync with HEAD.
 1.26.2.6  02-Nov-2004  skrll Sync with HEAD.
 1.26.2.5  24-Sep-2004  skrll Sync with HEAD.
 1.26.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.26.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.26.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.26.2.1  03-Aug-2004  skrll Sync with HEAD
 1.32.2.3  09-Jan-2005  kent audio_hw_if change
* make open() and close() optional
* add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
to round_blocksize()
 1.32.2.2  03-Jan-2005  kent * remove stream_filter_list_append and stream_filter_list_prepend
* add stream_filter_list_t::{append(), prepend(), set()}
 1.32.2.1  02-Jan-2005  kent * adopt the filter pipeline framework
* follow ac97_attach() change
 1.35.2.7  24-Mar-2008  yamt sync with head.
 1.35.2.6  17-Mar-2008  yamt sync with head.
 1.35.2.5  21-Jan-2008  yamt sync with head
 1.35.2.4  27-Oct-2007  yamt sync with head.
 1.35.2.3  03-Sep-2007  yamt sync with head.
 1.35.2.2  30-Dec-2006  yamt sync with head.
 1.35.2.1  21-Jun-2006  yamt sync with head.
 1.36.2.1  01-Feb-2006  yamt sync with head.
 1.37.10.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.37.8.1  19-Apr-2006  elad sync with head.
 1.37.6.4  03-Sep-2006  yamt sync with head.
 1.37.6.3  11-Aug-2006  yamt sync with head
 1.37.6.2  26-Jun-2006  yamt sync with head.
 1.37.6.1  24-May-2006  yamt sync with head.
 1.37.4.1  22-Apr-2006  simonb Sync with head.
 1.37.2.1  09-Sep-2006  rpaulo sync with head
 1.38.4.1  13-Jul-2006  gdamore Merge from HEAD.
 1.38.2.1  19-Jun-2006  chap Sync with head.
 1.42.4.2  10-Dec-2006  yamt sync with head.
 1.42.4.1  22-Oct-2006  yamt sync with head
 1.42.2.1  18-Nov-2006  ad Sync with head.
 1.45.16.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.45.10.1  11-Jul-2007  mjf Sync with head.
 1.45.8.2  23-Oct-2007  ad Sync with head.
 1.45.8.1  15-Jul-2007  ad Sync with head.
 1.45.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.45.2.1  18-Jun-2007  liamjfoy Pull up following revision(s) (requested by joerg in ticket #733):
sys/dev/pci/cs4280.c: revision 1.46
sys/dev/pci/cs4281.c: revision 1.34
sys/dev/pci/cs428x.h: revision 1.13
Fix ACPI suspend/resume support of clcs and clct. Based on auich and
hints from jmcneill@.
 1.46.12.1  25-Oct-2007  bouyer Sync with HEAD.
 1.46.8.3  23-Mar-2008  matt sync with HEAD
 1.46.8.2  09-Jan-2008  matt sync with HEAD
 1.46.8.1  06-Nov-2007  matt sync with HEAD
 1.46.6.4  08-Dec-2007  jmcneill Rename pnp(9) -> pmf(9), as requested by many.
 1.46.6.3  06-Nov-2007  joerg Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
three layers (class logic, device logic, bus logic), all of them being
optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
not suspended (even partially), device_is_enabled returns true if the
device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
pnp_system_resume. Before running any suspend/resume handlers, check
that all currently attached devices support power management and bail
out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
can register what events they are interested in and whether the handler
should be global or not.
- Introduce device_active API for devices to mark themselve in use from
either the system or the device. Use this to implement the idle handling
for audio and input devices. This is intended to replace most ad-hoc
watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.
 1.46.6.2  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.46.6.1  04-Oct-2007  joerg Convert clcs(4) and clct(4) to PNP power management. This should also
allow more then one instance of each to resume correctly.
 1.47.6.1  11-Dec-2007  yamt sync with head.
 1.47.4.1  26-Dec-2007  ad Sync with head.
 1.48.10.1  03-Apr-2008  mjf Sync with HEAD.
 1.48.6.1  24-Mar-2008  keiichi sync with head.
 1.51.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.51.16.2  12-Dec-2008  ad Checkpoint work in progress.
 1.51.16.1  11-Dec-2008  ad Checkpoint work in progress.
 1.51.4.3  11-Aug-2010  yamt sync with head.
 1.51.4.2  11-Mar-2010  yamt sync with head
 1.51.4.1  16-May-2009  yamt sync with head
 1.56.2.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.56.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.57.2.2  21-Apr-2011  rmind sync with head
 1.57.2.1  30-May-2010  rmind sync with head
 1.60.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.61.6.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.61.6.1  19-Nov-2011  jmcneill port ad-audiomp2 branch changes to 5.99.56
todo:
- port ad-audiomp2 pcppi changes
- these drivers need to be fixed:
- emuxki
- gcscaudio
- hdafg
- uaudio
- umidi
- MD audio drivers
 1.61.4.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.61.4.2  30-Oct-2012  yamt sync with head
 1.61.4.1  17-Apr-2012  yamt sync with head
 1.63.2.1  18-Feb-2012  mrg merge to -current.
 1.64.6.3  03-Dec-2017  jdolecek update from HEAD
 1.64.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.64.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.65.2.1  18-May-2014  rmind sync with head
 1.68.2.1  09-Jul-2016  skrll Sync with HEAD
 1.69.18.1  10-Jun-2019  christos Sync with HEAD
 1.69.16.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.71.2.3  05-May-2019  isaki Remove encoding conversions on recording.
These are handled in the upper layer now.
 1.71.2.2  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.71.2.1  21-Apr-2019  isaki Adapt cs428x families to audio2.
- recording on cs4280 seems to have its own conversion.
I will see it later but first make it compilable.
 1.72.10.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed