The NetBSD Project

CVS log for src/sys/dev/pci/cmpci.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.60.4.1 / (download) - annotate - [select for diffs], Sun Jan 14 15:24:06 2024 UTC (2 months, 4 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Pull up following revision(s) (requested by chs in ticket #542):

	sys/dev/pci/yds.c: revision 1.69
	sys/dev/pci/cmpci.c: revision 1.61
	sys/dev/pci/sv.c: revision 1.62
	sys/dev/pci/fms.c: revision 1.50

mpu / opl: add an interface attribute to config_found() calls for these

specify an interface attribute when attaching mpu and opl devices.
the PCI devices that are the parents of these midi devices
(cmpci, eso, fms, sv, yds) have two interface attributes:
"audiobus", and also one named the same as the parent device,
eg. "cmpci" has an interface attribute named "cmpci".
we must specify the latter one to attach these children.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jan 8 18:37:24 2024 UTC (3 months ago) by chs
Branch: MAIN
CVS Tags: HEAD
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored)

mpu / opl: add an interface attribute to config_found() calls for these

specify an interface attribute when attaching mpu and opl devices.
the PCI devices that are the parents of these midi devices
(cmpci, eso, fms, sv, yds) have two interface attributes:
"audiobus", and also one named the same as the parent device,
eg. "cmpci" has an interface attribute named "cmpci".
we must specify the latter one to attach these children.

Revision 1.60 / (download) - annotate - [select for diffs], Tue May 31 08:43:15 2022 UTC (22 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

fix various typos in comments, documentation and messages.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:14 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

Merge thorpej-cfargs2.

Revision 1.58.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 21:27:00 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Adapt to CFARGS().

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:57 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored)

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?).

Revision 1.57.8.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:13 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

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.

Revision 1.50.10.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:08 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.50.10.1: +2 -13 lines
Diff to previous 1.50.10.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Merge changes from current as of 20200406

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:10 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.56: +2 -13 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Feb 29 05:51:11 2020 UTC (4 years, 1 month ago) by isaki
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-cfargs
Changes since 1.56: +2 -13 lines
Diff to previous 1.56 (colored)

Remove rounding by 4 bytes on round_blocksize().
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.

Revision 1.50.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:15 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.50: +47 -144 lines
Diff to previous 1.50 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jun 8 08:02:38 2019 UTC (4 years, 10 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.55: +4 -3 lines
Diff to previous 1.55 (colored)

Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
  This eliminates need for audio.c to take care of such (old)
  drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
  It is handled in the audio layer now.

Revision 1.55 / (download) - annotate - [select for diffs], Sun May 12 13:40:19 2019 UTC (4 years, 11 months ago) by maya
Branch: MAIN
Changes since 1.54: +2 -10 lines
Diff to previous 1.54 (colored)

Remove unused function following isaki-audio2 merge.

Shows up when doing clang builds. From a.rin.

Revision 1.54 / (download) - annotate - [select for diffs], Wed May 8 13:40:18 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.53: +29 -108 lines
Diff to previous 1.53 (colored)

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

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Sat May 4 07:20:10 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.53.2.2: +3 -3 lines
Diff to previous 1.53.2.2 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Sun Apr 28 02:19:35 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.53.2.1: +28 -114 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored)

Adapt to audio2.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Sun Apr 21 05:11:22 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.53: +17 -10 lines
Diff to previous 1.53 (colored)

Use C99 style struct initializer to audio_format.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Mar 16 12:23:49 2019 UTC (5 years, 1 month ago) by isaki
Branch: MAIN
CVS Tags: isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

White space.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Mar 16 12:09:58 2019 UTC (5 years, 1 month ago) by isaki
Branch: MAIN
Changes since 1.51: +19 -30 lines
Diff to previous 1.51 (colored)

Use C99 style struct initializer to audio_hw_if.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:49 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.51 / (download) - annotate - [select for diffs], Sun Dec 9 11:14:01 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

use pci_intr_establish_xname() everywhere

Revision 1.45.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:07 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.45.6.2: +2 -7 lines
Diff to previous 1.45.6.2 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

update from HEAD

Revision 1.47.6.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:05 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47.6.2: +2 -7 lines
Diff to previous 1.47.6.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:11 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.49: +2 -7 lines
Diff to previous 1.49 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.47.6.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:42 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47.6.1: +3 -3 lines
Diff to previous 1.47.6.1 (colored) to branchpoint 1.47 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Mon Aug 15 09:30:22 2016 UTC (7 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Use the exact same argument for kmem_alloc and kmem_free; from brainy

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:03 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:41 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20160907
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.45.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:42 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.45.6.1: +4 -3 lines
Diff to previous 1.45.6.1 (colored) to branchpoint 1.45 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.42.12.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:24 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.42.12.2: +4 -3 lines
Diff to previous 1.42.12.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

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")

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:39 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Sat Mar 29 19:28:24 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored)

