1226496Sjchandra/*- 2226496Sjchandra * Copyright (c) 2010 The FreeBSD Foundation 3226496Sjchandra * All rights reserved. 4226496Sjchandra * 5226496Sjchandra * This software was developed by Semihalf under sponsorship from 6226496Sjchandra * the FreeBSD Foundation. 7226496Sjchandra * 8226496Sjchandra * Redistribution and use in source and binary forms, with or without 9226496Sjchandra * modification, are permitted provided that the following conditions 10226496Sjchandra * are met: 11226496Sjchandra * 1. Redistributions of source code must retain the above copyright 12226496Sjchandra * notice, this list of conditions and the following disclaimer. 13226496Sjchandra * 2. Redistributions in binary form must reproduce the above copyright 14226496Sjchandra * notice, this list of conditions and the following disclaimer in the 15226496Sjchandra * documentation and/or other materials provided with the distribution. 16226496Sjchandra * 17226496Sjchandra * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18226496Sjchandra * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19226496Sjchandra * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20226496Sjchandra * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21226496Sjchandra * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22226496Sjchandra * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23226496Sjchandra * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24226496Sjchandra * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25226496Sjchandra * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26226496Sjchandra * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27226496Sjchandra * SUCH DAMAGE. 28226496Sjchandra * 29226496Sjchandra * $FreeBSD$ 30226496Sjchandra */ 31226496Sjchandra 32226496Sjchandra#ifndef _MACHINE_FDT_H_ 33226496Sjchandra#define _MACHINE_FDT_H_ 34226496Sjchandra 35226496Sjchandra#include <machine/bus.h> 36226496Sjchandra 37226496Sjchandra/* 38226496Sjchandra * Bus space tag. XXX endianess info needs to be derived from the blob. 39226496Sjchandra */ 40226501Sjchandra#if defined(CPU_RMI) || defined(CPU_NLM) 41226501Sjchandra#define fdtbus_bs_tag rmi_uart_bus_space 42226501Sjchandra#else 43295501Sadrian#define fdtbus_bs_tag mips_bus_space_generic 44226501Sjchandra#endif 45226496Sjchandra 46226496Sjchandra#endif /* _MACHINE_FDT_H_ */ 47