freebsd-src/sys/dev/sound/pcm
Maxime Henrion 07159f9c56 Cleanup of the d_mmap_t interface.
- Get rid of the useless atop() / pmap_phys_address() detour.  The
  device mmap handlers must now give back the physical address
  without atop()'ing it.
- Don't borrow the physical address of the mapping in the returned
  int.  Now we properly pass a vm_offset_t * and expect it to be
  filled by the mmap handler when the mapping was successful.  The
  mmap handler must now return 0 when successful, any other value
  is considered as an error.  Previously, returning -1 was the only
  way to fail.  This change thus accidentally fixes some devices
  which were bogusly returning errno constants which would have been
  considered as addresses by the device pager.
- Garbage collect the poorly named pmap_phys_address() now that it's
  no longer used.
- Convert all the d_mmap_t consumers to the new API.

I'm still not sure wheter we need a __FreeBSD_version bump for this,
since and we didn't guarantee API/ABI stability until 5.1-RELEASE.

Discussed with:		alc, phk, jake
Reviewed by:		peter
Compile-tested on:	LINT (i386), GENERIC (alpha and sparc64)
Runtime-tested on:	i386
2003-02-25 03:21:22 +00:00
..
ac97.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
ac97.h Add ac97_patch.[ch] that provide space for ac97 codec specific patches. 2003-01-25 16:54:05 +00:00
ac97_if.m Remove the trailing ^M's. makeobjops.awk does not like them. 2002-05-01 03:07:40 +00:00
ac97_patch.c Add ac97_patch.[ch] that provide space for ac97 codec specific patches. 2003-01-25 16:54:05 +00:00
ac97_patch.h Add ac97_patch.[ch] that provide space for ac97 codec specific patches. 2003-01-25 16:54:05 +00:00
buffer.c Implement a "sndbuf_getbufaddr" function and use it instead of vtophys(). 2003-02-20 17:31:12 +00:00
buffer.h Implement a "sndbuf_getbufaddr" function and use it instead of vtophys(). 2003-02-20 17:31:12 +00:00
channel.c - Clean up ISA DMA supports. 2003-02-07 14:05:34 +00:00
channel.h (hopefully) fix build breakage some people are seeing 2002-11-26 18:16:27 +00:00
channel_if.m
dsp.c Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
dsp.h add a method for recording of specific channels for devices with more than 2001-09-05 16:28:41 +00:00
fake.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
feeder.c It seems that sound(4)'s feeder routines don't need to allocate memory 2003-02-23 20:49:45 +00:00
feeder.h * improve error handling 2002-01-26 22:13:24 +00:00
feeder_fmt.c It seems that sound(4)'s feeder routines don't need to allocate memory 2003-02-23 20:49:45 +00:00
feeder_if.m Remove the trailing ^M's. makeobjops.awk does not like them. 2002-05-01 03:07:40 +00:00
feeder_rate.c It seems that sound(4)'s feeder routines don't need to allocate memory 2003-02-23 20:49:45 +00:00
mixer.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
mixer.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
mixer_if.m makeobjops.awk is stricter on syntax than the perl version. 2002-05-01 03:52:40 +00:00
sndstat.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
sound.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
sound.h - Clean up ISA DMA supports. 2003-02-07 14:05:34 +00:00
vchan.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
vchan.h