diff options
author | robert <robert@FreeBSD.org> | 2001-10-15 09:02:03 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2001-10-15 09:02:03 +0000 |
commit | ea6b1a25c37b4663a13e048bc97f2600acbf19c3 (patch) | |
tree | 687c9c0f466ca558b556669911f31fa63d10a164 /sys/boot/ofw | |
parent | 1dc835d4bd3a7c454ba73d75fb5e2913fee206ba (diff) | |
download | FreeBSD-src-ea6b1a25c37b4663a13e048bc97f2600acbf19c3.zip FreeBSD-src-ea6b1a25c37b4663a13e048bc97f2600acbf19c3.tar.gz |
- Add an ifdef guard.
- Use unsigned types for the (32-bit) Open Firmware device handles
to avoid sign extension on 64-bit architectures.
- Add a standard type definition for Open Firmware arguments.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r-- | sys/boot/ofw/libofw/openfirm.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/boot/ofw/libofw/openfirm.h b/sys/boot/ofw/libofw/openfirm.h index 4bee076..9e99d5a 100644 --- a/sys/boot/ofw/libofw/openfirm.h +++ b/sys/boot/ofw/libofw/openfirm.h @@ -56,7 +56,8 @@ * * $FreeBSD$ */ - +#ifndef _OPENFIRM_H_ +#define _OPENFIRM_H_ /* * Prototypes for Openfirmware Interface Routines */ @@ -64,8 +65,9 @@ #include <sys/cdefs.h> #include <sys/types.h> -typedef int ihandle_t; -typedef int phandle_t; +typedef unsigned int ihandle_t; +typedef unsigned int phandle_t; +typedef unsigned long int cell_t; extern phandle_t chosen; @@ -119,3 +121,4 @@ void OF_set_symbol_lookup(void *, void *); /* Time function */ int OF_milliseconds(void); +#endif /* _OPENFIRM_H_ */ |