aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/bootinfo.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-ppc/bootinfo.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-ppc/bootinfo.h')
-rw-r--r--include/asm-ppc/bootinfo.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/asm-ppc/bootinfo.h b/include/asm-ppc/bootinfo.h
new file mode 100644
index 000000000000..93d955c70d65
--- /dev/null
+++ b/include/asm-ppc/bootinfo.h
@@ -0,0 +1,52 @@
1/*
2 * Non-machine dependent bootinfo structure. Basic idea
3 * borrowed from the m68k.
4 *
5 * Copyright (C) 1999 Cort Dougan <cort@ppc.kernel.org>
6 */
7
8#ifdef __KERNEL__
9#ifndef _PPC_BOOTINFO_H
10#define _PPC_BOOTINFO_H
11
12#include <linux/config.h>
13#include <asm/page.h>
14
15#if defined(CONFIG_APUS) && !defined(__BOOTER__)
16#include <asm-m68k/bootinfo.h>
17#else
18
19struct bi_record {
20 unsigned long tag; /* tag ID */
21 unsigned long size; /* size of record (in bytes) */
22 unsigned long data[0]; /* data */
23};
24
25#define BI_FIRST 0x1010 /* first record - marker */
26#define BI_LAST 0x1011 /* last record - marker */
27#define BI_CMD_LINE 0x1012
28#define BI_BOOTLOADER_ID 0x1013
29#define BI_INITRD 0x1014
30#define BI_SYSMAP 0x1015
31#define BI_MACHTYPE 0x1016
32#define BI_MEMSIZE 0x1017
33#define BI_BOARD_INFO 0x1018
34
35extern struct bi_record *find_bootinfo(void);
36extern void bootinfo_init(struct bi_record *rec);
37extern void bootinfo_append(unsigned long tag, unsigned long size, void * data);
38extern void parse_bootinfo(struct bi_record *rec);
39extern unsigned long boot_mem_size;
40
41static inline struct bi_record *
42bootinfo_addr(unsigned long offset)
43{
44
45 return (struct bi_record *)_ALIGN((offset) + (1 << 20) - 1,
46 (1 << 20));
47}
48#endif /* CONFIG_APUS */
49
50
51#endif /* _PPC_BOOTINFO_H */
52#endif /* __KERNEL__ */