summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-12 23:47:41 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-12 23:47:41 -0800
commit0ee5a7d5d8313851d74d2e5c7655b0feda4c1891 (patch)
tree41d0a1f39bf0c15da52975cb92827d04f2c58d55 /include
parent39ef4295a6bfb444c731d513cb041f1e770bf178 (diff)
[PATCH] ppc32: boot and platform fixes
From: Tom Rini <trini@kernel.crashing.org> From: Randy Vinson <rvinson@mvista.com> - Fixup IBM Spruce support (GEN550, general fixes and cleanups). - Forward-port the INTERACTIVE_CONSOLE bits from 2.4. - Forward-port the bootinfo code. - Add a weak get_mem_size() function.
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/bootinfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-ppc/bootinfo.h b/include/asm-ppc/bootinfo.h
index 213bab4f1481..93d955c70d65 100644
--- a/include/asm-ppc/bootinfo.h
+++ b/include/asm-ppc/bootinfo.h
@@ -10,6 +10,7 @@
#define _PPC_BOOTINFO_H
#include <linux/config.h>
+#include <asm/page.h>
#if defined(CONFIG_APUS) && !defined(__BOOTER__)
#include <asm-m68k/bootinfo.h>
@@ -29,11 +30,21 @@ struct bi_record {
#define BI_SYSMAP 0x1015
#define BI_MACHTYPE 0x1016
#define BI_MEMSIZE 0x1017
+#define BI_BOARD_INFO 0x1018
extern struct bi_record *find_bootinfo(void);
+extern void bootinfo_init(struct bi_record *rec);
+extern void bootinfo_append(unsigned long tag, unsigned long size, void * data);
extern void parse_bootinfo(struct bi_record *rec);
extern unsigned long boot_mem_size;
+static inline struct bi_record *
+bootinfo_addr(unsigned long offset)
+{
+
+ return (struct bi_record *)_ALIGN((offset) + (1 << 20) - 1,
+ (1 << 20));
+}
#endif /* CONFIG_APUS */