The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.161 / (download) - annotate - [select for diffs], Wed May 10 00:11:24 2023 UTC (11 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.160: +6 -4 lines
Diff to previous 1.160 (colored)

auich(4): Use config_detach_children.

Revision 1.159.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:46 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.159: +2 -6 lines
Diff to previous 1.159 (colored) next main 1.160 (colored)

Sync with HEAD.

Revision 1.160 / (download) - annotate - [select for diffs], Sat Feb 6 09:45:17 2021 UTC (3 years, 2 months ago) by isaki
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.159: +2 -6 lines
Diff to previous 1.159 (colored)

Hold sc_intr_lock in open()/close().
vtbl->{lock,unlock} (in fact ac97_{lock,unlock}) don't seem to need
releasing an interrupt lock.
Confirmed on auich.

Revision 1.152.2.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.152.2.1: +3 -16 lines
Diff to previous 1.152.2.1 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored)

Merge changes from current as of 20200406

Revision 1.157.2.1 / (download) - annotate - [select for diffs], Sat Mar 21 15:31:50 2020 UTC (4 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.157: +2 -15 lines
Diff to previous 1.157 (colored) next main 1.158 (colored)

Pull up following revision(s) (requested by isaki in ticket #792):

	sys/arch/amiga/dev/aucc.c: revision 1.48
	sys/dev/pci/auixp.c: revision 1.49
	sys/dev/pci/gcscaudio.c: revision 1.19
	sys/dev/pci/auich.c: revision 1.159
	sys/dev/sbus/dbri.c: revision 1.42
	sys/dev/pci/auvia.c: revision 1.85
	sys/dev/pci/auacer.c: revision 1.39

Drop 512 bytes limit on auvia_round_blocksize().

This fixes attach on 6 channels device.
PR kern/55017.

round_blocksize must return a multiple of the framesize.
aucc(4) supports 3 channels mode.

round_blocksize must return a multiple of the framesize
even if passed blocksize is greater than the upper limit.

round_blocksize must return a multiple of the framesize.

It's not divisible when blk=GCSCAUDI_PRD_SIZE_MAX and channels=4.
round_blocksize must return a multiple of the framesize
even if 6 channels mode.

I believe that keeping "good alignment" is just a wish, not constraint.

Revision 1.158.2.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.158: +2 -15 lines
Diff to previous 1.158 (colored) next main 1.159 (colored)

Sync with head.

Revision 1.159 / (download) - annotate - [select for diffs], Sat Feb 29 06:34:30 2020 UTC (4 years, 1 month ago) by isaki
Branch: MAIN
CVS Tags: 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-futex
Changes since 1.158: +2 -15 lines
Diff to previous 1.158 (colored)

round_blocksize must return a multiple of the framesize
even if 6 channels mode.
I believe that keeping "good alignment" is just a wish, not constraint.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Dec 6 07:27:07 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

Minor changes, reported by the LGTM bot.

Revision 1.152.2.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.152: +83 -121 lines
Diff to previous 1.152 (colored)

Sync with HEAD

Revision 1.157 / (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-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.156: +4 -15 lines
Diff to previous 1.156 (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.156 / (download) - annotate - [select for diffs], Sat May 11 02:34:19 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Don't return the raw audio formats; return the ones after we disabled some
of them because the device does not support them. Fixes panic in virtualbox.

Revision 1.155 / (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.154: +64 -82 lines
Diff to previous 1.154 (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.154.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.154.2.2: +3 -3 lines
Diff to previous 1.154.2.2 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored)

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

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Sat Apr 27 12:53:37 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.154.2.1: +49 -73 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored)

Adapt to audio2.
- Correct frequency_type in modem_audio_format.
- {spdif,modem}_audio_format in my previous commit (in this branch)
  was also wrong. :(

Revision 1.154.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.154: +18 -12 lines
Diff to previous 1.154 (colored)

Use C99 style struct initializer to audio_format.

Revision 1.154 / (download) - annotate - [select for diffs], Thu Apr 18 13:01:38 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
CVS Tags: isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored)

White space and indent fix.

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

Use C99 style struct initializer to audio_hw_if.

Revision 1.151.8.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:13 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.151: +4 -4 lines
Diff to previous 1.151 (colored) next main 1.152 (colored)

Resolve conflicts between branch and HEAD

Revision 1.152 / (download) - annotate - [select for diffs], Sat Mar 24 18:32:13 2018 UTC (6 years ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.151: +4 -4 lines
Diff to previous 1.151 (colored)

use pci_intr_establish_xname()

Revision 1.141.2.2 / (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.141.2.1: +82 -46 lines
Diff to previous 1.141.2.1 (colored) to branchpoint 1.141 (colored) next main 1.142 (colored)

update from HEAD

Revision 1.144.4.4 / (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.144.4.3: +2 -4 lines
Diff to previous 1.144.4.3 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)

Sync with HEAD

Revision 1.151 / (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, pgoyette-compat-base, 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
Branch point for: pgoyette-compat
Changes since 1.150: +2 -4 lines
Diff to previous 1.150 (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.149.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:47 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.149: +5 -2 lines
Diff to previous 1.149 (colored) next main 1.150 (colored)

Sync with HEAD

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:29 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.149: +5 -2 lines
Diff to previous 1.149 (colored) next main 1.150 (colored)

Sync with HEAD

Revision 1.144.4.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:29 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.144.4.2: +5 -2 lines
Diff to previous 1.144.4.2 (colored) to branchpoint 1.144 (colored)

Sync with HEAD

Revision 1.150 / (download) - annotate - [select for diffs], Wed Jan 25 06:33:52 2017 UTC (7 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.149: +5 -2 lines
Diff to previous 1.149 (colored)

auich_round_blocksize: never return 0 as blocksize

Revision 1.144.4.2 / (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.144.4.1: +12 -10 lines
Diff to previous 1.144.4.1 (colored) to branchpoint 1.144 (colored)

Sync with HEAD

Revision 1.149 / (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-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.148: +12 -10 lines
Diff to previous 1.148 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.144.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:09 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.144: +71 -38 lines
Diff to previous 1.144 (colored)

Sync with HEAD

Revision 1.148 / (download) - annotate - [select for diffs], Sun May 24 22:03:02 2015 UTC (8 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.147: +21 -2 lines
Diff to previous 1.147 (colored)

PR/49926: Robert Millan: Avoid deadlock condition in auich_read_codec()
and auich_write_codec() when running in userspase.

Revision 1.147 / (download) - annotate - [select for diffs], Sun May 24 14:56:57 2015 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.146: +9 -2 lines
Diff to previous 1.146 (colored)

PR/49927: Robert Millan: Avoid zerodivide on emulated hardware.

Revision 1.146 / (download) - annotate - [select for diffs], Sun May 24 14:55:12 2015 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.145: +44 -37 lines
Diff to previous 1.145 (colored)

use aprint consistently; note that we use aprint_normal_dev in debugging
statements instead of aprint_debug_dev because those are controlled by
the driver debugging, not the centralized one.

Revision 1.145 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:25 2015 UTC (9 years ago) by riastradh
Branch: MAIN
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored)

Convert sys/dev to use <sys/rndsource.h>.

Revision 1.141.2.1 / (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.141: +7 -8 lines
Diff to previous 1.141 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.144 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:35 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, 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.143: +5 -2 lines
Diff to previous 1.143 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.138.8.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.138.8.2: +4 -8 lines
Diff to previous 1.138.8.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (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.141.4.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.141: +4 -8 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

sync with head

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:33 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.143: +5 -2 lines
Diff to previous 1.143 (colored) next main 1.144 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.143 / (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-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.142: +4 -3 lines
Diff to previous 1.142 (colored)

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

Revision 1.142 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:10 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.141: +2 -7 lines
Diff to previous 1.141 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.138.8.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.138.8.1: +3 -3 lines
Diff to previous 1.138.8.1 (colored) to branchpoint 1.138 (colored)

sync with head

Revision 1.141 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:44 2012 UTC (11 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.138.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:42 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.138: +71 -33 lines
Diff to previous 1.138 (colored)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Thu Nov 24 03:35:58 2011 UTC (12 years, 4 months ago) by mrg
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-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp
Changes since 1.139: +4 -4 lines
Diff to previous 1.139 (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.139 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:34 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.138: +70 -32 lines
Diff to previous 1.138 (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.138.10.2 / (download) - annotate - [select for diffs], Tue Nov 22 22:47:07 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.138.10.1: +2 -10 lines
Diff to previous 1.138.10.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

get rid of unused 'powerstate' callback in audio_hw_if

Revision 1.138.10.1 / (download) - annotate - [select for diffs], Sat Nov 19 21:49:40 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.138: +72 -26 lines
Diff to previous 1.138 (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.137.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:35 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.137: +2 -4 lines
Diff to previous 1.137 (colored) next main 1.138 (colored)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Sat Nov 13 13:52:05 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, 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.137: +2 -4 lines
Diff to previous 1.137 (colored)

Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:29 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

Sync with HEAD.

Revision 1.127.14.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:39 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

sync to netbsd-5

Revision 1.125.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:42 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.3: +42 -66 lines
Diff to previous 1.125.4.3 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:59 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored)

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.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Feb 1 12:51:16 2010 UTC (14 years, 2 months ago) by njoly
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.135: +6 -6 lines
Diff to previous 1.135 (colored)

Do not print ac97 link rate message unless verbose boot is requested.

Revision 1.127.10.2 / (download) - annotate - [select for diffs], Fri Jan 15 04:21:59 2010 UTC (14 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.127.10.1: +37 -56 lines
Diff to previous 1.127.10.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Revert ticket 1218.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Jan 13 23:24:29 2010 UTC (14 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.134: +3 -26 lines
Diff to previous 1.134 (colored)

Revert code I added in 1.133 that touches the PCI_COMMAND_IO_ENABLE and
PCI_COMMAND_MEM_ENABLE bits in PCI_COMMAND_STATUS_REG.  This causes
problems where the BAR is 0.  'options PCI_ADDR_FIXUP' is more
appropriate when these bits are not set correctly by the BIOS.

Revision 1.127.10.1 / (download) - annotate - [select for diffs], Sat Jan 9 01:35:16 2010 UTC (14 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.127: +56 -37 lines
Diff to previous 1.127 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #1218):
	sys/dev/pci/auich.c: revision 1.133
Ensure that the memory or i/o space we need is accessible at attach
and resume.
Rework register mapping code path, using 'goto', so duplicate code
is reduced.
I've tested this on nvidia and sis auich(4)-compatible controllers.
In addition this change is reported to fix PR/39652.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:51 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored)

Expand PMF_FN_* macros.

Revision 1.133 / (download) - annotate - [select for diffs], Wed Dec 30 00:24:38 2009 UTC (14 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.132: +56 -37 lines
Diff to previous 1.132 (colored)

Ensure that the memory or i/o space we need is accessible at attach
and resume.

Rework register mapping code path, using 'goto', so duplicate code
is reduced.

I've tested this on nvidia and sis auich(4)-compatible controllers.
In addition this change is reported to fix PR/39652.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Nov 26 15:17:08 2009 UTC (14 years, 4 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.131: +4 -4 lines
Diff to previous 1.131 (colored)

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

Revision 1.131 / (download) - annotate - [select for diffs], Thu Nov 12 19:39:26 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.130: +3 -23 lines
Diff to previous 1.130 (colored)

Remove superfluous activation hook.

Revision 1.125.4.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:50 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.2: +20 -6 lines
Diff to previous 1.125.4.2 (colored) to branchpoint 1.125 (colored)

sync with head

Revision 1.130 / (download) - annotate - [select for diffs], Thu Sep 3 14:29:42 2009 UTC (14 years, 7 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.129: +20 -6 lines
Diff to previous 1.129 (colored)

SiS 7012 uses different multichannel control bits compared to other codecs
(data from linux via OpenBSD).

Revision 1.128.4.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.128: +15 -4 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

Sync with HEAD.

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

Revision 1.125.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:54 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125.4.1: +19 -11 lines
Diff to previous 1.125.4.1 (colored) to branchpoint 1.125 (colored)

sync with head.

Revision 1.127.8.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:55 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.127.8.1: +15 -4 lines
Diff to previous 1.127.8.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Sync with HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Mar 17 19:38:34 2009 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.128: +15 -4 lines
Diff to previous 1.128 (colored)

Handle child-detachment by NULL'ing the child pointer so that
auich_detach() does not subsequently dereference a dangling pointer.

Revision 1.127.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:24 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.127: +6 -9 lines
Diff to previous 1.127 (colored)

Sync with HEAD.

Revision 1.123.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:59 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.123.6.2: +4 -7 lines
Diff to previous 1.123.6.2 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored)

Sync with HEAD.

Revision 1.128.2.3 / (download) - annotate - [select for diffs], Sat Dec 13 13:38:00 2008 UTC (15 years, 4 months ago) by ad
Branch: ad-audiomp2
Changes since 1.128.2.2: +20 -8 lines
Diff to previous 1.128.2.2 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Fix locking for ac97.

Revision 1.127.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:34 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.127: +6 -9 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Fri Dec 12 23:06:57 2008 UTC (15 years, 4 months ago) by ad
Branch: ad-audiomp2
Changes since 1.128.2.1: +15 -17 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored)

Checkpoint work in progress.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Mon Dec 8 13:06:36 2008 UTC (15 years, 4 months ago) by ad
Branch: ad-audiomp2
Changes since 1.128: +44 -8 lines
Diff to previous 1.128 (colored)

Convert some more drivers.

Revision 1.128 / (download) - annotate - [select for diffs], Sat Nov 8 00:26:35 2008 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base
Branch point for: jym-xensuspend, ad-audiomp2
Changes since 1.127: +6 -9 lines
Diff to previous 1.127 (colored)

To finish the device_t/softc split, convert some casts to struct
auich_softc * to device_private() calls.

Revision 1.123.6.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.123.6.1: +47 -63 lines
Diff to previous 1.123.6.1 (colored) to branchpoint 1.123 (colored)

Sync with HEAD.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:18 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.125: +47 -56 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

sync with head.

Revision 1.125.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:42 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.125: +47 -56 lines
Diff to previous 1.125 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Sun May 4 15:58:51 2008 UTC (15 years, 11 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, 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, netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64, haad-dm
Changes since 1.126: +47 -49 lines
Diff to previous 1.126 (colored)

device_t/softc split and other related cosmetic changes.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:54 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.125: +2 -9 lines
Diff to previous 1.125 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.125 / (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-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.124: +33 -40 lines
Diff to previous 1.124 (colored)

use aprint_*_dev and device_xname

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

Sync with HEAD.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:47 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

sync with head.

Revision 1.117.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:44 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.117.16.2: +4 -4 lines
Diff to previous 1.117.16.2 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

sync with HEAD

Revision 1.97.2.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:10 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.6: +4 -4 lines
Diff to previous 1.97.2.6 (colored) next main 1.98 (colored)

sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Feb 29 06:13:39 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored)

Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:55 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with HEAD.

Revision 1.97.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:36 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.5: +26 -94 lines
Diff to previous 1.97.2.5 (colored)

sync with head

Revision 1.117.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:34 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.117.16.1: +26 -94 lines
Diff to previous 1.117.16.1 (colored) to branchpoint 1.117 (colored)

sync with HEAD

Revision 1.120.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:11 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.120.2.1: +1 -1 lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Sun Jan 6 12:56:20 2008 UTC (16 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored)

fix a bug of S/PDIF audio format selection

PR/36493 by Arcady Antipin

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:40 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.119: +25 -93 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:40 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.120: +13 -2 lines
Diff to previous 1.120 (colored)

Sync with HEAD

Revision 1.122 / (download) - annotate - [select for diffs], Thu Dec 13 16:53:28 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.121: +4 -6 lines
Diff to previous 1.121 (colored)

Make this compile again.

Revision 1.121 / (download) - annotate - [select for diffs], Thu Dec 13 15:11:31 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.120: +15 -2 lines
Diff to previous 1.120 (colored)

Restore the native mode PCI conf register on select chipsets on resume,
in case it was lost when power was removed.

Revision 1.119.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:31:45 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.119: +16 -95 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

sync with head.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:05 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.119: +16 -95 lines
Diff to previous 1.119 (colored)

Merge jmcneill-pm branch.

Revision 1.117.14.7 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:23 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.117.14.6: +3 -3 lines
Diff to previous 1.117.14.6 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.117.14.6 / (download) - annotate - [select for diffs], Sun Nov 11 17:33:29 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.117.14.5: +6 -2 lines
Diff to previous 1.117.14.5 (colored) to branchpoint 1.117 (colored)

In auich_intr, check if device is currently powered down.

Revision 1.117.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:28:38 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.117: +5 -3 lines
Diff to previous 1.117 (colored)

sync with HEAD

Revision 1.117.14.5 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:21 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.117.14.4: +7 -19 lines
Diff to previous 1.117.14.4 (colored) to branchpoint 1.117 (colored)

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.

Revision 1.97.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:32:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.4: +3 -3 lines
Diff to previous 1.97.2.4 (colored)

sync with head.

Revision 1.117.14.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:45:53 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.117.14.3: +3 -3 lines
Diff to previous 1.117.14.3 (colored) to branchpoint 1.117 (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.118.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:38:49 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

Sync with HEAD.

Revision 1.117.2.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:08:45 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.117.2.1: +3 -3 lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

Sync with head.

Revision 1.119 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:40 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, mjf-devfs
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

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

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:41 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.117: +4 -2 lines
Diff to previous 1.117 (colored)

Sync with head.

Revision 1.117.14.3 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:34 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.117.14.2: +21 -50 lines
Diff to previous 1.117.14.2 (colored) to branchpoint 1.117 (colored)

Extend device API by device_power_private and device_power_set_private.
The latter is a temporary mean until the pnp_register API itself is
overhault. This functions allow a generic power handler to store its
state independent of the driver.

Use this and revamp the PCI power handling. Pretty much all PCI devices
had power handlers that did the same thing, generalize this in
pci_generic_power_register/deregister and the handler. This interface
offers callbacks for the drivers to save and restore state on
transistions. After a long discussion with jmcneill@ it was considered
to be powerful enough until evidence is shown that devices can handle
D1/D2 with less code and higher speed than without the full
save/restore. The generic code is carefully written to handle device
without PCI-PM support and ensure that the correct registers are written
to when D3 loses all state.

Reimplement the generic PCI network device handling on
top of PCI generic power handling.

Introduce pci_disable_retry as used and implemented locally at least by
ath(4) and iwi(4). Use it in this drivers to restore behaviour from
before the introduction of generic PCI network handling.

Convert all PCI drivers that were using pnp_register to the new
framework. The only exception is vga(4) as it is commonly used as
console device. Add a note therein that this should be fixed later.

Revision 1.117.14.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:13 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.117.14.1: +4 -2 lines
Diff to previous 1.117.14.1 (colored) to branchpoint 1.117 (colored)

Sync with HEAD.

Revision 1.97.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:23 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.3: +9 -7 lines
Diff to previous 1.97.2.3 (colored)

sync with head.

Revision 1.117.10.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:58 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.117: +4 -2 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Sep 2 00:48:52 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Changes since 1.117: +4 -2 lines
Diff to previous 1.117 (colored)

Attach to the ICH6 AC-97 Modem function.

Revision 1.117.14.1 / (download) - annotate - [select for diffs], Sun Aug 5 00:52:40 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.117: +43 -85 lines
Diff to previous 1.117 (colored)

Convert auich powerhook to pnp power handler (untested).

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

Sync with HEAD.

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

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

Revision 1.115.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:56 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.115: +5 -5 lines
Diff to previous 1.115 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 14:16:13 2007 UTC (17 years, 1 month ago) by ad
Branch: ad-audiomp
Changes since 1.116: +48 -7 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

Add MP locking for audio drivers.

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:20 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.2: +5 -5 lines
Diff to previous 1.97.2.2 (colored)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:00 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base
Branch point for: ad-audiomp
Changes since 1.115: +5 -5 lines
Diff to previous 1.115 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:41 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.97.2.1: +72 -31 lines
Diff to previous 1.97.2.1 (colored)

sync with head.

Revision 1.111.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:41 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.111.6.1: +13 -13 lines
Diff to previous 1.111.6.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored)

sync with head.

Revision 1.111.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:28 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.111: +13 -24 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

Sync with head.

Revision 1.115 / (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
Branch point for: yamt-idlelwp
Changes since 1.114: +13 -13 lines
Diff to previous 1.114 (colored)

__unused removal on arguments; approved by core.

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

sync with head

Revision 1.114 / (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.113: +17 -14 lines
Diff to previous 1.113 (colored)

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

Revision 1.113 / (download) - annotate - [select for diffs], Mon Sep 25 23:11:07 2006 UTC (17 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.112: +2 -17 lines
Diff to previous 1.112 (colored)

No need to call pci_set_powerstate from our powerhook, the bus handles this
for us now.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:09 2006 UTC (17 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.111: +4 -3 lines
Diff to previous 1.111 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.101.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.101: +167 -15 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

sync with head

Revision 1.101.8.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:25 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101.8.3: +61 -9 lines
Diff to previous 1.101.8.3 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

sync with head

Revision 1.111 / (download) - annotate - [select for diffs], Thu Aug 3 03:01:39 2006 UTC (17 years, 8 months ago) by bsh
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.110: +4 -6 lines
Diff to previous 1.110 (colored)

Device 10de:026c is not AC-97 controller but nForce430 HD Audio controller.

Pointed out by Brad.  Thanks.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Aug 1 18:31:53 2006 UTC (17 years, 8 months ago) by bsh
Branch: MAIN
Changes since 1.109: +6 -2 lines
Diff to previous 1.109 (colored)

Support nForce430's audio.

(I have tested this only with nFroce410, not with nFroce430)

Revision 1.109 / (download) - annotate - [select for diffs], Fri Jul 28 07:41:39 2006 UTC (17 years, 8 months ago) by kent
Branch: MAIN
Changes since 1.108: +59 -9 lines
Diff to previous 1.108 (colored)

add support for S/PDIF.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:26 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.107: +8 -6 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

Merge from HEAD.

Revision 1.101.8.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:21 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101.8.2: +8 -6 lines
Diff to previous 1.101.8.2 (colored) to branchpoint 1.101 (colored)

sync with head.

Revision 1.97.2.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.97: +117 -12 lines
Diff to previous 1.97 (colored)

sync with head.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:35 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.107: +8 -6 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Jun 17 23:34:26 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, chap-midi-nbase, chap-midi-base
Changes since 1.107: +8 -6 lines
Diff to previous 1.107 (colored)

re-factor the pci powestate api. reviewed by gimpy

Revision 1.101.6.2 / (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.101.6.1: +8 -2 lines
Diff to previous 1.101.6.1 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

Sync with head.

Revision 1.103.2.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.103: +36 -4 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

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

Revision 1.101.8.2 / (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.101.8.1: +36 -4 lines
Diff to previous 1.101.8.1 (colored) to branchpoint 1.101 (colored)

sync with head.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Thu May 11 23:28:47 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.102.2.2: +8 -2 lines
Diff to previous 1.102.2.2 (colored) next main 1.103 (colored)

sync with head

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 27 12:21:39 2006 UTC (17 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base
Branch point for: gdamore-uart, chap-midi
Changes since 1.106: +8 -2 lines
Diff to previous 1.106 (colored)

Disable my aggressive power saving changes; they're causing too many
problems.

Revision 1.101.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:13 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.101: +102 -10 lines
Diff to previous 1.101 (colored)

Sync with head.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:33 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.102.2.1: +1741 -0 lines
Diff to previous 1.102.2.1 (colored)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Apr 16 23:07:16 2006 UTC (18 years ago) by jmcneill
Branch: MAIN
Changes since 1.105: +4 -3 lines
Diff to previous 1.105 (colored)

Use AC97_HOST_INVERTED_EAMP on the Sony VAIO VGN-B1XP. From PR#33272 by
Dieter Roelants.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Apr 16 07:40:00 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.104: +28 -3 lines
Diff to previous 1.104 (colored)

Deal with machines that have inverted eamp power. Data from the FreeBSD
driver. Finally sound works on my vaio vgn-t250p.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Apr 14 13:02:57 2006 UTC (18 years ago) by rpaulo
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

s/#ifdef DEBUG/#ifdef AUICH_DEBUG/

Revision 1.101.8.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:26 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.101: +74 -8 lines
Diff to previous 1.101 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Mar 7 23:16:20 2006 UTC (18 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Changes since 1.102: +7 -2 lines
Diff to previous 1.102 (colored)

Don't try to suspend while already suspended.

Revision 1.102.2.1, Tue Mar 7 15:18:59 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.102: +0 -1710 lines
FILE REMOVED

file auich.c was added on branch elad-kernelauth on 2006-04-19 03:25:33 +0000

Revision 1.102 / (download) - annotate - [select for diffs], Tue Mar 7 15:18:59 2006 UTC (18 years, 1 month ago) by jmcneill
Branch: MAIN
Branch point for: elad-kernelauth
Changes since 1.101: +69 -8 lines
Diff to previous 1.101 (colored)

Put the device in D3 state when it's not in use to save power.

Revision 1.39.2.16 / (download) - annotate - [select for diffs], Sun Dec 11 10:28:57 2005 UTC (18 years, 4 months ago) by christos
Branch: ktrace-lwp
Changes since 1.39.2.15: +8 -3 lines
Diff to previous 1.39.2.15 (colored) next main 1.40 (colored)

Sync with head.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Tue Dec 6 22:03:08 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
CVS Tags: 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-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.90.2.1: +9 -4 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

Apply patch (requested by xtraeme in ticket #1027):
	sys/dev/pci/auich.c: patch
	sys/dev/pci/auichreg.h: patch
Add support for Intel ICH7 and 6300ESB.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 4 12:27:49 2005 UTC (18 years, 4 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base, ktrace-lwp-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.100: +7 -4 lines
Diff to previous 1.100 (colored)

Add support for Intel 6300ESB.

Revision 1.100 / (download) - annotate - [select for diffs], Fri Dec 2 19:47:52 2005 UTC (18 years, 4 months ago) by xtraeme
Branch: MAIN
Changes since 1.99: +6 -4 lines
Diff to previous 1.99 (colored)

Add support for ICH7. Tested by gendalia@.

Revision 1.39.2.15 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:00 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.14: +207 -81 lines
Diff to previous 1.39.2.14 (colored)

Sync with HEAD. Here we go again...

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Sun Oct 30 02:33:15 2005 UTC (18 years, 5 months ago) by jmc
Branch: netbsd-3
CVS Tags: netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

Pullup revs 1.98-1.99 (requested by rpaulo in ticket #920)
 Fix debug printf in auich_halt_pipe. PR#31030

Revision 1.99 / (download) - annotate - [select for diffs], Mon Aug 22 01:15:12 2005 UTC (18 years, 7 months ago) by rpaulo
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, thorpej-vnode-attr-base, thorpej-vnode-attr
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Use #ifdef AUICH_DEBUG instead of #if 0/#if 1. Suggested by perry@.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Aug 21 23:57:32 2005 UTC (18 years, 7 months ago) by rpaulo
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

PR#31030: debug printf in auich_halt_pipe. From lmneto@gmail.com.
It was under #if 1, so I just replaced the if by 0.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jun 28 00:28:41 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

Use ANSI function decls and static.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jun 20 02:49:18 2005 UTC (18 years, 9 months ago) by atatat
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.

Revision 1.58.2.1.2.2 / (download) - annotate - [select for diffs], Thu May 19 10:26:17 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-2
CVS Tags: 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
Changes since 1.58.2.1.2.1: +7 -5 lines
Diff to previous 1.58.2.1.2.1 (colored) to branchpoint 1.58.2.1 (colored) next main 1.59 (colored)

Pull up revision 1.78 (requested by riz in ticket #1533):
Add support for the ICH6 AC97 controller.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:05 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.85: +315 -224 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

sync with -current

Revision 1.95 / (download) - annotate - [select for diffs], Tue Apr 12 17:30:51 2005 UTC (19 years ago) by jmcneill
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.94: +33 -4 lines
Diff to previous 1.94 (colored)

Some broken codecs don't release the CAS on reads to AC97_REG_GPIO_STATUS.
In auich_read_codec, do a dummy read to the RESET register if we're
reading GPIO_STATUS to be safe.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Apr 11 11:20:45 2005 UTC (19 years ago) by jmcneill
Branch: MAIN
Changes since 1.93: +35 -41 lines
Diff to previous 1.93 (colored)

i82801CA is an ICH3, not ICH2. Fix typo in auich_modem_devices. Pointed out
by Nicolas Joly.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Apr 8 12:50:00 2005 UTC (19 years ago) by jmcneill
Branch: MAIN
Changes since 1.92: +4 -2 lines
Diff to previous 1.92 (colored)

Add identifiers for Intel ICH3 AC'97 modems and CXT33 modem codecs, from
Nicolas Joly <njoly _at_ pasteur _dot_ fr>.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Apr 7 23:21:10 2005 UTC (19 years ago) by jmcneill
Branch: MAIN
Changes since 1.91: +12 -5 lines
Diff to previous 1.91 (colored)

More modem fixes:
 * Ignore ICH_PCM246_MASK for modem devices
 * Set LINE1 rate and level in set_params
 * Enable mmap for modem devices. This was previously disallowed due to
   the ext_id field not advertising that the device supported variable
   rates. Since modems don't use ext_id (they use ext_mid instead), enable
   mmap. Multiple rates are supported on AC'97 modems.

Revision 1.58.2.1.2.1 / (download) - annotate - [select for diffs], Thu Apr 7 16:07:21 2005 UTC (19 years ago) by tron
Branch: netbsd-2
Changes since 1.58.2.1: +4 -2 lines
Diff to previous 1.58.2.1 (colored)

Pull up revision 1.74 (requested by hira in ticket #1103):
Add support for "nForce3 250 MCP-T AC-97 Audio", from Kouichirou Hiratsuka
in PR 27843.
Ok'ed christos@

Revision 1.91 / (download) - annotate - [select for diffs], Mon Apr 4 19:41:50 2005 UTC (19 years ago) by jmcneill
Branch: MAIN
Changes since 1.90: +168 -74 lines
Diff to previous 1.90 (colored)

Work-in-progress of AC'97 modem support. Currently disabled by default
(can be enabled by options AUICH_ATTACH_MODEM), and untested. Shouldn't
have any impact on auich audio capabilities.

Revision 1.39.2.14 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:10 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.13: +106 -148 lines
Diff to previous 1.39.2.13 (colored)

Sync with HEAD.

Revision 1.85.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:10 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.85.4.1: +107 -149 lines
Diff to previous 1.85.4.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Mar 11 22:29:16 2005 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.89: +106 -148 lines
Diff to previous 1.89 (colored)

Three changes:
1) After setting an input or output channel to pause, watch for DCH (DMA
   halted) to be set before resetting the registers.  The manual says this is
   required.  This *may* fix random auich lockups.
2) Add auich_{trigger,intr,halt}_pipe(), which can operate on any of the
   input and output channels.  This reduces code duplication quite a bit.
   While I'm at it, fill in the mic interrupt handling.
3) The mic in interrupt is MINT, not MIINT.  (The latter is modem input.)

Revision 1.39.2.13 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:15 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.12: +3 -3 lines
Diff to previous 1.39.2.12 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.89 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:32 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

nuke trailing whitespace

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:47 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.85: +9 -2 lines
Diff to previous 1.85 (colored)

sync with head.

Revision 1.39.2.12 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:37 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.11: +9 -2 lines
Diff to previous 1.39.2.11 (colored)

Sync with HEAD.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Jan 27 21:49:29 2005 UTC (19 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

match nForce2 Ultra 400 audio

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jan 27 13:35:05 2005 UTC (19 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored)

support nForce 4

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jan 26 21:53:42 2005 UTC (19 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.85: +5 -2 lines
Diff to previous 1.85 (colored)

Add pci_conf_{capture,restore} to auich(4) powerhook

Revision 1.39.2.11 / (download) - annotate - [select for diffs], Mon Jan 17 19:31:23 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.10: +118 -110 lines
Diff to previous 1.39.2.10 (colored)

Sync with HEAD.

Revision 1.85 / (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-km-base
Branch point for: yamt-km, kent-audio2
Changes since 1.84: +91 -71 lines
Diff to previous 1.84 (colored)

ansify and KNF

Revision 1.84 / (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.83: +30 -42 lines
Diff to previous 1.83 (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.82.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.82.2.1: +6 -19 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (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.82.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.82: +26 -25 lines
Diff to previous 1.82 (colored)

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

Revision 1.39.2.10 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:08 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.9: +6 -2 lines
Diff to previous 1.39.2.9 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Dec 11 17:48:56 2004 UTC (19 years, 4 months ago) by cube
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Changes since 1.82: +6 -2 lines
Diff to previous 1.82 (colored)

Some SiS 7012 chips come muted by default, so un-mute all SiS 7012 chips at
attach time the way Linux does it.  Reported and tested by Jonathan
Schleifer, I checked it didn't break my own 7012 device which doesn't need
that manipulation.

Revision 1.39.2.9 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:15 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.8: +179 -252 lines
Diff to previous 1.39.2.8 (colored)

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Nov 17 15:19:30 2004 UTC (19 years, 4 months ago) by kent
Branch: MAIN
CVS Tags: kent-audio1-base
Branch point for: kent-audio1
Changes since 1.81: +51 -20 lines
Diff to previous 1.81 (colored)

implement auich_activate() and auich_detach()

Revision 1.81 / (download) - annotate - [select for diffs], Wed Nov 17 15:14:38 2004 UTC (19 years, 4 months ago) by kent
Branch: MAIN
Changes since 1.80: +73 -75 lines
Diff to previous 1.80 (colored)

make functions static as possible

Revision 1.39.2.8 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:43 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.7: +53 -61 lines
Diff to previous 1.39.2.7 (colored)

Sync with HEAD.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Nov 13 15:00:48 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.79: +58 -160 lines
Diff to previous 1.79 (colored)

adopt auconv_set_converter()

Revision 1.79 / (download) - annotate - [select for diffs], Thu Nov 11 03:06:21 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.78: +42 -48 lines
Diff to previous 1.78 (colored)

device matching by pcireg_t, not a pair of vendor ID and product ID.
This change reduces 170 Byte of i386 kernel size.

Revision 1.78 / (download) - annotate - [select for diffs], Wed Nov 10 17:22:25 2004 UTC (19 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.77: +9 -7 lines
Diff to previous 1.77 (colored)

Add support for the ICH6 AC97 controller.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Nov 10 17:17:14 2004 UTC (19 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.76: +5 -2 lines
Diff to previous 1.76 (colored)

Return an error when a read operation fails, instead of pretending it
succeeded and transmitting a bogus value.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Nov 10 14:14:09 2004 UTC (19 years, 5 months ago) by cube
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

In auich_calibrate, set sc_ac97_clock to a default value of 48000 first.
That way, if the calibration fails or times out, sc_ac97_clock won't be 0
and there won't be a division by zero later in ac97_set_rate.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Nov 10 04:20:26 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.74: +8 -17 lines
Diff to previous 1.74 (colored)

move IS_FIXED_RATE(), SUPPORTS_4CH(), and SUPPORTS_6CH to ac97var.h

Revision 1.74 / (download) - annotate - [select for diffs], Sat Nov 6 08:41:14 2004 UTC (19 years, 5 months ago) by xtraeme
Branch: MAIN
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored)

Add support for "nForce3 250 MCP-T AC-97 Audio", from Kouichirou Hiratsuka
in PR 27843.

Ok'ed christos@

Revision 1.39.2.7 / (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.39.2.6: +253 -189 lines
Diff to previous 1.39.2.6 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 1 06:25:35 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.72: +95 -99 lines
Diff to previous 1.72 (colored)

Some miscellaneous cleanup:
* Encapsulate all the ring-specific variables into a substructure.  (This will
  help with some potential code sharing.)
* Don't bother with "last buffer complete" interrupts -- we should be taking an
  interrupt anyway because we set IOC on every buffer.
* Likewise, ignore CELV; it's meaningless to us.
* Get rid of the FIFO error counters, since this doesn't actually happen any
  more.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Oct 31 20:15:16 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

Copyright maintenance.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Oct 31 20:00:42 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.70: +35 -63 lines
Diff to previous 1.70 (colored)

More code reduction.
Also, allow any sample rate between 8000 and 48000Hz.  (This range should
probably be larger, but this is what's known to work.)

Another 180 bytes shaved.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 31 19:28:31 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.69: +11 -13 lines
Diff to previous 1.69 (colored)

Shave another 112 bytes by reducing some divisions to shifts.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Oct 31 18:30:52 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.68: +7 -15 lines
Diff to previous 1.68 (colored)

Fix a regression -- my previous changes made the kernel slightly larger.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Oct 31 16:49:27 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.67: +56 -30 lines
Diff to previous 1.67 (colored)

In the trigger routines, start *all* the blocks, not just the first one.  This
was causing some "fifo under/overrun" errors during the initial trigger.

Also fixes a ring synchronization problem introduced in the earlier changes.

This should completely fix the FIFO errors with auich.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Oct 31 06:25:55 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +5 -6 lines
Diff to previous 1.66 (colored)

Reorder some register writes just to be safe.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Oct 31 05:50:58 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +18 -21 lines
Diff to previous 1.65 (colored)

Attempt to mitigate "fifo underrun" errors in two ways:
1) Update the queue pointers any time we get a block completion interrupt,
   not just when we hit the last block.
2) Set the "back-to-back enable" bit.
In addition:
3) Make sure we ack every block we transfer; there was a bug that could cause
   the audio layer to get out of sync.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:18 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Oct 27 13:26:43 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.63: +88 -4 lines
Diff to previous 1.63 (colored)

add "hw.auichN.ac97rate" sysctl MIB to specify AC'97 link rate.
It is needed because automatic calibration by auich_calibrate() is not
so precise.

- Why not ioctl?
  It is not good idea to add a new ioctl operation to MI audio for
a specific audio device.
- Why not mixerctl item?
  AC'97 linke rate is not related to audio mixing.

Revision 1.39.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:56:57 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.5: +2 -5 lines
Diff to previous 1.39.2.5 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Sun Oct 17 09:10:28 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.62: +2 -5 lines
Diff to previous 1.62 (colored)

no need to restore AC97_REG_EXT_AUDIO_CTRL value on resuming
because ac97_codec_if_vtbl::restore_ports() does it.

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:27 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.4: +13 -13 lines
Diff to previous 1.39.2.4 (colored)

Sync with HEAD.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed Sep 22 20:58:09 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-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
Branch point for: netbsd-2
Changes since 1.58: +13 -13 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pullup rev 1.62 (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

Revision 1.62 / (download) - annotate - [select for diffs], Wed Sep 22 12:20:24 2004 UTC (19 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.61: +13 -13 lines
Diff to previous 1.61 (colored)

ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case.

PR: kern/26973

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

Fix the sync with head I botched.

Revision 1.39.2.3 / (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.39.2.2: +2 -2 lines
Diff to previous 1.39.2.2 (colored)

Sync with HEAD.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Thu Aug 12 11:41:44 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.39.2.1: +28 -24 lines
Diff to previous 1.39.2.1 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Aug 7 16:12:57 2004 UTC (19 years, 8 months ago) by soren
Branch: MAIN
Changes since 1.60: +28 -24 lines
Diff to previous 1.60 (colored)

- Don't attempt to clear the CELV bit by setting it high like the
  FIFOE/BCIS/LVBCI bits; it's is cleared automatically by the hardware.
- Separate AUICH_DEBUG out from AUDIO_DEBUG and make it possible to debug
  interrupt handling separately.
- A little KNF.

Revision 1.39.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.39: +188 -114 lines
Diff to previous 1.39 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jul 9 02:42:45 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored)

Clean up.  Attempt to make these safer against stray interrupts.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jul 9 01:02:32 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +2 -9 lines
Diff to previous 1.58 (colored)

There's no need to halt the input and output pipes in the close routine --
audio_close() takes care of this.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Mon Mar 15 05:41:16 2004 UTC (20 years, 1 month ago) by jmc
Branch: netbsd-1-6
Changes since 1.17: +295 -68 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pullup patch (requested by kent in ticket #1612)

Add support for ICH3, ICH4, ICH5, SiS 7012, nForce MCP, nForce2 MCP-T, and
nForce3 MCP-T to auich driver

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jan 13 14:42:50 2004 UTC (20 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.57: +4 -10 lines
Diff to previous 1.57 (colored)

remove/modify confusing error messsges.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Jan 3 14:11:36 2004 UTC (20 years, 3 months ago) by soren
Branch: MAIN
Changes since 1.56: +4 -2 lines
Diff to previous 1.56 (colored)

Only report codec readiness if DEBUG to avoid printing it on every resume.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 28 12:31:30 2003 UTC (20 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.55: +26 -6 lines
Diff to previous 1.55 (colored)

ICH4/ICH5:
When native i/o mapping fails, try compatible i/o mapping.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Nov 22 08:49:41 2003 UTC (20 years, 4 months ago) by kent
Branch: MAIN
Changes since 1.54: +30 -21 lines
Diff to previous 1.54 (colored)

For ICH4/ICH5, use native BARs instead of compatible BARs.
The patch was provided by Lars Heidieker.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Nov 6 07:13:33 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +10 -2 lines
Diff to previous 1.53 (colored)

Force the codec into a known state before trying to determine its speed.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Oct 31 08:15:53 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.52: +12 -10 lines
Diff to previous 1.52 (colored)

auich_calibrate():
 - make the buffer longer to improve the precision of measurement
 - round off the result to the nearest multiple of 1000.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Oct 30 19:30:26 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.51: +20 -5 lines
Diff to previous 1.51 (colored)

For ICH4/ICH5, set IOSE flag to make them compatible to old ICHs.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Oct 28 22:56:19 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +4 -3 lines
Diff to previous 1.50 (colored)

Eliminate bogus initializer (the code was technically wrong).

Revision 1.50 / (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.49: +3 -3 lines
Diff to previous 1.49 (colored)

Fix uninitialized variable warnings

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 24 04:06:44 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.48: +8 -7 lines
Diff to previous 1.48 (colored)

auich_reset_codec:
 wait for readiness of one of all codecs.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Oct 23 17:14:54 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.47: +10 -9 lines
Diff to previous 1.47 (colored)

Change the short names of nForce:
 nForce-MCP -> nForce
 nForce-MCP-T -> nForce2
 nForce-MCP-T -> nForce3

Use snprintf() and strlcpy() instead of sprintf() and strcpy().

Revision 1.47 / (download) - annotate - [select for diffs], Thu Oct 23 17:05:26 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.46: +19 -27 lines
Diff to previous 1.46 (colored)

- remove unused code
- print diagnostic messages if the primary codec does not get ready in
auich_reset_codec().

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 23 05:25:29 2003 UTC (20 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.45: +12 -33 lines
Diff to previous 1.45 (colored)

No need to check the codec ready flag in read_codec() and write_codec().
According to the ICH datasheets, the flag is unchanged unless resetting
the codec.

The flag is useless after enabling bus mastering.  This behavior is common
to all ICH chips.  The quirk handling code is removed.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Oct 22 15:57:33 2003 UTC (20 years, 5 months ago) by manu
Branch: MAIN
Changes since 1.44: +8 -5 lines
Diff to previous 1.44 (colored)

Patch from http://mail-index.netbsd.org/current-users/2003/09/04/0018.html
to fix problems with a sound card

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 22 11:32:12 2003 UTC (20 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

Match the nForce3 AC-97 chip.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Oct 21 01:12:42 2003 UTC (20 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Add missing field initializer.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 2 07:41:53 2003 UTC (20 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +23 -17 lines
Diff to previous 1.41 (colored)

Cleanup:
* auich_calibrate() assumes that the AC97 part is in its reset state.  To
  ensure this, call audio_attach_mi() after auich_calibrate().
* Explicitly support 12000Hz and 24000Hz.  (Why is there a discrete list at
  all?)
* Fix an obvious recording bug -- we were acking the wrong interrupt.
* Ensure that we don't get an interrupt during the AC97 speed probe by clearing
  the "interrupt on completion" bit in the DMA setup.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 28 13:37:19 2003 UTC (20 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.40: +64 -23 lines
Diff to previous 1.40 (colored)

Support for 4ch/6ch audio playback.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Aug 19 21:04:22 2003 UTC (20 years, 7 months ago) by erh
Branch: MAIN
Changes since 1.39: +5 -2 lines
Diff to previous 1.39 (colored)

Add entry for Intel 82801EB AC-97 audio.  Audio sounds fine with this,
although the mixer settings are a bit odd: outputs.master doesn't do anything,
but outputs.surround does.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 13 07:27:17 2003 UTC (20 years, 10 months ago) by kent
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored)

Fix a regression of the last commit.
ICH4 needs IGNORE_CODEC_READY_MAYBE.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 13 05:13:43 2003 UTC (20 years, 10 months ago) by kent
Branch: MAIN
Changes since 1.37: +16 -11 lines
Diff to previous 1.37 (colored)

Not only ICH4 but also ICH0 and ICH2 might set no ICH_PCR.
The patch was provided by lha.

PR: kern/21031

Revision 1.37 / (download) - annotate - [select for diffs], Sat May 3 18:11:32 2003 UTC (20 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

DMA, not dma nor Dma.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:38 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +7 -6 lines
Diff to previous 1.35 (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.35 / (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.34: +20 -13 lines
Diff to previous 1.34 (colored)

Use aprint_*().

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 28 02:09:34 2003 UTC (21 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.33: +13 -5 lines
Diff to previous 1.33 (colored)

Apply BUS_DMA_NOCACHE for the buffers in the case of 440MX.  The
code was provided by DHOYASHIKI Shinichi in kern/19919, and
address kern/19435.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jan 21 16:05:21 2003 UTC (21 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.32: +45 -2 lines
Diff to previous 1.32 (colored)

Add DIAGNOSTIC code provided in PR kern/19919 by DHOYASHIKI Shinichi.

Revision 1.3.2.11 / (download) - annotate - [select for diffs], Fri Jan 17 16:31:38 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.3.2.10: +4 -2 lines
Diff to previous 1.3.2.10 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 16 01:00:06 2003 UTC (21 years, 3 months ago) by gendalia
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

add support for nForce2 MCP-T

Revision 1.3.2.10 / (download) - annotate - [select for diffs], Wed Jan 15 18:44:18 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.3.2.9: +8 -6 lines
Diff to previous 1.3.2.9 (colored) to branchpoint 1.3 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 15 04:49:35 2003 UTC (21 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.30: +8 -6 lines
Diff to previous 1.30 (colored)

Fixed a problem that /dev/sound can not be opened in some cases.

auich_set_rate() modified audio_params::sample_rate to actual
sample rate though auich_set_params() rejected sample rates
other than some specific rates.  For example, setting 8000Hz
with auich_set_params() modified sample_rate to 7998Hz in the
case of overclocked AC97 codec, and calling auich_set_params()
again returned with EINVAL because sample_rate was 7998Hz and
auich_set_params() rejected 7998Hz.

For now, auich_set_params() never modify audio_params::sample_rate.

Revision 1.3.2.9 / (download) - annotate - [select for diffs], Fri Oct 18 02:42:54 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.8: +57 -92 lines
Diff to previous 1.3.2.8 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Oct 12 19:45:54 2002 UTC (21 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Fix typo in comment.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Oct 11 04:11:28 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.28: +25 -34 lines
Diff to previous 1.28 (colored)

Kick auich_calibrate() by config_interrupts().

auichi_calibrate(): If the measured rate is less than 48k, use
48k.

Revision 1.3.4.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:25 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.5: +4 -5 lines
Diff to previous 1.3.4.5 (colored) to branchpoint 1.3 (colored) next main 1.4 (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.28 / (download) - annotate - [select for diffs], Tue Oct 8 12:31:45 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.27: +5 -4 lines
Diff to previous 1.27 (colored)

auich_set_params(): Don't return in the for loop.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 8 10:25:45 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.26: +28 -60 lines
Diff to previous 1.26 (colored)

auich_softc:
Remove sc_fixed_rate and sc_ac97rate.  ac97_softc has such
information.

auich_attach():
Remove VRA/VRM enabling code.  ac97_attach() does it.

auich_set_rate():
Use ac97_codec_if::set_rate().

auich_get_props():
Return no AUDIO_PROP_MMAP if the codec is fixed-rate.

auichreg.h:
Remove unnecessary ICH_PM_*.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 6 16:33:36 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.25: +12 -12 lines
Diff to previous 1.25 (colored)

Add some constant symbols for AC97 registers and values based on OpenBSD.
Rename some symbols to sync with OpenBSD:
	AC97_REG_EXTENDED_ID
	-> AC97_REG_EXT_AUDIO_ID
	AC97_REG_EXTENDED_STATUS
	-> AC97_REG_EXT_AUDIO_CTRL
	AC97_CODEC_DOES_VRA/AC97_ENAB_VRA
	-> AC97_EXT_AUDIO_VRA
	AC97_CODEC_DOES_MICVRA/AC97_ENAB_MICVRA
	-> AC97_EXT_AUDIO_VRM

ac97feature: "mic channel" -> "dedicated mic channel"
ac97_attach(): print extended capabilities; VRA, DRA, SPDIF, VRM, CDAC,
SDAC, LDAC.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 4 14:33:30 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.24: +8 -2 lines
Diff to previous 1.24 (colored)

Improve nForce MCP support.

Submitted by: FUKAUMI Naoki <naoki at fukaumi dot org>
PR: kern/18524

Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 2 17:08:10 2002 UTC (21 years, 6 months ago) by kent
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

Remove a line added accidentally(?) at revision 1.21.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:02 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add trailing ; to CFATTACH_DECL.

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

Use CFATTACH_DECL().

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

Declare all cfattach structures const.

Revision 1.3.2.8 / (download) - annotate - [select for diffs], Tue Sep 17 21:20:13 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.7: +2 -1 lines
Diff to previous 1.3.2.7 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.3.4.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:08 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.4: +244 -41 lines
Diff to previous 1.3.4.4 (colored) to branchpoint 1.3 (colored)

sync kqueue branch with HEAD

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:38 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.17: +244 -41 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

catch up with -current.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 28 10:51:03 2002 UTC (21 years, 7 months ago) by dsainty
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Fix playback at 48kHz sample rate (integer overflow bug introduced in 1.18)

Revision 1.3.2.7 / (download) - annotate - [select for diffs], Tue Aug 27 23:46:47 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.6: +5 -3 lines
Diff to previous 1.3.2.6 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 16 11:22:13 2002 UTC (21 years, 8 months ago) by kent
Branch: MAIN
Changes since 1.18: +7 -5 lines
Diff to previous 1.18 (colored)

Fix division-by-zero when auich_set_params() is called before auich_calibrate().

Revision 1.3.2.6 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:35 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.5: +239 -39 lines
Diff to previous 1.3.2.5 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 7 10:31:09 2002 UTC (21 years, 8 months ago) by kent
Branch: MAIN
Changes since 1.17: +241 -41 lines
Diff to previous 1.17 (colored)

- Port clock calibration code (auich_calibrate) from ich.c of FreeBSD to solve
  kern/16373.
- SiS 7012 support from kern/17716 submitted by Quentin Garnier.
- ICH4 support
- Experimental support for nForce MCP, AMD768 and AMD8111.
- Rename the short name for ICH3: "i830M" -> "ICH3"

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:33 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.3: +95 -61 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored)

catch up with -current on kqueue branch

Revision 1.3.2.5 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:00 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.4: +40 -26 lines
Diff to previous 1.3.2.4 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 11 10:54:23 2002 UTC (22 years ago) by augustss
Branch: MAIN
CVS Tags: 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
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.16: +42 -28 lines
Diff to previous 1.16 (colored)

When the DAC claims to support variable rate it doesn't seem to
always do this, so do some extra chechs and fall back on fixed rate.

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:18 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.3: +77 -48 lines
Diff to previous 1.3.2.3 (colored) to branchpoint 1.3 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.16 / (download) - annotate - [select for diffs], Sat Mar 23 17:17:11 2002 UTC (22 years ago) by kent
Branch: MAIN
Changes since 1.15: +9 -9 lines
Diff to previous 1.15 (colored)

whitespace and folding fix.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 21 09:17:20 2002 UTC (22 years ago) by kent
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.14: +30 -8 lines
Diff to previous 1.14 (colored)

Apply a patch by Mark Davies.
	http://mail-index.netbsd.org/port-i386/2002/03/18/0000.html

Check codec status in auich_read/write_codec().

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:12 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.2: +30 -15 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)

Catch up with -current.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 15 07:16:10 2002 UTC (22 years, 1 month ago) by tacha
Branch: MAIN
Changes since 1.13: +32 -34 lines
Diff to previous 1.13 (colored)

Use appropriate emulation functions and set ADC rate(not DAC date!) for recording.
Now /dev/audio with auich becomes usable.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 10 16:48:58 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

auich_set_params() sets 2 to hw_channels whenever monaural format is requested.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 7 14:37:03 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.11: +22 -14 lines
Diff to previous 1.11 (colored)

Sampling rate and mono-stereo conversion described in
http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html

auconv.c: Add conversion functions

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

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

audiovar.h: Add conversion buffers, etc.

auich and uaudio: Add conversion request code to *_set_params().

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:57 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.2: +91 -14 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 14 12:52:01 2002 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

Oops, I messed up the last commit, try again.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 14 03:22:36 2002 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)

Make fixed rate codecs work.  From Tsuyoshi Iguchi in kern/15606.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:55 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.1: +82 -11 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

Sync w/ -current.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 2 11:13:44 2002 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.8: +75 -8 lines
Diff to previous 1.8 (colored)

Make auich support variable rate codec, and suspend/resume.
From URA Hiroshi in PR kern/15431 (partly from OpenBSD).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 14 01:29:13 2002 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Add i830M to the chip list.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 12 16:17:06 2002 UTC (22 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.6: +3 -4 lines
Diff to previous 1.6 (colored)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 12 00:13:42 2002 UTC (22 years, 3 months ago) by enami
Branch: MAIN
Changes since 1.5: +6 -3 lines
Diff to previous 1.5 (colored)

Skip not yet emulated 8bit ulinear encoding correctly.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:26 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Sync kqueue branch with -current.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:07 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.1: +4 -1 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Catch up to -current.

Revision 1.5 / (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.4: +4 -1 lines
Diff to previous 1.4 (colored)

add RCSID

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

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

Revision 1.3.2.1 / (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.3: +2 -1 lines
Diff to previous 1.3 (colored)

Catch up to -current.

Revision 1.4 / (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-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (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.2.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:01 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.2: +2 -3 lines
Diff to previous 1.2.2.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 28 22:59:11 2000 UTC (23 years, 3 months ago) by sommerfeld
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (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.2.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:12:30 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.1: +1123 -0 lines
Diff to previous 1.2.2.1 (colored)

Sync with HEAD.

Revision 1.2.2.1, Tue Nov 28 16:57:16 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2: +0 -1123 lines
FILE REMOVED

file auich.c was added on branch thorpej_scsipi on 2000-12-08 09:12:30 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Nov 28 16:57:16 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej_scsipi
Changes since 1.1: +8 -6 lines
Diff to previous 1.1 (colored)

Use AC97_REG_* constants rather than defining them ourselves.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Nov 28 05:12:29 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN

Device driver for the built-in audio on Intel ICH, ICH0, ICH2,
and i440MX chipsets.  Based on a driver by Michael Shalayeff,
modified somewhat by me to use bus_dma properly, and fix some
audio encoding emulation bugs.

Thanks to Manuel Bouyer for testing and feedback.

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>