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
3
#include <
commonlib/bsd/helpers.h
>
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
= {
15
.
start
=
offsetof
(
struct
omap_image_headers
,
16
config_headers
.
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
};
header
struct arm64_kernel_header header
Definition:
fit_payload.c:30
helpers.h
offsetof
#define offsetof(TYPE, MEMBER)
Definition:
helpers.h:84
headers
struct omap_image_headers headers
Definition:
header.c:12
header_load_size
char header_load_size
header.h
stdint.h
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
config_headers
Definition:
header.h:50
config_headers::toc_chsettings
struct configuration_header_toc_item toc_chsettings
Definition:
header.h:52
config_headers::chsettings
struct configuration_header_settings chsettings
Definition:
header.h:56
configuration_header_settings
Definition:
header.h:23
configuration_header_settings::reserved
uint16_t reserved
Definition:
header.h:36
configuration_header_toc_item::start
uint32_t start
Definition:
header.h:11
omap_image_headers
Definition:
header.h:59
omap_image_headers::config_headers
struct config_headers config_headers
Definition:
header.h:61
src
soc
ti
am335x
header.c
Generated by
1.9.1