UefiPayloadPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Coreboot.h File Reference

Data Structures

struct  cbmem_entry
 
struct  cbmem_root
 
struct  imd_entry
 
struct  imd_root
 
struct  cbuint64
 
struct  cb_header
 
struct  cb_record
 
struct  cb_memory_range
 
struct  cb_memory
 
struct  cb_mainboard
 
struct  cb_string
 
struct  cb_serial
 
struct  cb_console
 
struct  cb_forward
 
struct  cb_framebuffer
 
struct  cb_vdat
 
struct  cb_cbmem_tab
 

Macros

#define DYN_CBMEM_ALIGN_SIZE   (4096)
 
#define IMD_ENTRY_MAGIC   (~0xC0389481)
 
#define CBMEM_ENTRY_MAGIC   (~0xC0389479)
 
#define CB_HEADER_SIGNATURE   0x4F49424C
 
#define CB_TAG_UNUSED   0x0000
 
#define CB_TAG_MEMORY   0x0001
 
#define CB_MEM_RAM   1
 
#define CB_MEM_RESERVED   2
 
#define CB_MEM_ACPI   3
 
#define CB_MEM_NVS   4
 
#define CB_MEM_UNUSABLE   5
 
#define CB_MEM_VENDOR_RSVD   6
 
#define CB_MEM_TABLE   16
 
#define CB_TAG_MAINBOARD   0x0003
 
#define CB_TAG_VERSION   0x0004
 
#define CB_TAG_EXTRA_VERSION   0x0005
 
#define CB_TAG_BUILD   0x0006
 
#define CB_TAG_COMPILE_TIME   0x0007
 
#define CB_TAG_COMPILE_BY   0x0008
 
#define CB_TAG_COMPILE_HOST   0x0009
 
#define CB_TAG_COMPILE_DOMAIN   0x000a
 
#define CB_TAG_COMPILER   0x000b
 
#define CB_TAG_LINKER   0x000c
 
#define CB_TAG_ASSEMBLER   0x000d
 
#define CB_TAG_SERIAL   0x000f
 
#define CB_SERIAL_TYPE_IO_MAPPED   1
 
#define CB_SERIAL_TYPE_MEMORY_MAPPED   2
 
#define CB_TAG_CONSOLE   0x00010
 
#define CB_TAG_CONSOLE_SERIAL8250   0
 
#define CB_TAG_CONSOLE_VGA   1
 
#define CB_TAG_CONSOLE_BTEXT   2
 
#define CB_TAG_CONSOLE_LOGBUF   3
 
#define CB_TAG_CONSOLE_SROM   4
 
#define CB_TAG_CONSOLE_EHCI   5
 
#define CB_TAG_FORWARD   0x00011
 
#define CB_TAG_FRAMEBUFFER   0x0012
 
#define CB_TAG_VDAT   0x0015
 
#define CB_TAG_TIMESTAMPS   0x0016
 
#define CB_TAG_CBMEM_CONSOLE   0x0017
 
#define CB_TAG_MRC_CACHE   0x0018
 
#define MEM_RANGE_COUNT(_rec)   (((_rec)->size - sizeof(*(_rec))) / sizeof((_rec)->map[0]))
 
#define MEM_RANGE_PTR(_rec, _idx)
 

Typedefs

typedef struct cb_memory CB_MEMORY
 

Detailed Description

Coreboot PEI module include file.

Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define CB_HEADER_SIGNATURE   0x4F49424C
#define CB_MEM_ACPI   3
#define CB_MEM_NVS   4
#define CB_MEM_RAM   1
#define CB_MEM_RESERVED   2
#define CB_MEM_TABLE   16
#define CB_MEM_UNUSABLE   5
#define CB_MEM_VENDOR_RSVD   6
#define CB_SERIAL_TYPE_IO_MAPPED   1
#define CB_SERIAL_TYPE_MEMORY_MAPPED   2
#define CB_TAG_ASSEMBLER   0x000d
#define CB_TAG_BUILD   0x0006
#define CB_TAG_CBMEM_CONSOLE   0x0017
#define CB_TAG_COMPILE_BY   0x0008
#define CB_TAG_COMPILE_DOMAIN   0x000a
#define CB_TAG_COMPILE_HOST   0x0009
#define CB_TAG_COMPILE_TIME   0x0007
#define CB_TAG_COMPILER   0x000b
#define CB_TAG_CONSOLE   0x00010
#define CB_TAG_CONSOLE_BTEXT   2
#define CB_TAG_CONSOLE_EHCI   5
#define CB_TAG_CONSOLE_LOGBUF   3
#define CB_TAG_CONSOLE_SERIAL8250   0
#define CB_TAG_CONSOLE_SROM   4
#define CB_TAG_CONSOLE_VGA   1
#define CB_TAG_EXTRA_VERSION   0x0005
#define CB_TAG_FORWARD   0x00011
#define CB_TAG_FRAMEBUFFER   0x0012
#define CB_TAG_LINKER   0x000c
#define CB_TAG_MAINBOARD   0x0003
#define CB_TAG_MEMORY   0x0001
#define CB_TAG_MRC_CACHE   0x0018
#define CB_TAG_SERIAL   0x000f
#define CB_TAG_TIMESTAMPS   0x0016
#define CB_TAG_UNUSED   0x0000
#define CB_TAG_VDAT   0x0015
#define CB_TAG_VERSION   0x0004
#define CBMEM_ENTRY_MAGIC   (~0xC0389479)
#define DYN_CBMEM_ALIGN_SIZE   (4096)
#define IMD_ENTRY_MAGIC   (~0xC0389481)
#define MEM_RANGE_COUNT (   _rec)    (((_rec)->size - sizeof(*(_rec))) / sizeof((_rec)->map[0]))
#define MEM_RANGE_PTR (   _rec,
  _idx 
)
Value:
(void *)(((UINT8 *) (_rec)) + sizeof(*(_rec)) \
+ (sizeof((_rec)->map[0]) * (_idx)))

Typedef Documentation

typedef struct cb_memory CB_MEMORY