summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2008-12-15 18:20:59 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2008-12-15 18:20:59 +0000
commitad445e7d0590aaf984b9df1f4092b18739f02cb4 (patch)
treeead312160a9b78570a4365103efa5afd82fcc255 /sys/dev/ofw
parent78549229f6a30fb36c218063290826c95afaf1ee (diff)
downloadFreeBSD-src-ad445e7d0590aaf984b9df1f4092b18739f02cb4.zip
FreeBSD-src-ad445e7d0590aaf984b9df1f4092b18739f02cb4.tar.gz
Unbreak ofwdump build by moving the pcell_t definition to after the kernel
types headers, and inside the _KERNEL ifdef. Pointy hat to: me
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/openfirm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ofw/openfirm.h b/sys/dev/ofw/openfirm.h
index 414e848..a676fc56 100644
--- a/sys/dev/ofw/openfirm.h
+++ b/sys/dev/ofw/openfirm.h
@@ -69,12 +69,6 @@ typedef unsigned long cell_t;
typedef unsigned int ihandle_t;
typedef unsigned int phandle_t;
-/*
- * Other than in Open Firmware calls, the size of a bus cell seems to be
- * always the same.
- */
-typedef u_int32_t pcell_t;
-
#ifdef _KERNEL
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -83,6 +77,12 @@ typedef u_int32_t pcell_t;
MALLOC_DECLARE(M_OFWPROP);
/*
+ * Other than in Open Firmware calls, the size of a bus cell seems to be
+ * always the same.
+ */
+typedef u_int32_t pcell_t;
+
+/*
* Stuff that is used by the Open Firmware code.
*/
void set_openfirm_callback(int (*)(void *));
OpenPOWER on IntegriCloud