diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-30 14:16:01 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-30 14:16:01 +0000 |
commit | 6dddcb3649b42a72fb6e1f90a4d66dd0f4bcd482 (patch) | |
tree | 387f92f0878112dc277af9725f0e35183769916e /sys/arch/powerpc | |
parent | 7e30b92f64324e3a7561a1bba30cf003e4037d76 (diff) |
Change:
int bus_dmamem_mmap(bus_dma_tag_t, bus_dma_segment_t, int, int, int, int);
to:
paddr_t bus_dmamem_mmap(bus_dma_tag_t, bus_dma_segment_t, int, int, off_t, int);
To allow mmaping offsets larger than INT_MAX. And to simply make more sense.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/include/bus.h | 6 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/dma.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/powerpc/include/bus.h b/sys/arch/powerpc/include/bus.h index f4441fe23ef..9946b120faa 100644 --- a/sys/arch/powerpc/include/bus.h +++ b/sys/arch/powerpc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.16 2001/07/09 02:14:05 mickey Exp $ */ +/* $OpenBSD: bus.h,v 1.17 2001/07/30 14:16:00 art Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom. All rights reserved. @@ -451,8 +451,8 @@ struct powerpc_bus_dma_tag { int (*_dmamem_map) __P((bus_dma_tag_t, bus_dma_segment_t *, int, size_t, caddr_t *, int)); void (*_dmamem_unmap) __P((bus_dma_tag_t, caddr_t, size_t)); - int (*_dmamem_mmap) __P((bus_dma_tag_t, bus_dma_segment_t *, - int, int, int, int)); + paddr_t (*_dmamem_mmap) __P((bus_dma_tag_t, bus_dma_segment_t *, + int, off_t, int, int)); }; #define bus_dmamap_create(t, s, n, m, b, f, p) \ diff --git a/sys/arch/powerpc/powerpc/dma.c b/sys/arch/powerpc/powerpc/dma.c index f9b8bfae9c7..b9fbe2cf6f0 100644 --- a/sys/arch/powerpc/powerpc/dma.c +++ b/sys/arch/powerpc/powerpc/dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dma.c,v 1.7 2001/07/25 13:25:32 art Exp $ */ +/* $OpenBSD: dma.c,v 1.8 2001/07/30 14:16:00 art Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -406,11 +406,13 @@ _dmamem_unmap(t, kva, size) * Common functin for mmap(2)'ing DMA-safe memory. May be called by * bus-specific DMA mmap(2)'ing functions. */ -int +paddr_t _dmamem_mmap(t, segs, nsegs, off, prot, flags) bus_dma_tag_t t; bus_dma_segment_t *segs; - int nsegs, off, prot, flags; + int nsegs, + off_t off; + int prot, flags; { int i; |