From ea6b1a25c37b4663a13e048bc97f2600acbf19c3 Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 15 Oct 2001 09:02:03 +0000 Subject: - 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. --- sys/boot/ofw/libofw/openfirm.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/boot/ofw') 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 #include -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_ */ -- cgit v1.1