diff options
author | bde <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-16 01:21:52 +0000 |
commit | 9e27b29fba08158ea646560dc2c0f671e17923cf (patch) | |
tree | ca50bac0920c7e526393546681e1b22c87541004 /sys/i386/isa/sound | |
parent | e14b44bbf30df0b2ba5a4750b2c2806bcae489eb (diff) | |
download | FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.zip FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.tar.gz |
Use [u]intptr_t instead of [u_]long for casts between pointers and
integers. Don't forget to cast to (void *) as well.
Diffstat (limited to 'sys/i386/isa/sound')
-rw-r--r-- | sys/i386/isa/sound/dmabuf.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/sound/soundcard.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/i386/isa/sound/dmabuf.c b/sys/i386/isa/sound/dmabuf.c index dfd2283..613e30b 100644 --- a/sys/i386/isa/sound/dmabuf.c +++ b/sys/i386/isa/sound/dmabuf.c @@ -1103,13 +1103,14 @@ DMAbuf_start_dma(int dev, u_long physaddr, int count, int dma_mode) if (audio_devs[dev]->flags & DMA_AUTOMODE) { /* Auto restart mode. Transfer the whole buffer */ isa_dmastart(B_RAW | ((dma_mode == 0) ? B_READ : B_WRITE), - (caddr_t) dmap->raw_buf_phys, dmap->bytes_in_use, chan); + (caddr_t) (void *) (uintptr_t) dmap->raw_buf_phys, + dmap->bytes_in_use, chan); } else #endif { isa_dmastart((dma_mode == 0) ? B_READ : B_WRITE, - (caddr_t) physaddr, count, chan); + (caddr_t) (void *) (uintptr_t) physaddr, count, chan); } return count; } diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index 4661c6b..b4eca55 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -522,7 +522,7 @@ alloc_dmap(int dev, int chan, struct dma_buffparms * dmap) * performs the phys address computation. */ - dmap->raw_buf_phys = (u_long) tmpbuf; + dmap->raw_buf_phys = (uintptr_t) tmpbuf; for (i = 0; i < audio_devs[dev]->buffsize; i++) *tmpbuf++ = 0x80; } |