Rev 1881 | Rev 1896 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1881 | Rev 1894 | ||
|---|---|---|---|
| Line 33... | Line 33... | ||
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #ifndef KERN_sparc64_BOOT_H_ |
35 | #ifndef KERN_sparc64_BOOT_H_ |
| 36 | #define KERN_sparc64_BOOT_H_ |
36 | #define KERN_sparc64_BOOT_H_ |
| 37 | 37 | ||
| 38 | - | ||
| 39 | #define VMA 0x400000 |
38 | #define VMA 0x400000 |
| 40 | #define LMA VMA |
39 | #define LMA VMA |
| 41 | 40 | ||
| 42 | #ifndef __ASM__ |
41 | #ifndef __ASM__ |
| 43 | #ifndef __LINKER__ |
42 | #ifndef __LINKER__ |
| 44 | 43 | ||
| - | 44 | #include <config.h> |
|
| 45 | #include <arch/types.h> |
45 | #include <arch/types.h> |
| 46 | #include <typedefs.h> |
46 | #include <typedefs.h> |
| - | 47 | #include <genarch/ofw/ofw_tree.h> |
|
| 47 | 48 | ||
| 48 | #define TASKMAP_MAX_RECORDS 32 |
49 | #define TASKMAP_MAX_RECORDS 32 |
| 49 | #define MEMMAP_MAX_RECORDS 32 |
50 | #define MEMMAP_MAX_RECORDS 32 |
| 50 | 51 | ||
| 51 | typedef struct { |
52 | typedef struct { |
| Line 84... | Line 85... | ||
| 84 | 85 | ||
| 85 | typedef struct { |
86 | typedef struct { |
| 86 | uint32_t clock_frequency; |
87 | uint32_t clock_frequency; |
| 87 | } processor_t; |
88 | } processor_t; |
| 88 | 89 | ||
| - | 90 | /** Bootinfo structure. |
|
| - | 91 | * |
|
| - | 92 | * Must be in sync with bootinfo structure used by the boot loader. |
|
| - | 93 | */ |
|
| 89 | typedef struct { |
94 | typedef struct { |
| 90 | taskmap_t taskmap; |
95 | taskmap_t taskmap; |
| 91 | memmap_t memmap; |
96 | memmap_t memmap; |
| 92 | screen_t screen; |
97 | screen_t screen; |
| 93 | keyboard_t keyboard; |
98 | keyboard_t keyboard; |
| 94 | processor_t processor; |
99 | processor_t processor; |
| - | 100 | ballocs_t ballocs; |
|
| - | 101 | ofw_tree_node_t *ofw_root; |
|
| 95 | } bootinfo_t; |
102 | } bootinfo_t; |
| 96 | 103 | ||
| 97 | extern bootinfo_t bootinfo; |
104 | extern bootinfo_t bootinfo; |
| 98 | 105 | ||
| 99 | #endif |
106 | #endif |