1226496Sjchandra/*-
2226496Sjchandra * Copyright (c) 2001 by Thomas Moestl <tmm@FreeBSD.org>.
3226496Sjchandra * All rights reserved.
4226496Sjchandra *
5226496Sjchandra * Redistribution and use in source and binary forms, with or without
6226496Sjchandra * modification, are permitted provided that the following conditions
7226496Sjchandra * are met:
8226496Sjchandra * 1. Redistributions of source code must retain the above copyright
9226496Sjchandra *    notice, this list of conditions and the following disclaimer.
10226496Sjchandra * 2. Redistributions in binary form must reproduce the above copyright
11226496Sjchandra *    notice, this list of conditions and the following disclaimer in the
12226496Sjchandra *    documentation and/or other materials provided with the distribution.
13226496Sjchandra *
14226496Sjchandra * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15226496Sjchandra * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16226496Sjchandra * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17226496Sjchandra * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18226496Sjchandra * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19226496Sjchandra * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20226496Sjchandra * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21226496Sjchandra * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22226496Sjchandra * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23226496Sjchandra * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24226496Sjchandra *
25226496Sjchandra * $FreeBSD$
26226496Sjchandra */
27226496Sjchandra
28226496Sjchandra#ifndef _MACHINE_OFW_MACHDEP_H_
29226496Sjchandra#define _MACHINE_OFW_MACHDEP_H_
30226496Sjchandra
31226496Sjchandra#include <sys/cdefs.h>
32226496Sjchandra#include <sys/types.h>
33226496Sjchandra#include <sys/rman.h>
34226496Sjchandra#include <sys/bus.h>
35226496Sjchandra
36226496Sjchandratypedef	uint32_t	cell_t;
37226496Sjchandrastruct mem_region {
38226496Sjchandra	vm_offset_t	mr_start;
39226496Sjchandra	vm_size_t	mr_size;
40226496Sjchandra};
41226496Sjchandra
42226496Sjchandravoid OF_getetheraddr(device_t dev, u_char *addr);
43226496Sjchandravoid OF_initial_setup(void *fdt_ptr, void *junk, int (*openfirm)(void *));
44226496Sjchandra
45226496Sjchandra#endif /* _MACHINE_OFW_MACHDEP_H_ */
46