11.31Smacallan/* $NetBSD: bus.h,v 1.31 2016/11/16 19:37:06 macallan Exp $ */ 21.1Sjonathan 31.5Sthorpej/*- 41.14Sthorpej * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 51.3Sjonathan * All rights reserved. 61.1Sjonathan * 71.5Sthorpej * This code is derived from software contributed to The NetBSD Foundation 81.5Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 91.5Sthorpej * NASA Ames Research Center. 101.5Sthorpej * 111.3Sjonathan * Redistribution and use in source and binary forms, with or without 121.3Sjonathan * modification, are permitted provided that the following conditions 131.3Sjonathan * are met: 141.3Sjonathan * 1. Redistributions of source code must retain the above copyright 151.3Sjonathan * notice, this list of conditions and the following disclaimer. 161.3Sjonathan * 2. Redistributions in binary form must reproduce the above copyright 171.3Sjonathan * notice, this list of conditions and the following disclaimer in the 181.3Sjonathan * documentation and/or other materials provided with the distribution. 191.5Sthorpej * 201.5Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 211.5Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 221.5Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 231.5Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 241.5Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 251.5Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 261.5Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 271.5Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 281.5Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 291.5Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 301.5Sthorpej * POSSIBILITY OF SUCH DAMAGE. 311.1Sjonathan */ 321.1Sjonathan 331.1Sjonathan#ifndef _PMAX_BUS_H_ 341.1Sjonathan#define _PMAX_BUS_H_ 351.2Sjonathan 361.5Sthorpej#include <mips/locore.h> 371.2Sjonathan 381.5Sthorpej/* 391.5Sthorpej * Utility macros; do not use outside this file. 401.5Sthorpej */ 411.5Sthorpej#define __PB_TYPENAME_PREFIX(BITS) ___CONCAT(u_int,BITS) 421.5Sthorpej#define __PB_TYPENAME(BITS) ___CONCAT(__PB_TYPENAME_PREFIX(BITS),_t) 431.1Sjonathan 441.31Smacallan#include <mips/bus_space_defs.h> 451.31Smacallan#include <mips/bus_space_funcs.h> 461.31Smacallan#include <mips/bus_dma_defs.h> 471.31Smacallan#include <mips/bus_dma_funcs.h> 481.31Smacallan 491.31Smacallanvoid pmax_bus_dma_init(void); 501.31Smacallanextern bus_space_tag_t normal_memt; 511.31Smacallanextern struct mips_bus_dma_tag pmax_default_bus_dma_tag; 521.1Sjonathan 531.10Sad#endif /* !_PMAX_BUS_H_ */ 54