| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: openfirm.h,v 1.7 2007/12/24 15:46:45 perry Exp $ */ | | 1 | /* $NetBSD: openfirm.h,v 1.8 2018/06/06 23:50:29 uwe Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. | | 4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. |
5 | * Copyright (C) 1995, 1996 TooLs GmbH. | | 5 | * Copyright (C) 1995, 1996 TooLs GmbH. |
6 | * All rights reserved. | | 6 | * All rights reserved. |
7 | * | | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | | 9 | * modification, are permitted provided that the following conditions |
10 | * are met: | | 10 | * are met: |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -29,26 +29,27 @@ | | | @@ -29,26 +29,27 @@ |
29 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | | 29 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | | 30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | 31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
32 | */ | | 32 | */ |
33 | /* | | 33 | /* |
34 | * Prototypes for Openfirmware Interface Routines | | 34 | * Prototypes for Openfirmware Interface Routines |
35 | */ | | 35 | */ |
36 | | | 36 | |
37 | #include <sys/cdefs.h> | | 37 | #include <sys/cdefs.h> |
38 | #include <sys/types.h> | | 38 | #include <sys/types.h> |
39 | | | 39 | |
40 | #include "boot.h" | | 40 | #include "boot.h" |
41 | | | 41 | |
| | | 42 | void OF_enter(void); |
42 | __dead void OF_exit(void); | | 43 | __dead void OF_exit(void); |
43 | int OF_finddevice(const char *); | | 44 | int OF_finddevice(const char *); |
44 | int OF_instance_to_package(int); | | 45 | int OF_instance_to_package(int); |
45 | int OF_getprop(int, const char *, void *, int); | | 46 | int OF_getprop(int, const char *, void *, int); |
46 | #ifdef __notyet__ | | 47 | #ifdef __notyet__ |
47 | int OF_setprop(int, const char *, void *, int); | | 48 | int OF_setprop(int, const char *, void *, int); |
48 | #endif | | 49 | #endif |
49 | int OF_open(const char *); | | 50 | int OF_open(const char *); |
50 | void OF_close(int); | | 51 | void OF_close(int); |
51 | int OF_write(int, void *, int); | | 52 | int OF_write(int, void *, int); |
52 | int OF_read(int, void *, int); | | 53 | int OF_read(int, void *, int); |
53 | int OF_seek(int, u_quad_t); | | 54 | int OF_seek(int, u_quad_t); |
54 | void *OF_claim(void *, u_int, u_int); | | 55 | void *OF_claim(void *, u_int, u_int); |