TianoCore EDK2 master
Loading...
Searching...
No Matches
Coreboot.h File Reference

Go to the source code of this file.

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_cbmem_ref
 
struct  cb_framebuffer
 
struct  cb_vdat
 
struct  cbmem_console
 
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
 

Functions

struct cbmem_console __attribute__ ((packed))
 

Variables

UINT32 size
 
UINT32 cursor
 
UINT8 body [0]
 
struct cb_cbmem_tab __attribute__
 

Detailed Description

Coreboot PEI module include file.

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

Definition in file Coreboot.h.

Macro Definition Documentation

◆ CB_HEADER_SIGNATURE

#define CB_HEADER_SIGNATURE   0x4F49424C

Definition at line 86 of file Coreboot.h.

◆ CB_MEM_ACPI

#define CB_MEM_ACPI   3

Definition at line 113 of file Coreboot.h.

◆ CB_MEM_NVS

#define CB_MEM_NVS   4

Definition at line 114 of file Coreboot.h.

◆ CB_MEM_RAM

#define CB_MEM_RAM   1

Definition at line 111 of file Coreboot.h.

◆ CB_MEM_RESERVED

#define CB_MEM_RESERVED   2

Definition at line 112 of file Coreboot.h.

◆ CB_MEM_TABLE

#define CB_MEM_TABLE   16

Definition at line 117 of file Coreboot.h.

◆ CB_MEM_UNUSABLE

#define CB_MEM_UNUSABLE   5

Definition at line 115 of file Coreboot.h.

◆ CB_MEM_VENDOR_RSVD

#define CB_MEM_VENDOR_RSVD   6

Definition at line 116 of file Coreboot.h.

◆ CB_SERIAL_TYPE_IO_MAPPED

#define CB_SERIAL_TYPE_IO_MAPPED   1

Definition at line 157 of file Coreboot.h.

◆ CB_SERIAL_TYPE_MEMORY_MAPPED

#define CB_SERIAL_TYPE_MEMORY_MAPPED   2

Definition at line 158 of file Coreboot.h.

◆ CB_TAG_ASSEMBLER

#define CB_TAG_ASSEMBLER   0x000d

Definition at line 144 of file Coreboot.h.

◆ CB_TAG_BUILD

#define CB_TAG_BUILD   0x0006

Definition at line 137 of file Coreboot.h.

◆ CB_TAG_CBMEM_CONSOLE

#define CB_TAG_CBMEM_CONSOLE   0x0017

Definition at line 238 of file Coreboot.h.

◆ CB_TAG_COMPILE_BY

#define CB_TAG_COMPILE_BY   0x0008

Definition at line 139 of file Coreboot.h.

◆ CB_TAG_COMPILE_DOMAIN

#define CB_TAG_COMPILE_DOMAIN   0x000a

Definition at line 141 of file Coreboot.h.

◆ CB_TAG_COMPILE_HOST

#define CB_TAG_COMPILE_HOST   0x0009

Definition at line 140 of file Coreboot.h.

◆ CB_TAG_COMPILE_TIME

#define CB_TAG_COMPILE_TIME   0x0007

Definition at line 138 of file Coreboot.h.

◆ CB_TAG_COMPILER

#define CB_TAG_COMPILER   0x000b

Definition at line 142 of file Coreboot.h.

◆ CB_TAG_CONSOLE

#define CB_TAG_CONSOLE   0x00010

Definition at line 179 of file Coreboot.h.

◆ CB_TAG_CONSOLE_BTEXT

#define CB_TAG_CONSOLE_BTEXT   2

Definition at line 189 of file Coreboot.h.

◆ CB_TAG_CONSOLE_EHCI

#define CB_TAG_CONSOLE_EHCI   5

Definition at line 192 of file Coreboot.h.

◆ CB_TAG_CONSOLE_LOGBUF

#define CB_TAG_CONSOLE_LOGBUF   3

Definition at line 190 of file Coreboot.h.

◆ CB_TAG_CONSOLE_SERIAL8250

#define CB_TAG_CONSOLE_SERIAL8250   0

Definition at line 187 of file Coreboot.h.

◆ CB_TAG_CONSOLE_SROM

#define CB_TAG_CONSOLE_SROM   4

Definition at line 191 of file Coreboot.h.

◆ CB_TAG_CONSOLE_VGA

#define CB_TAG_CONSOLE_VGA   1

Definition at line 188 of file Coreboot.h.

◆ CB_TAG_EXTRA_VERSION

#define CB_TAG_EXTRA_VERSION   0x0005

Definition at line 136 of file Coreboot.h.

◆ CB_TAG_FORWARD

#define CB_TAG_FORWARD   0x00011

Definition at line 194 of file Coreboot.h.

◆ CB_TAG_FRAMEBUFFER

#define CB_TAG_FRAMEBUFFER   0x0012

Definition at line 209 of file Coreboot.h.

◆ CB_TAG_LINKER

#define CB_TAG_LINKER   0x000c

Definition at line 143 of file Coreboot.h.

◆ CB_TAG_MAINBOARD

#define CB_TAG_MAINBOARD   0x0003

Definition at line 125 of file Coreboot.h.

◆ CB_TAG_MEMORY

#define CB_TAG_MEMORY   0x0001

Definition at line 103 of file Coreboot.h.

◆ CB_TAG_MRC_CACHE

#define CB_TAG_MRC_CACHE   0x0018

Definition at line 245 of file Coreboot.h.

◆ CB_TAG_SERIAL

#define CB_TAG_SERIAL   0x000f

Definition at line 152 of file Coreboot.h.

◆ CB_TAG_TIMESTAMPS

#define CB_TAG_TIMESTAMPS   0x0016

Definition at line 237 of file Coreboot.h.

◆ CB_TAG_UNUSED

#define CB_TAG_UNUSED   0x0000

Definition at line 102 of file Coreboot.h.

◆ CB_TAG_VDAT

#define CB_TAG_VDAT   0x0015

Definition at line 229 of file Coreboot.h.

◆ CB_TAG_VERSION

#define CB_TAG_VERSION   0x0004

Definition at line 135 of file Coreboot.h.

◆ CBMEM_ENTRY_MAGIC

#define CBMEM_ENTRY_MAGIC   (~0xC0389479)

Definition at line 48 of file Coreboot.h.

◆ DYN_CBMEM_ALIGN_SIZE

#define DYN_CBMEM_ALIGN_SIZE   (4096)

Definition at line 45 of file Coreboot.h.

◆ IMD_ENTRY_MAGIC

#define IMD_ENTRY_MAGIC   (~0xC0389481)

Definition at line 47 of file Coreboot.h.

◆ MEM_RANGE_COUNT

#define MEM_RANGE_COUNT (   _rec)     (((_rec)->size - sizeof(*(_rec))) / sizeof((_rec)->map[0]))

Definition at line 254 of file Coreboot.h.

◆ MEM_RANGE_PTR

#define MEM_RANGE_PTR (   _rec,
  _idx 
)
Value:
(void *)(((UINT8 *) (_rec)) + sizeof(*(_rec)) \
+ (sizeof((_rec)->map[0]) * (_idx)))

Definition at line 257 of file Coreboot.h.

Typedef Documentation

◆ CB_MEMORY

typedef struct cb_memory CB_MEMORY

Definition at line 261 of file Coreboot.h.

Variable Documentation

◆ body

UINT8 body[0]

Definition at line 2 of file Coreboot.h.

◆ cursor

UINT32 cursor

Definition at line 1 of file Coreboot.h.

◆ size

UINT32 size

Definition at line 0 of file Coreboot.h.