ofw_machdep.h revision 133728
1218887Sdim/*-
2218887Sdim * Copyright (c) 2001 by Thomas Moestl <tmm@FreeBSD.org>.
3218887Sdim * All rights reserved.
4218887Sdim *
5218887Sdim * Redistribution and use in source and binary forms, with or without
6218887Sdim * modification, are permitted provided that the following conditions
7218887Sdim * are met:
8218887Sdim * 1. Redistributions of source code must retain the above copyright
9218887Sdim *    notice, this list of conditions and the following disclaimer.
10218887Sdim * 2. Redistributions in binary form must reproduce the above copyright
11218887Sdim *    notice, this list of conditions and the following disclaimer in the
12218887Sdim *    documentation and/or other materials provided with the distribution.
13218887Sdim *
14218887Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15218887Sdim * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16218887Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17218887Sdim * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18218887Sdim * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19221345Sdim * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20218887Sdim * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21218887Sdim * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22218887Sdim * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23218887Sdim * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24218887Sdim *
25218887Sdim * $FreeBSD: head/sys/sparc64/include/ofw_machdep.h 133728 2004-08-14 21:43:37Z marius $
26218887Sdim */
27218887Sdim
28218887Sdim#ifndef _MACHINE_OFW_MACHDEP_H_
29218887Sdim#define _MACHINE_OFW_MACHDEP_H_
30218887Sdim
31218887Sdim#include <sys/bus.h>
32218887Sdim
33218887Sdimint  OF_decode_addr(phandle_t, int *, bus_addr_t *);
34218887Sdimvoid OF_getetheraddr(device_t, u_char *);
35218887Sdimvoid cpu_shutdown(void *);
36218887Sdimvoid openfirmware_exit(void *);
37218887Sdim
38218887Sdim#endif /* _MACHINE_OFW_MACHDEP_H_ */
39218887Sdim
40249423Sdim