summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/buffer.h
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
committercognet <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
commit25a2aa22f19c732e8551e7ad32190bf14add4562 (patch)
tree754946b164b23a1f5dc38394662ee5a04598b6a7 /sys/dev/sound/pcm/buffer.h
parent22cf3256d9e0c5f63427ab60eb09a6f768660c18 (diff)
downloadFreeBSD-src-25a2aa22f19c732e8551e7ad32190bf14add4562.zip
FreeBSD-src-25a2aa22f19c732e8551e7ad32190bf14add4562.tar.gz
Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().
Reviewed by: orion
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 d25ceec..5a73898 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);
OpenPOWER on IntegriCloud