xref: /freebsd/sys/powerpc/include/bus_dma.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
15974e5c7SScott Long /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
371e3c308SPedro F. Giffuni  *
45974e5c7SScott Long  * Copyright (c) 2005 Scott Long
55974e5c7SScott Long  * All rights reserved.
65974e5c7SScott Long  *
75974e5c7SScott Long  * Redistribution and use in source and binary forms, with or without
85974e5c7SScott Long  * modification, are permitted provided that the following conditions
95974e5c7SScott Long  * are met:
105974e5c7SScott Long  * 1. Redistributions of source code must retain the above copyright
115974e5c7SScott Long  *    notice, this list of conditions and the following disclaimer.
125974e5c7SScott Long  * 2. Redistributions in binary form must reproduce the above copyright
135974e5c7SScott Long  *    notice, this list of conditions and the following disclaimer in the
145974e5c7SScott Long  *    documentation and/or other materials provided with the distribution.
155974e5c7SScott Long  *
165974e5c7SScott Long  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
175974e5c7SScott Long  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
185974e5c7SScott Long  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
195974e5c7SScott Long  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
205974e5c7SScott Long  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
215974e5c7SScott Long  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
225974e5c7SScott Long  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
235974e5c7SScott Long  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
245974e5c7SScott Long  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
255974e5c7SScott Long  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
265974e5c7SScott Long  * SUCH DAMAGE.
275974e5c7SScott Long  */
285974e5c7SScott Long 
295974e5c7SScott Long #ifndef _POWERPC_BUS_DMA_H_
305974e5c7SScott Long #define _POWERPC_BUS_DMA_H_
315974e5c7SScott Long 
325974e5c7SScott Long #include <sys/bus_dma.h>
33eb36b1d0SJason A. Harmening #include <sys/bus_dma_internal.h>
345974e5c7SScott Long 
35dfff3776SMark Johnston int bus_dma_tag_set_iommu(bus_dma_tag_t, device_t iommu, void *cookie);
36e2326639SNathan Whitehorn 
375974e5c7SScott Long #endif /* _POWERPC_BUS_DMA_H_ */
38