coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
header.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
4 #include <stdint.h>
5 #include <symbols.h>
6 
7 #include "header.h"
8 
9 // A symbol which defines how much of the image the iROM should load.
10 extern char header_load_size;
11 
12 struct omap_image_headers headers __attribute__((section(".header"))) = {
13  .config_headers = {
14  .toc_chsettings = {
17  .size = sizeof(struct configuration_header_settings),
18  .reserved = { 0, 0, 0 },
19  .filename = "CHSETTINGS\0"
20  },
21  .toc_end = {
22  .start = 0xffffffff,
23  .size = 0xffffffff,
24  .reserved = { 0xffffffff, 0xffffffff, 0xffffffff },
25  .filename = { 0xff, 0xff, 0xff, 0xff,
26  0xff, 0xff, 0xff, 0xff,
27  0xff, 0xff, 0xff, 0xff }
28  },
29  .chsettings = {
30  .key = 0xc0c0c0c1,
31  .valid = 0,
32  .version = 1,
33  .reserved = 0,
34  .flags = 0
35  }
36  },
37  .image_header = {
38  .size = (uintptr_t)&header_load_size,
39  .destination = (uintptr_t)_sram
40  }
41 };
struct arm64_kernel_header header
Definition: fit_payload.c:30
#define offsetof(TYPE, MEMBER)
Definition: helpers.h:84
struct omap_image_headers headers
Definition: header.c:12
char header_load_size
unsigned long uintptr_t
Definition: stdint.h:21
struct configuration_header_toc_item toc_chsettings
Definition: header.h:52
struct configuration_header_settings chsettings
Definition: header.h:56
struct config_headers config_headers
Definition: header.h:61