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