diff options
| author | skrll <skrll@NetBSD.org> | 2022-11-19 12:16:03 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2022-11-19 12:16:03 +0000 |
| commit | 9ca8dd9b91c2c47ecb44cbf685b8e1ac115e5a03 (patch) | |
| tree | f74d94d455333a32c09e71cb82fb77c36105922f /sys | |
| parent | 884c228b4e415ba3983abd07fd8250f303a55efc (diff) | |
Fix some types
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/riscv/include/bus_defs.h | 4 | ||||
| -rw-r--r-- | sys/arch/riscv/include/bus_funcs.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/riscv/include/bus_defs.h b/sys/arch/riscv/include/bus_defs.h index 7ca02b1d5ff..f793b580031 100644 --- a/sys/arch/riscv/include/bus_defs.h +++ b/sys/arch/riscv/include/bus_defs.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_defs.h,v 1.1 2022/09/11 15:31:12 skrll Exp $ */ +/* $NetBSD: bus_defs.h,v 1.2 2022/11/19 12:16:03 skrll Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -339,7 +339,7 @@ typedef struct riscv_bus_dma_segment bus_dma_segment_t; * This structure describes a valid DMA range. */ struct riscv_dma_range { - bus_addr_t dr_sysbase; /* system base address */ + paddr_t dr_sysbase; /* system base address */ bus_addr_t dr_busbase; /* appears here on bus */ bus_size_t dr_len; /* length of range */ uint32_t dr_flags; /* flags for range */ diff --git a/sys/arch/riscv/include/bus_funcs.h b/sys/arch/riscv/include/bus_funcs.h index 9ea143b3e3f..42bdbc96136 100644 --- a/sys/arch/riscv/include/bus_funcs.h +++ b/sys/arch/riscv/include/bus_funcs.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_funcs.h,v 1.1 2022/09/11 15:31:12 skrll Exp $ */ +/* $NetBSD: bus_funcs.h,v 1.2 2022/11/19 12:16:03 skrll Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -720,7 +720,7 @@ paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs, int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size, bus_size_t alignment, bus_size_t boundary, bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags, - vaddr_t low, vaddr_t high); + paddr_t low, paddr_t high); int _bus_dmatag_subregion(bus_dma_tag_t, bus_addr_t, bus_addr_t, bus_dma_tag_t *, int); |
