diff options
Diffstat (limited to 'arch/mips/include/asm/octeon/cvmx-bootinfo.h')
-rw-r--r-- | arch/mips/include/asm/octeon/cvmx-bootinfo.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/mips/include/asm/octeon/cvmx-bootinfo.h b/arch/mips/include/asm/octeon/cvmx-bootinfo.h index 2298199a287e..c373d95b5e2c 100644 --- a/arch/mips/include/asm/octeon/cvmx-bootinfo.h +++ b/arch/mips/include/asm/octeon/cvmx-bootinfo.h | |||
@@ -53,6 +53,7 @@ | |||
53 | * to 0. | 53 | * to 0. |
54 | */ | 54 | */ |
55 | struct cvmx_bootinfo { | 55 | struct cvmx_bootinfo { |
56 | #ifdef __BIG_ENDIAN_BITFIELD | ||
56 | uint32_t major_version; | 57 | uint32_t major_version; |
57 | uint32_t minor_version; | 58 | uint32_t minor_version; |
58 | 59 | ||
@@ -123,6 +124,60 @@ struct cvmx_bootinfo { | |||
123 | */ | 124 | */ |
124 | uint64_t fdt_addr; | 125 | uint64_t fdt_addr; |
125 | #endif | 126 | #endif |
127 | #else /* __BIG_ENDIAN */ | ||
128 | /* | ||
129 | * Little-Endian: When the CPU mode is switched to | ||
130 | * little-endian, the view of the structure has some of the | ||
131 | * fields swapped. | ||
132 | */ | ||
133 | uint32_t minor_version; | ||
134 | uint32_t major_version; | ||
135 | |||
136 | uint64_t stack_top; | ||
137 | uint64_t heap_base; | ||
138 | uint64_t heap_end; | ||
139 | uint64_t desc_vaddr; | ||
140 | |||
141 | uint32_t stack_size; | ||
142 | uint32_t exception_base_addr; | ||
143 | |||
144 | uint32_t core_mask; | ||
145 | uint32_t flags; | ||
146 | |||
147 | uint32_t phy_mem_desc_addr; | ||
148 | uint32_t dram_size; | ||
149 | |||
150 | uint32_t eclock_hz; | ||
151 | uint32_t debugger_flags_base_addr; | ||
152 | |||
153 | uint32_t reserved0; | ||
154 | uint32_t dclock_hz; | ||
155 | |||
156 | uint8_t reserved3; | ||
157 | uint8_t reserved2; | ||
158 | uint16_t reserved1; | ||
159 | uint8_t board_rev_minor; | ||
160 | uint8_t board_rev_major; | ||
161 | uint16_t board_type; | ||
162 | |||
163 | char board_serial_number[CVMX_BOOTINFO_OCTEON_SERIAL_LEN]; | ||
164 | uint8_t mac_addr_base[6]; | ||
165 | uint8_t mac_addr_count; | ||
166 | uint8_t pad[5]; | ||
167 | |||
168 | #if (CVMX_BOOTINFO_MIN_VER >= 1) | ||
169 | uint64_t compact_flash_common_base_addr; | ||
170 | uint64_t compact_flash_attribute_base_addr; | ||
171 | uint64_t led_display_base_addr; | ||
172 | #endif | ||
173 | #if (CVMX_BOOTINFO_MIN_VER >= 2) | ||
174 | uint32_t config_flags; | ||
175 | uint32_t dfa_ref_clock_hz; | ||
176 | #endif | ||
177 | #if (CVMX_BOOTINFO_MIN_VER >= 3) | ||
178 | uint64_t fdt_addr; | ||
179 | #endif | ||
180 | #endif | ||
126 | }; | 181 | }; |
127 | 182 | ||
128 | #define CVMX_BOOTINFO_CFG_FLAG_PCI_HOST (1ull << 0) | 183 | #define CVMX_BOOTINFO_CFG_FLAG_PCI_HOST (1ull << 0) |