1207753Smm/*-
2207753Smm * Copyright (c) 2001 by Thomas Moestl <tmm@FreeBSD.org>.
3207753Smm * All rights reserved.
4207753Smm *
5207753Smm * Redistribution and use in source and binary forms, with or without
6207753Smm * modification, are permitted provided that the following conditions
7207753Smm * are met:
8207753Smm * 1. Redistributions of source code must retain the above copyright
9207753Smm *    notice, this list of conditions and the following disclaimer.
10207753Smm * 2. Redistributions in binary form must reproduce the above copyright
11207753Smm *    notice, this list of conditions and the following disclaimer in the
12207753Smm *    documentation and/or other materials provided with the distribution.
13207753Smm *
14207753Smm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15207753Smm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16207753Smm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17207753Smm * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18207753Smm * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19207753Smm * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20207753Smm * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21207753Smm * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22207753Smm * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23207753Smm * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24207753Smm *
25207753Smm * $FreeBSD$
26207753Smm */
27207753Smm
28207753Smm#ifndef _MACHINE_OFW_MACHDEP_H_
29207753Smm#define _MACHINE_OFW_MACHDEP_H_
30207753Smm
31207753Smm#include <sys/bus.h>
32207753Smm#include <machine/bus.h>
33207753Smm#include <dev/ofw/openfirm.h>
34207753Smm
35207753Smmtypedef uint64_t cell_t;
36207753Smm
37207753Smmint  OF_decode_addr(phandle_t, int, int *, bus_addr_t *);
38207753Smmvoid OF_getetheraddr(device_t, u_char *);
39207753Smmu_int OF_getscsinitid(device_t);
40207753Smmvoid OF_panic(const char *fmt, ...) __dead2 __printflike(1, 2);
41207753Smmvoid cpu_shutdown(void *) __dead2;
42207753Smmint  ofw_entry(void *);
43207753Smmvoid ofw_exit(void *) __dead2;
44207753Smm
45207753Smm#endif /* _MACHINE_OFW_MACHDEP_H_ */
46207753Smm