blob: 16124df7e094adc17dd6d2eed0aa3d1b5b730bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef SOC_INTEL_COMMON_BLOCK_EBDA_H
#define SOC_INTEL_COMMON_BLOCK_EBDA_H
#include <soc/ebda.h>
#define EBDA_SIGNATURE 0xebdaebda
/*
* Mainboard Override function
*
* Mainboard directory may implement below functionality for romstage.
*/
/* Fill up EBDA structure inside Mainboard directory */
void create_mainboard_ebda(struct ebda_config *cfg);
/*
* SoC overrides
*
* All new SoC must implement below functionality for romstage.
*/
void fill_soc_memmap_ebda(struct ebda_config *cfg);
/*
* API to perform below operation
* 1. Initialize EBDA area
* 2. Fill up EBDA structure inside SOC directory
* 3. Fill up EBDA structure inside Mainboard directory
* 4. Store EBDA structure into EBDA area
*/
void fill_ebda_area(void);
/* Fill the ebda object pointed to by cfg. Object will be zero filled
* if signature check fails. */
void retrieve_ebda_object(struct ebda_config *cfg);
/*
* EBDA structure
*
* SOC should implement EBDA structure as per need
* as below.
*
* Note: First 4 bytes should be reserved for signature as
* 0xEBDA
*
* struct ebda_config {
* uint32_t signature;
* <Required variables..>
* };
*/
#endif
|