ofw.h revision 1.5 1 1.5 matt /* $NetBSD: ofw.h,v 1.5 2014/09/13 17:41:03 matt Exp $ */
2 1.1 reinoud
3 1.1 reinoud /*
4 1.1 reinoud * Copyright 1997
5 1.1 reinoud * Digital Equipment Corporation. All rights reserved.
6 1.1 reinoud *
7 1.1 reinoud * This software is furnished under license and may be used and
8 1.1 reinoud * copied only in accordance with the following terms and conditions.
9 1.1 reinoud * Subject to these conditions, you may download, copy, install,
10 1.1 reinoud * use, modify and distribute this software in source and/or binary
11 1.1 reinoud * form. No title or ownership is transferred hereby.
12 1.1 reinoud *
13 1.1 reinoud * 1) Any source code used, modified or distributed must reproduce
14 1.1 reinoud * and retain this copyright notice and list of conditions as
15 1.1 reinoud * they appear in the source file.
16 1.1 reinoud *
17 1.1 reinoud * 2) No right is granted to use any trade name, trademark, or logo of
18 1.1 reinoud * Digital Equipment Corporation. Neither the "Digital Equipment
19 1.1 reinoud * Corporation" name nor any trademark or logo of Digital Equipment
20 1.1 reinoud * Corporation may be used to endorse or promote products derived
21 1.1 reinoud * from this software without the prior written permission of
22 1.1 reinoud * Digital Equipment Corporation.
23 1.1 reinoud *
24 1.1 reinoud * 3) This software is provided "AS-IS" and any express or implied
25 1.1 reinoud * warranties, including but not limited to, any implied warranties
26 1.1 reinoud * of merchantability, fitness for a particular purpose, or
27 1.1 reinoud * non-infringement are disclaimed. In no event shall DIGITAL be
28 1.1 reinoud * liable for any damages whatsoever, and in particular, DIGITAL
29 1.1 reinoud * shall not be liable for special, indirect, consequential, or
30 1.1 reinoud * incidental damages or damages for lost profits, loss of
31 1.1 reinoud * revenue or loss of use, whether such damages arise in contract,
32 1.1 reinoud * negligence, tort, under statute, in equity, at law or otherwise,
33 1.1 reinoud * even if advised of the possibility of such damage.
34 1.1 reinoud */
35 1.1 reinoud
36 1.4 matt #ifndef _ARM_OFW_H_
37 1.4 matt #define _ARM_OFW_H_
38 1.1 reinoud
39 1.1 reinoud
40 1.1 reinoud /* Virtual address range reserved for OFW. */
41 1.1 reinoud /* Maybe this should be elsewhere? -JJK */
42 1.1 reinoud #define OFW_VIRT_BASE 0xF7000000
43 1.1 reinoud #define OFW_VIRT_SIZE 0x01000000
44 1.1 reinoud
45 1.1 reinoud
46 1.1 reinoud /* OFW client services handle. */
47 1.1 reinoud typedef int (*ofw_handle_t)(void *);
48 1.1 reinoud
49 1.1 reinoud
50 1.1 reinoud /* Implemented in <ofw/ofw.c> */
51 1.3 dsl void ofw_init(ofw_handle_t);
52 1.3 dsl void ofw_boot(int, char *);
53 1.3 dsl void ofw_getbootinfo(char **, char **);
54 1.3 dsl void ofw_configmem(void);
55 1.5 matt void ofw_configisa(vaddr_t *, vaddr_t *);
56 1.5 matt void ofw_configisadma(vaddr_t *);
57 1.5 matt int ofw_isadmarangeintersect(vaddr_t, vaddr_t, vaddr_t *, vaddr_t *);
58 1.5 matt vaddr_t ofw_gettranslation(vaddr_t);
59 1.5 matt vaddr_t ofw_map(vaddr_t, vsize_t, int);
60 1.5 matt vaddr_t ofw_getcleaninfo(void);
61 1.1 reinoud
62 1.1 reinoud #ifdef OFWGENCFG
63 1.1 reinoud /* Implemented in <ofw/ofwgencfg_machdep.c> */
64 1.1 reinoud extern int ofw_handleticks;
65 1.3 dsl extern void cpu_reboot(int, char *);
66 1.3 dsl extern void ofrootfound(void);
67 1.1 reinoud #endif
68 1.1 reinoud
69 1.4 matt #endif /* !_ARM_OFW_H_ */
70