coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pei_wrapper.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 
3 #ifndef _PEI_WRAPPER_H_
4 #define _PEI_WRAPPER_H_
5 
6 #include <types.h>
7 
8 #define PEI_VERSION 22
9 
10 #define ABI_X86 __attribute__((regparm(0)))
11 
12 typedef void ABI_X86(*tx_byte_func)(unsigned char byte);
13 
14 struct pei_data {
16 
17  int boot_mode;
18 
19  /* Data read from flash and passed into MRC */
20  const void *saved_data;
21  int saved_data_size;
22 
23  /* Disable use of saved data (can be set by mainboard) */
25 
26  /* Data from MRC that should be saved to flash */
27  void *data_to_save;
30 
31 #endif /* _PEI_WRAPPER_H_ */
struct pei_data __packed
#define ABI_X86
Definition: pei_wrapper.h:10
void ABI_X86(* tx_byte_func)(unsigned char byte)
Definition: pei_wrapper.h:12
unsigned int uint32_t
Definition: stdint.h:14
int data_to_save_size
Definition: pei_data.h:245
int saved_data_size
Definition: pei_data.h:238
int disable_saved_data
Definition: pei_data.h:241
uint32_t pei_version
Definition: pei_data.h:43
const void * saved_data
Definition: pei_data.h:237
int boot_mode
Definition: pei_data.h:61
void * data_to_save
Definition: pei_data.h:244