15974e5c7SScott Long /* $NetBSD: bus.h,v 1.11 2003/07/28 17:35:54 thorpej Exp $ */ 25974e5c7SScott Long 35974e5c7SScott Long /*- 4*b61a5730SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 5af3dc4a7SPedro F. Giffuni * 65974e5c7SScott Long * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 75974e5c7SScott Long * All rights reserved. 85974e5c7SScott Long * 95974e5c7SScott Long * This code is derived from software contributed to The NetBSD Foundation 105974e5c7SScott Long * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 115974e5c7SScott Long * NASA Ames Research Center. 125974e5c7SScott Long * 135974e5c7SScott Long * Redistribution and use in source and binary forms, with or without 145974e5c7SScott Long * modification, are permitted provided that the following conditions 155974e5c7SScott Long * are met: 165974e5c7SScott Long * 1. Redistributions of source code must retain the above copyright 175974e5c7SScott Long * notice, this list of conditions and the following disclaimer. 185974e5c7SScott Long * 2. Redistributions in binary form must reproduce the above copyright 195974e5c7SScott Long * notice, this list of conditions and the following disclaimer in the 205974e5c7SScott Long * documentation and/or other materials provided with the distribution. 215974e5c7SScott Long * 225974e5c7SScott Long * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 235974e5c7SScott Long * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 245974e5c7SScott Long * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 255974e5c7SScott Long * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 265974e5c7SScott Long * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 275974e5c7SScott Long * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 285974e5c7SScott Long * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 295974e5c7SScott Long * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 305974e5c7SScott Long * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 315974e5c7SScott Long * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 325974e5c7SScott Long * POSSIBILITY OF SUCH DAMAGE. 335974e5c7SScott Long */ 345974e5c7SScott Long 355974e5c7SScott Long /*- 365974e5c7SScott Long * Copyright (c) 1996 Charles M. Hannum. All rights reserved. 375974e5c7SScott Long * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 385974e5c7SScott Long * 395974e5c7SScott Long * Redistribution and use in source and binary forms, with or without 405974e5c7SScott Long * modification, are permitted provided that the following conditions 415974e5c7SScott Long * are met: 425974e5c7SScott Long * 1. Redistributions of source code must retain the above copyright 435974e5c7SScott Long * notice, this list of conditions and the following disclaimer. 445974e5c7SScott Long * 2. Redistributions in binary form must reproduce the above copyright 455974e5c7SScott Long * notice, this list of conditions and the following disclaimer in the 465974e5c7SScott Long * documentation and/or other materials provided with the distribution. 475974e5c7SScott Long * 3. All advertising materials mentioning features or use of this software 485974e5c7SScott Long * must display the following acknowledgement: 495974e5c7SScott Long * This product includes software developed by Christopher G. Demetriou 505974e5c7SScott Long * for the NetBSD Project. 515974e5c7SScott Long * 4. The name of the author may not be used to endorse or promote products 525974e5c7SScott Long * derived from this software without specific prior written permission 535974e5c7SScott Long * 545974e5c7SScott Long * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 555974e5c7SScott Long * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 565974e5c7SScott Long * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 575974e5c7SScott Long * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 585974e5c7SScott Long * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 595974e5c7SScott Long * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 605974e5c7SScott Long * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 615974e5c7SScott Long * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 625974e5c7SScott Long * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 635974e5c7SScott Long * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 645974e5c7SScott Long */ 655974e5c7SScott Long 665974e5c7SScott Long #ifndef _ARM_BUS_DMA_H 675974e5c7SScott Long #define _ARM_BUS_DMA_H 685974e5c7SScott Long 695974e5c7SScott Long #include <sys/bus_dma.h> 70eb36b1d0SJason A. Harmening #include <sys/bus_dma_internal.h> 715974e5c7SScott Long 725974e5c7SScott Long /* Bus Space DMA macros */ 735974e5c7SScott Long 745974e5c7SScott Long #define BUS_DMA_TAG_VALID(t) ((t) != (bus_dma_tag_t)0) 755974e5c7SScott Long 765974e5c7SScott Long #endif /* _ARM_BUS_DMA_H */ 77