aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/buffer.h
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
commit38cc9942076f291be0823d72ed34c5dbbc881357 (patch)
tree754946b164b23a1f5dc38394662ee5a04598b6a7 /sys/dev/sound/pcm/buffer.h
parent93664efadd48f26b16ef13d7d71e635c475433a4 (diff)
downloadsrc-38cc9942076f291be0823d72ed34c5dbbc881357.tar.gz
src-38cc9942076f291be0823d72ed34c5dbbc881357.zip
Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().
Reviewed by: orion
Notes
Notes: svn path=/head/; revision=111183
Diffstat (limited to 'sys/dev/sound/pcm/buffer.h')
-rw-r--r--sys/dev/sound/pcm/buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/buffer.h b/sys/dev/sound/pcm/buffer.h
index d25ceec3a104..5a73898bbf8b 100644
--- a/sys/dev/sound/pcm/buffer.h
+++ b/sys/dev/sound/pcm/buffer.h
@@ -51,6 +51,7 @@ struct snd_dbuf {
u_int32_t flags;
bus_dmamap_t dmamap;
bus_dma_tag_t dmatag;
+ u_int32_t buf_addr;
struct selinfo sel;
char name[SNDBUF_NAMELEN];
};
@@ -75,6 +76,8 @@ unsigned int sndbuf_getspd(struct snd_dbuf *b);
void sndbuf_setspd(struct snd_dbuf *b, unsigned int spd);
unsigned int sndbuf_getbps(struct snd_dbuf *b);
+bus_addr_t sndbuf_getbufaddr(struct snd_dbuf *buf);
+
void *sndbuf_getbuf(struct snd_dbuf *b);
void *sndbuf_getbufofs(struct snd_dbuf *b, unsigned int ofs);
unsigned int sndbuf_getsize(struct snd_dbuf *b);