make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:14 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.45: +12 -11 lines
Diff to previous 1.45 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.42.12.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:23 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.42.12.1: +12 -11 lines
Diff to previous 1.42.12.1 (colored) to branchpoint 1.42 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:28 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.45: +12 -11 lines
Diff to previous 1.45 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.42.12.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:44 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.42: +48 -41 lines
Diff to previous 1.42 (colored)

sync with head

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:36 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.44: +3 -7 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

merge to -current.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 30 19:41:18 2012 UTC (12 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.44: +3 -7 lines
Diff to previous 1.44 (colored)

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.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Nov 24 03:35:58 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

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.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:35 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.42: +47 -36 lines
Diff to previous 1.42 (colored)

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.

Revision 1.42.14.2 / (download) - annotate - [select for diffs], Tue Nov 22 22:47:08 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.42.14.1: +2 -3 lines
Diff to previous 1.42.14.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

get rid of unused 'powerstate' callback in audio_hw_if

Revision 1.42.14.1 / (download) - annotate - [select for diffs], Sat Nov 19 21:49:41 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.42: +47 -35 lines
Diff to previous 1.42 (colored)

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

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:43 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.38.4.1: +4 -4 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Thu Nov 26 15:17:08 2009 UTC (14 years, 4 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Sat May 16 10:41:33 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.38: +7 -8 lines
Diff to previous 1.38 (colored)

sync with head

Revision 1.38.18.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:23 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.38: +7 -8 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 12 08:23:00 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.

Revision 1.40 / (download) - annotate - [select for diffs], Wed May 6 10:34:32 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.39: +6 -7 lines
Diff to previous 1.39 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.39 / (download) - annotate - [select for diffs], Wed May 6 09:25:14 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.38.16.1 / (download) - annotate - [select for diffs], Thu Dec 11 19:49:30 2008 UTC (15 years, 4 months ago) by ad
Branch: ad-audiomp2
Changes since 1.38: +48 -35 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Checkpoint work in progress.

Revision 1.36.16.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:37 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.36.16.1: +5 -8 lines
Diff to previous 1.36.16.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:36 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base
Branch point for: yamt-nfs-mp, jym-xensuspend, ad-audiomp2
Changes since 1.37: +7 -10 lines
Diff to previous 1.37 (colored)

use aprint_*_dev and device_xname

Revision 1.36.16.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:49 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.36: +8 -6 lines
Diff to previous 1.36 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 1 13:35:39 2008 UTC (16 years ago) by xtraeme
Branch: MAIN
Changes since 1.36: +8 -6 lines
Diff to previous 1.36 (colored)

Fix fallout from device_t/softc split to mpu(4):
always pass the mpu_softc to mpu_intr(). Found by Takeshi Nakayama.

Revision 1.35.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:28:42 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

sync with HEAD

Revision 1.28.10.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:32:37 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.10.3: +4 -4 lines
Diff to previous 1.28.10.3 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.35.14.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:45:55 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

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.

Revision 1.35.20.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:38:51 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:08:48 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:41 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.28.10.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:26 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.10.2: +11 -11 lines
Diff to previous 1.28.10.2 (colored) to branchpoint 1.28 (colored)

sync with head.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:55:12 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.34: +11 -11 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:17 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.34: +11 -11 lines
Diff to previous 1.34 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Tue Feb 27 14:16:19 2007 UTC (17 years, 1 month ago) by ad
Branch: ad-audiomp
Changes since 1.34: +34 -11 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Add MP locking for audio drivers.

Revision 1.28.10.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:43 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.10.1: +10 -7 lines
Diff to previous 1.28.10.1 (colored) to branchpoint 1.28 (colored)

sync with head.

Revision 1.32.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:42 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.32.4.1: +11 -11 lines
Diff to previous 1.32.4.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

sync with head.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:29 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.32: +9 -7 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:08 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base
Branch point for: yamt-idlelwp, ad-audiomp
Changes since 1.33: +11 -11 lines
Diff to previous 1.33 (colored)

__unused removal on arguments; approved by core.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:16 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.32: +15 -13 lines
Diff to previous 1.32 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:28 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.32: +15 -13 lines
Diff to previous 1.32 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:16 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.30: +5 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

sync with head

Revision 1.30.8.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:21 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30.8.1: +3 -2 lines
Diff to previous 1.30.8.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Aug 29 23:42:18 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

fix incomplete initializer.

Revision 1.28.10.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:03 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28: +28 -26 lines
Diff to previous 1.28 (colored)

sync with head.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:43 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with head.

Revision 1.30.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:27 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.30.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:00 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 11 23:54:39 2006 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

quell GCC 4.1 uninitialised variable warnings.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:42 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq
Changes since 1.29: +26 -26 lines
Diff to previous 1.29 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:48 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.18.2.5 / (download) - annotate - [select for diffs], Mon Jan 17 19:31:23 2005 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.4: +198 -373 lines
Diff to previous 1.18.2.4 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 15 15:19:52 2005 UTC (19 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base, kent-audio2
Branch point for: yamt-lazymbuf
Changes since 1.27: +157 -241 lines
Diff to previous 1.27 (colored)

ansify and KNF

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 10 22:01:37 2005 UTC (19 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.26: +57 -148 lines
Diff to previous 1.26 (colored)

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

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Sun Jan 9 08:42:45 2005 UTC (19 years, 3 months ago) by kent
Branch: kent-audio1
Changes since 1.26.2.1: +8 -24 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

audio_hw_if change
 * make open() and close() optional
 * add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Jan 2 20:03:11 2005 UTC (19 years, 3 months ago) by kent
Branch: kent-audio1
Changes since 1.26: +51 -126 lines
Diff to previous 1.26 (colored)

* adopt the filter pipeline framework
* follow ac97_attach() change

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:52:09 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.3: +4 -4 lines
Diff to previous 1.18.2.3 (colored)

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:18 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 26 06:32:20 2004 UTC (19 years, 5 months ago) by xtraeme
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Fix typo in a comment: alalog -> analog.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:01 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.2: +2 -2 lines
Diff to previous 1.18.2.2 (colored)

Fix the sync with head I botched.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:02 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.1: +0 -0 lines
Diff to previous 1.18.2.1 (colored)

Sync with HEAD.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:06 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18: +67 -28 lines
Diff to previous 1.18 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Fri Apr 23 21:13:06 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 6 09:32:22 2003 UTC (20 years, 4 months ago) by itohy
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Back out the following commit and apply the real fix.
A variable was actually used in a wrong way.

> revision 1.20
> date: 2003/10/25 21:31:43;  author: christos;  state: Exp;  lines: +3 -3
> Fix uninitialized variable warnings.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 4 13:57:31 2003 UTC (20 years, 4 months ago) by keihan
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

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.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 22 16:48:14 2003 UTC (20 years, 4 months ago) by itohy
Branch: MAIN
Changes since 1.20: +62 -25 lines
Diff to previous 1.20 (colored)

- Correctly handle bit 24 of miscellaneous control register, which has
  different meanings for read and write.
  This fixes 48kHz playback to SPDIF.
- Fix the problem where the SPDIF output voltage setting (0.5V, 5V)
  was swapped.  The default value is changed from 0.5V to 5V, which
  correctly selects 5V (so the default physical behavior is unchanged).

Should fix PRs kern/16047 and kern/16817
(but not tested since I don't have other SPDIF hardware to test with).
Approved by tshiozak.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 25 21:31:43 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Fix uninitialized variable warnings.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 25 18:31:11 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

Fix uninitialized variable warnings

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:38 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.17: +14 -10 lines
Diff to previous 1.17 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 31 00:07:40 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +14 -9 lines
Diff to previous 1.16 (colored)

Use aprint_*().

Revision 1.7.2.6 / (download) - annotate - [select for diffs], Fri Oct 18 02:42:56 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.7.2.5: +4 -5 lines
Diff to previous 1.7.2.5 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Catch up to -current.

Revision 1.7.4.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:29 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.7.4.3: +4 -5 lines
Diff to previous 1.7.4.3 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:05 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 30 20:37:11 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

Use CFATTACH_DECL().

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 27 20:39:48 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Declare all cfattach structures const.

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:58 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.7.2.4: +3 -3 lines
Diff to previous 1.7.2.4 (colored) to branchpoint 1.7 (colored)

Catch up to -current.

Revision 1.7.4.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:56 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.7.4.2: +3 -3 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored)

Sync w/ -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 2 11:18:42 2002 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Fix typo so that 48kHz can be set.  From Stephen Ma in kern/15456.

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:28 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.7.4.1: +511 -509 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored)

Sync kqueue branch with -current.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:00 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.7.2.3: +4 -4 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored)

Catch up to -current.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 27 14:17:04 2001 UTC (22 years, 3 months ago) by itohy
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Fix comment.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:08 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.7.2.2: +508 -507 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

Catch up to -current.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:41 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

add RCSID

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:12 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.9: +505 -507 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 4 06:57:40 2001 UTC (22 years, 5 months ago) by itohy
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.9: +505 -507 lines
Diff to previous 1.9 (colored)

Re-implement the mixer
 o  Implement SPDIF selection/monitoring function.
    Now, say, playback to both analog output and SPDIF is possible.

 o  Implement support of AUX input, MIC preamp and MIC recording gain.

 o  L-R selection of record source doesn't seem to work on cmpci.
    Therefore, the *.swap mixer functions are and deleted.

 o  Following SB mixer registers don't exist on cmpci, and they are removed.
	input gain, output gain, AGC, equalization (bass, treble)

 o  Other mixer changes, including
	inputs.XXX.mute -> (deleted)
	outputs.XXX.mute -> inputs.XXX.mute
	inputs.pc_speaker -> inputs.speaker
	spdif.* -> reorganized to spdif.input.*, spdif.output.*

 o  Current status:
      I have tested these and confirmed to work fine.
	- Output and recording from Line-in, AUX, CD and MIC analog inputs,
	- Output and recording from FM synthesizer,
	- Output from PC speaker input,
	- Output wave playback.
	- SPDIF (44.1kHz) input selection (#1, #2 (6ch version only),
	  wave to spdin), phase selection, monitoring and recording,
	- SPDIF (44.1kHz) playback, through (SPDIF in to SPDIF out)
	  and monitoring.

      I haven't tested these but may work.
	- SPDIF 48kHz input and output,
	- Full-duplex operation,
	- Recording wave output.

      I don't think these are working.
	- Legacy (wave + FM synthesizer) to SPDIF output (and the monitoring),
	- Exchanging front and rear outputs,
	- Surround.

      These are not implemented.
	- 4ch / 6ch support,
	- Joystick port support.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:09 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:10 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.7.2.1: +3 -2 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Catch up to -current.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 3 00:04:51 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3
Branch point for: thorpej-mips-cache
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

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).

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:53 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.7: +78 -39 lines
Diff to previous 1.7 (colored)

Catch up to -current.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:52 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.7: +78 -39 lines
Diff to previous 1.7 (colored)

Update the kqueue branch to HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 4 13:36:07 2001 UTC (22 years, 7 months ago) by itohy
Branch: MAIN
CVS Tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.7: +78 -39 lines
Diff to previous 1.7 (colored)

- Add opl at cmpci attachment.
- Add mpu at cmpci attachment.
- Fix panic during attach on alpha.
- Change register of SPDIF input phase (but undocumented, either).
- Change code for mixer initialization.
- Return 1, not 0, when an interrupt is processed.

More changes to the mixer are pending....

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:03 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.4: +381 -163 lines
Diff to previous 1.4.2.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 12 18:47:12 2001 UTC (23 years, 2 months ago) by tshiozak
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Changes since 1.6: +381 -163 lines
Diff to previous 1.6 (colored)

some improvement for cmpci; SPDIF supports, etc.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:15:48 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.3: +2 -2 lines
Diff to previous 1.4.2.3 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:15 2001 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

constify

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:02 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.2: +2 -3 lines
Diff to previous 1.4.2.2 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 28 22:59:11 2000 UTC (23 years, 3 months ago) by sommerfeld
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

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

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:15 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.1: +1614 -0 lines
Diff to previous 1.4.2.1 (colored)

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.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Fri Jun 30 16:27:49 2000 UTC (23 years, 9 months ago) by simonb
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up mmap paddr_t/off_t changes from trunk.

Revision 1.4.2.1, Mon Jun 26 04:56:23 2000 UTC (23 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4: +0 -1614 lines
FILE REMOVED

file cmpci.c was added on branch thorpej_scsipi on 2000-11-20 11:42:15 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 26 04:56:23 2000 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Branch point for: thorpej_scsipi
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

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.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:07:16 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.2: +20 -20 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 8 22:15:52 2000 UTC (23 years, 10 months ago) by gmcgarry
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.2: +20 -20 lines
Diff to previous 1.2 (colored)

Make attach messages consistent with PCI drivers.  Make function pointer
usage consistent with other drivers.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 30 22:16:56 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.1: +3 -5 lines
Diff to previous 1.1 (colored)

Remove unneeded #include "mpu.h"

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 30 21:59:58 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN

Add driver for C-Media CMI8x38 Audio Chip. From Takuya SHIOZAKI <AoiMoe@imou.to>

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>