ofw_machdep.h revision 302408
11556Srgrimes/*- 21556Srgrimes * Copyright (c) 2001 by Thomas Moestl <tmm@FreeBSD.org>. 31556Srgrimes * All rights reserved. 41556Srgrimes * 51556Srgrimes * Redistribution and use in source and binary forms, with or without 61556Srgrimes * modification, are permitted provided that the following conditions 71556Srgrimes * are met: 81556Srgrimes * 1. Redistributions of source code must retain the above copyright 91556Srgrimes * notice, this list of conditions and the following disclaimer. 101556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111556Srgrimes * notice, this list of conditions and the following disclaimer in the 121556Srgrimes * documentation and/or other materials provided with the distribution. 131556Srgrimes * 141556Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 151556Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 161556Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 171556Srgrimes * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 181556Srgrimes * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 191556Srgrimes * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 201556Srgrimes * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 211556Srgrimes * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 221556Srgrimes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 231556Srgrimes * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 241556Srgrimes * 251556Srgrimes * $FreeBSD: stable/11/sys/sparc64/include/ofw_machdep.h 293057 2016-01-02 19:28:35Z nwhitehorn $ 261556Srgrimes */ 271556Srgrimes 281556Srgrimes#ifndef _MACHINE_OFW_MACHDEP_H_ 291556Srgrimes#define _MACHINE_OFW_MACHDEP_H_ 301556Srgrimes 311556Srgrimes#include <sys/bus.h> 321556Srgrimes#include <machine/bus.h> 331556Srgrimes#include <dev/ofw/openfirm.h> 341556Srgrimes 351556Srgrimestypedef uint64_t cell_t; 361556Srgrimes 371556Srgrimes/* sparc64 doesn't use the interrupt parent #address-cells in interrupt maps */ 3850471Speter#define OFW_IMAP_NO_IPARENT_ADDR_CELLS 391556Srgrimes 401556Srgrimesint OF_decode_addr(phandle_t, int, int *, bus_addr_t *); 411556Srgrimesvoid OF_getetheraddr(device_t, u_char *); 421556Srgrimesu_int OF_getscsinitid(device_t); 431556Srgrimesvoid OF_panic(const char *fmt, ...) __dead2 __printflike(1, 2); 441556Srgrimesvoid cpu_shutdown(void *) __dead2; 451556Srgrimesint ofw_entry(void *); 4646684Skrisvoid ofw_exit(void *) __dead2; 471556Srgrimes 481556Srgrimes#endif /* _MACHINE_OFW_MACHDEP_H_ */ 491556Srgrimes