ofw_machdep.h revision 186347
13263Sdg/*-
26512Sphk * Copyright (c) 2001 by Thomas Moestl <tmm@FreeBSD.org>.
33263Sdg * All rights reserved.
46512Sphk *
56512Sphk * Redistribution and use in source and binary forms, with or without
63263Sdg * modification, are permitted provided that the following conditions
73263Sdg * are met:
88876Srgrimes * 1. Redistributions of source code must retain the above copyright
98876Srgrimes *    notice, this list of conditions and the following disclaimer.
108876Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
113263Sdg *    notice, this list of conditions and the following disclaimer in the
123263Sdg *    documentation and/or other materials provided with the distribution.
133263Sdg *
143264Sdg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1550477Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
163263Sdg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
173263Sdg * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
1818444Sbde * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1918444Sbde * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
203263Sdg * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2155205Speter * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2218444Sbde * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
2318444Sbde * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2418444Sbde *
2518444Sbde * $FreeBSD: head/sys/sparc64/include/ofw_machdep.h 186347 2008-12-20 00:33:10Z nwhitehorn $
263263Sdg */
2718265Sasami
2818265Sasami#ifndef _MACHINE_OFW_MACHDEP_H_
2949197Smsmith#define _MACHINE_OFW_MACHDEP_H_
3018265Sasami
313263Sdg#include <sys/bus.h>
3249197Smsmith#include <machine/bus.h>
3318265Sasami#include <dev/ofw/openfirm.h>
343263Sdg
353263Sdgtypedef uint64_t cell_t;
363263Sdg
373263Sdgint  OF_decode_addr(phandle_t, int, int *, bus_addr_t *);
383263Sdgvoid OF_getetheraddr(device_t, u_char *);
393263Sdgvoid cpu_shutdown(void *);
403263Sdgint  ofw_entry(void *);
413263Sdgvoid ofw_exit(void *);
423263Sdg
433263Sdg#endif /* _MACHINE_OFW_MACHDEP_H_ */
443263Sdg