1*7bcac319Smacallan /* $NetBSD: bus.h,v 1.31 2016/11/16 19:37:06 macallan Exp $ */ 20a875d42Sjonathan 37a9c58e1Sthorpej /*- 42c4c690fSthorpej * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 55342b115Sjonathan * All rights reserved. 60a875d42Sjonathan * 77a9c58e1Sthorpej * This code is derived from software contributed to The NetBSD Foundation 87a9c58e1Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 97a9c58e1Sthorpej * NASA Ames Research Center. 107a9c58e1Sthorpej * 115342b115Sjonathan * Redistribution and use in source and binary forms, with or without 125342b115Sjonathan * modification, are permitted provided that the following conditions 135342b115Sjonathan * are met: 145342b115Sjonathan * 1. Redistributions of source code must retain the above copyright 155342b115Sjonathan * notice, this list of conditions and the following disclaimer. 165342b115Sjonathan * 2. Redistributions in binary form must reproduce the above copyright 175342b115Sjonathan * notice, this list of conditions and the following disclaimer in the 185342b115Sjonathan * documentation and/or other materials provided with the distribution. 190a875d42Sjonathan * 207a9c58e1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 217a9c58e1Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 227a9c58e1Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 237a9c58e1Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 247a9c58e1Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 257a9c58e1Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 267a9c58e1Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 277a9c58e1Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 287a9c58e1Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 297a9c58e1Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 307a9c58e1Sthorpej * POSSIBILITY OF SUCH DAMAGE. 310a875d42Sjonathan */ 320a875d42Sjonathan 330a875d42Sjonathan #ifndef _PMAX_BUS_H_ 340a875d42Sjonathan #define _PMAX_BUS_H_ 350a875d42Sjonathan 367a9c58e1Sthorpej #include <mips/locore.h> 37157d46c6Sjonathan 387a9c58e1Sthorpej /* 397a9c58e1Sthorpej * Utility macros; do not use outside this file. 407a9c58e1Sthorpej */ 417a9c58e1Sthorpej #define __PB_TYPENAME_PREFIX(BITS) ___CONCAT(u_int,BITS) 427a9c58e1Sthorpej #define __PB_TYPENAME(BITS) ___CONCAT(__PB_TYPENAME_PREFIX(BITS),_t) 43157d46c6Sjonathan 44*7bcac319Smacallan #include <mips/bus_space_defs.h> 45*7bcac319Smacallan #include <mips/bus_space_funcs.h> 46*7bcac319Smacallan #include <mips/bus_dma_defs.h> 47*7bcac319Smacallan #include <mips/bus_dma_funcs.h> 487a9c58e1Sthorpej 49af66038fSthorpej void pmax_bus_dma_init(void); 50*7bcac319Smacallan extern bus_space_tag_t normal_memt; 51*7bcac319Smacallan extern struct mips_bus_dma_tag pmax_default_bus_dma_tag; 520a875d42Sjonathan 53838b5e08Sad #endif /* !_PMAX_BUS_H_ */ 54