summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@raspberryginger.com>2007-09-28 14:22:19 -0400
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 00:58:29 -0700
commitc75ac712df81bf0b9a561bd89f74282650440035 (patch)
tree3d92a2b35cf2bc57333ee66030efc3afb8d5341c /include
parent2cfc5be7df26b6fbe9a293e2abf388a6e5b9a39e (diff)
[PARISC] Export pdc.h for palo
Signed-off-by: Jeff Bailey <jbailey@raspberryginger.com> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'include')
-rw-r--r--include/asm-parisc/Kbuild2
-rw-r--r--include/asm-parisc/pdc.h19
2 files changed, 15 insertions, 6 deletions
diff --git a/include/asm-parisc/Kbuild b/include/asm-parisc/Kbuild
index c68e1680da01..f88b252e419c 100644
--- a/include/asm-parisc/Kbuild
+++ b/include/asm-parisc/Kbuild
@@ -1 +1,3 @@
include include/asm-generic/Kbuild.asm
+
+unifdef-y += pdc.h
diff --git a/include/asm-parisc/pdc.h b/include/asm-parisc/pdc.h
index 876fd8116d4a..775726d8a716 100644
--- a/include/asm-parisc/pdc.h
+++ b/include/asm-parisc/pdc.h
@@ -143,14 +143,15 @@
#define PDC_MEM_RET_PDT_FULL -11
#define PDC_MEM_RET_INVALID_PHYSICAL_LOCATION ~0ULL
-#ifndef __ASSEMBLY__
+#ifdef __KERNEL__
+# ifndef __ASSEMBLY__
typedef struct {
unsigned long long baseAddr;
unsigned int pages;
unsigned int reserved;
} MemAddrTable_t;
-#endif
-
+# endif /* __ASSEMBLY__ */
+#endif /* __KERNEL__ */
#define PDC_PSW 21 /* Get/Set default System Mask */
#define PDC_PSW_MASK 0 /* Return mask */
@@ -296,8 +297,11 @@ typedef struct {
#define OSTAT_ON 7
#ifndef __ASSEMBLY__
-
#include <linux/types.h>
+#endif /* __ASSEMBLY__ */
+
+#ifdef __KERNEL__
+# ifndef __ASSEMBLY__
extern int pdc_type;
@@ -558,7 +562,8 @@ struct pdc_hpmc_pim_20 { /* PDC_PIM */
__u64 fr[32];
};
-#endif /* __ASSEMBLY__ */
+# endif /* __ASSEMBLY__ */
+#endif /* __KERNEL__ */
/* flags of the device_path (see below) */
#define PF_AUTOBOOT 0x80
@@ -707,6 +712,7 @@ struct zeropage {
#define BOOT_CONSOLE_SPA_OFFSET 0x3c4
#define BOOT_CONSOLE_PATH_OFFSET 0x3a8
+#ifdef __KERNEL__
#ifndef __ASSEMBLY__
void pdc_console_init(void); /* in pdc_console.c */
void pdc_console_restart(void);
@@ -786,6 +792,7 @@ static inline char * os_id_to_string(u16 os_id) {
default: return "Unknown";
}
}
-#endif /* __ASSEMBLY__ */
+# endif /* __ASSEMBLY__ */
+#endif /* __KERNEL__ */
#endif /* _PARISC_PDC_H */