| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: bus_funcs.h,v 1.12 2022/11/19 12:15:22 skrll Exp $ */ | | 1 | /* $NetBSD: bus_funcs.h,v 1.13 2023/04/18 11:06:57 skrll Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, | | 8 | * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, |
9 | * NASA Ames Research Center. | | 9 | * NASA Ames Research Center. |
10 | * | | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | | 11 | * Redistribution and use in source and binary forms, with or without |
12 | * modification, are permitted provided that the following conditions | | 12 | * modification, are permitted provided that the following conditions |
13 | * are met: | | 13 | * are met: |
14 | * 1. Redistributions of source code must retain the above copyright | | 14 | * 1. Redistributions of source code must retain the above copyright |
| @@ -698,28 +698,26 @@ void bus_dmamap_sync(bus_dma_tag_t, bus_ | | | @@ -698,28 +698,26 @@ void bus_dmamap_sync(bus_dma_tag_t, bus_ |
698 | (*(t)->_dmamem_map)((t), (sg), (n), (s), (k), (f)) | | 698 | (*(t)->_dmamem_map)((t), (sg), (n), (s), (k), (f)) |
699 | #define bus_dmamem_unmap(t, k, s) \ | | 699 | #define bus_dmamem_unmap(t, k, s) \ |
700 | (*(t)->_dmamem_unmap)((t), (k), (s)) | | 700 | (*(t)->_dmamem_unmap)((t), (k), (s)) |
701 | #define bus_dmamem_mmap(t, sg, n, o, p, f) \ | | 701 | #define bus_dmamem_mmap(t, sg, n, o, p, f) \ |
702 | (*(t)->_dmamem_mmap)((t), (sg), (n), (o), (p), (f)) | | 702 | (*(t)->_dmamem_mmap)((t), (sg), (n), (o), (p), (f)) |
703 | | | 703 | |
704 | #define bus_dmatag_subregion(t, mna, mxa, nt, f) \ | | 704 | #define bus_dmatag_subregion(t, mna, mxa, nt, f) \ |
705 | (*(t)->_dmatag_subregion)((t), (mna), (mxa), (nt), (f)) | | 705 | (*(t)->_dmatag_subregion)((t), (mna), (mxa), (nt), (f)) |
706 | #define bus_dmatag_destroy(t) \ | | 706 | #define bus_dmatag_destroy(t) \ |
707 | (*(t)->_dmatag_destroy)(t) | | 707 | (*(t)->_dmatag_destroy)(t) |
708 | | | 708 | |
709 | #ifdef _ARM32_BUS_DMA_PRIVATE | | 709 | #ifdef _ARM32_BUS_DMA_PRIVATE |
710 | | | 710 | |
711 | extern paddr_t physical_start, physical_end; | | | |
712 | | | | |
713 | int arm32_dma_range_intersect(struct arm32_dma_range *, int, | | 711 | int arm32_dma_range_intersect(struct arm32_dma_range *, int, |
714 | paddr_t pa, psize_t size, paddr_t *pap, psize_t *sizep); | | 712 | paddr_t pa, psize_t size, paddr_t *pap, psize_t *sizep); |
715 | | | 713 | |
716 | int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t, | | 714 | int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t, |
717 | bus_size_t, int, bus_dmamap_t *); | | 715 | bus_size_t, int, bus_dmamap_t *); |
718 | void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t); | | 716 | void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t); |
719 | int _bus_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *, | | 717 | int _bus_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *, |
720 | bus_size_t, struct proc *, int); | | 718 | bus_size_t, struct proc *, int); |
721 | int _bus_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t, | | 719 | int _bus_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t, |
722 | struct mbuf *, int); | | 720 | struct mbuf *, int); |
723 | int _bus_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t, | | 721 | int _bus_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t, |
724 | struct uio *, int); | | 722 | struct uio *, int); |
725 | int _bus_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t, | | 723 | int _bus_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t, |