summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-07-30 14:16:01 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-07-30 14:16:01 +0000
commit6dddcb3649b42a72fb6e1f90a4d66dd0f4bcd482 (patch)
tree387f92f0878112dc277af9725f0e35183769916e /sys/arch/hppa
parent7e30b92f64324e3a7561a1bba30cf003e4037d76 (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/hppa')
-rw-r--r--sys/arch/hppa/gsc/gscbus.c6
-rw-r--r--sys/arch/hppa/include/bus.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hppa/gsc/gscbus.c b/sys/arch/hppa/gsc/gscbus.c
index 0bfd4961824..3522032b0a2 100644
--- a/sys/arch/hppa/gsc/gscbus.c
+++ b/sys/arch/hppa/gsc/gscbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gscbus.c,v 1.11 2001/03/22 23:29:27 mickey Exp $ */
+/* $OpenBSD: gscbus.c,v 1.12 2001/07/30 14:15:59 art Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -114,7 +114,7 @@ void gsc_dmamem_free __P((void *, bus_dma_segment_t *, int));
int gsc_dmamem_map __P((void *, bus_dma_segment_t *,
int, size_t, caddr_t *, int));
void gsc_dmamem_unmap __P((void *, caddr_t, size_t));
-int gsc_dmamem_mmap __P((void *, bus_dma_segment_t *, int, int, int, int));
+paddr_t gsc_dmamem_mmap __P((void *, bus_dma_segment_t *, int, off_t, int, int));
int
gscmatch(parent, cfdata, aux)
@@ -398,7 +398,7 @@ gsc_dmamem_unmap(v, kva, size)
}
-int
+paddr_t
gsc_dmamem_mmap(v, segs, nsegs, off, prot, flags)
void *v;
bus_dma_segment_t *segs;
diff --git a/sys/arch/hppa/include/bus.h b/sys/arch/hppa/include/bus.h
index 809b6f03310..1139bb4c994 100644
--- a/sys/arch/hppa/include/bus.h
+++ b/sys/arch/hppa/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.12 2000/06/15 19:05:09 mickey Exp $ */
+/* $OpenBSD: bus.h,v 1.13 2001/07/30 14:15:59 art Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -356,8 +356,8 @@ struct hppa_bus_dma_tag {
int (*_dmamem_map) __P((void *, bus_dma_segment_t *,
int, size_t, caddr_t *, int));
void (*_dmamem_unmap) __P((void *, caddr_t, size_t));
- int (*_dmamem_mmap) __P((void *, bus_dma_segment_t *,
- int, int, int, int));
+ paddr_t (*_dmamem_mmap) __P((void *, bus_dma_segment_t *,
+ int, off_t, int, int));
};
#define bus_dmamap_create(t, s, n, m, b, f, p) \