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/vax/include/bus.h | |
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/vax/include/bus.h')
-rw-r--r-- | sys/arch/vax/include/bus.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/vax/include/bus.h b/sys/arch/vax/include/bus.h index 37e0952eefc..9d2aefbde17 100644 --- a/sys/arch/vax/include/bus.h +++ b/sys/arch/vax/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.2 2000/10/09 23:11:56 bjc Exp $ */ +/* $OpenBSD: bus.h,v 1.3 2001/07/30 14:16:00 art Exp $ */ /* $NetBSD: bus.h,v 1.14 2000/06/26 04:56:13 simonb Exp $ */ /*- @@ -979,8 +979,8 @@ struct vax_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 vaxbus_dma_get_tag(t, b) \ @@ -1072,8 +1072,8 @@ int _bus_dmamem_map __P((bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs, size_t size, caddr_t *kvap, int flags)); void _bus_dmamem_unmap __P((bus_dma_tag_t tag, caddr_t kva, size_t size)); -int _bus_dmamem_mmap __P((bus_dma_tag_t tag, bus_dma_segment_t *segs, - int nsegs, int off, int prot, int flags)); +paddr_t _bus_dmamem_mmap __P((bus_dma_tag_t tag, bus_dma_segment_t *segs, + int nsegs, off_t off, int prot, int flags)); #endif /* _VAX_BUS_DMA_PRIVATE */ #endif /* _VAX_BUS_H_ */ |