coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rules.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ENV_TEST   0
 
#define ENV_TIMELESS   0
 
#define ENV_DECOMPRESSOR   0
 
#define ENV_BOOTBLOCK   0
 
#define ENV_ROMSTAGE   0
 
#define ENV_RAMSTAGE   0
 
#define ENV_SMM   0
 
#define ENV_SEPARATE_VERSTAGE   0
 
#define ENV_RMODULE   0
 
#define ENV_POSTCAR   0
 
#define ENV_LIBAGESA   0
 
#define ENV_STRING   "UNKNOWN"
 
#define ENV_ARM   0
 
#define ENV_ARM64   0
 
#define ENV_ARMV4   0
 
#define ENV_ARMV7   0
 
#define ENV_ARMV8   0
 
#define ENV_RISCV   0
 
#define ENV_X86   0
 
#define ENV_X86_32   0
 
#define ENV_X86_64   0
 
#define ENV_PAYLOAD_LOADER   ENV_RAMSTAGE
 
#define ENV_ROMSTAGE_OR_BEFORE
 
#define ENV_STAGE_HAS_DATA_SECTION   1
 
#define ENV_CACHE_AS_RAM   0
 
#define ENV_STAGE_HAS_HEAP_SECTION   (ENV_RMODULE || ENV_RAMSTAGE || ENV_SMM)
 
#define ENV_USER_SPACE   0
 
#define ENV_INITIAL_STAGE   ENV_BOOTBLOCK
 
#define STAGE_HAS_SPINLOCKS   0
 
#define ENV_STAGE_SUPPORTS_SMP   (CONFIG(SMP) && STAGE_HAS_SPINLOCKS)
 
#define ENV_STAGE_SUPPORTS_COOP   0
 
#define __SIMPLE_DEVICE__
 For pre-DRAM stages and post-CAR always build with simple device model, ie. More...
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

For pre-DRAM stages and post-CAR always build with simple device model, ie.

PCI, PNP and CPU functions operate without use of devicetree. The reason post-CAR utilizes SIMPLE_DEVICE is for simplicity. Currently there's no known requirement that devicetree would be needed during that stage.

For ramstage individual source file may define SIMPLE_DEVICE before including any header files to force that particular source be built with simple device model.

Definition at line 325 of file rules.h.

◆ ENV_ARM

#define ENV_ARM   0

Definition at line 242 of file rules.h.

◆ ENV_ARM64

#define ENV_ARM64   0

Definition at line 243 of file rules.h.

◆ ENV_ARMV4

#define ENV_ARMV4   0

Definition at line 244 of file rules.h.

◆ ENV_ARMV7

#define ENV_ARMV7   0

Definition at line 245 of file rules.h.

◆ ENV_ARMV8

#define ENV_ARMV8   0

Definition at line 246 of file rules.h.

◆ ENV_BOOTBLOCK

#define ENV_BOOTBLOCK   0

Definition at line 148 of file rules.h.

◆ ENV_CACHE_AS_RAM

#define ENV_CACHE_AS_RAM   0

Definition at line 275 of file rules.h.

◆ ENV_DECOMPRESSOR

#define ENV_DECOMPRESSOR   0

Definition at line 147 of file rules.h.

◆ ENV_INITIAL_STAGE

#define ENV_INITIAL_STAGE   ENV_BOOTBLOCK

Definition at line 292 of file rules.h.

◆ ENV_LIBAGESA

#define ENV_LIBAGESA   0

Definition at line 155 of file rules.h.

◆ ENV_PAYLOAD_LOADER

#define ENV_PAYLOAD_LOADER   ENV_RAMSTAGE

Definition at line 260 of file rules.h.

◆ ENV_POSTCAR

#define ENV_POSTCAR   0

Definition at line 154 of file rules.h.

◆ ENV_RAMSTAGE

#define ENV_RAMSTAGE   0

Definition at line 150 of file rules.h.

◆ ENV_RISCV

#define ENV_RISCV   0

Definition at line 247 of file rules.h.

◆ ENV_RMODULE

#define ENV_RMODULE   0

Definition at line 153 of file rules.h.

◆ ENV_ROMSTAGE

#define ENV_ROMSTAGE   0

Definition at line 149 of file rules.h.

◆ ENV_ROMSTAGE_OR_BEFORE

#define ENV_ROMSTAGE_OR_BEFORE
Value:
(ENV_SEPARATE_VERSTAGE && !CONFIG(VBOOT_STARTS_IN_ROMSTAGE)))
@ CONFIG
Definition: dsi_common.h:201
#define ENV_BOOTBLOCK
Definition: rules.h:148
#define ENV_ROMSTAGE
Definition: rules.h:149
#define ENV_DECOMPRESSOR
Definition: rules.h:147
#define ENV_SEPARATE_VERSTAGE
Definition: rules.h:152

Definition at line 263 of file rules.h.

◆ ENV_SEPARATE_VERSTAGE

#define ENV_SEPARATE_VERSTAGE   0

Definition at line 152 of file rules.h.

◆ ENV_SMM

#define ENV_SMM   0

Definition at line 151 of file rules.h.

◆ ENV_STAGE_HAS_DATA_SECTION

#define ENV_STAGE_HAS_DATA_SECTION   1

Definition at line 274 of file rules.h.

◆ ENV_STAGE_HAS_HEAP_SECTION

#define ENV_STAGE_HAS_HEAP_SECTION   (ENV_RMODULE || ENV_RAMSTAGE || ENV_SMM)

Definition at line 279 of file rules.h.

◆ ENV_STAGE_SUPPORTS_COOP

#define ENV_STAGE_SUPPORTS_COOP   0

Definition at line 310 of file rules.h.

◆ ENV_STAGE_SUPPORTS_SMP

#define ENV_STAGE_SUPPORTS_SMP   (CONFIG(SMP) && STAGE_HAS_SPINLOCKS)

Definition at line 304 of file rules.h.

◆ ENV_STRING

#define ENV_STRING   "UNKNOWN"

Definition at line 156 of file rules.h.

◆ ENV_TEST

#define ENV_TEST   0

Definition at line 9 of file rules.h.

◆ ENV_TIMELESS

#define ENV_TIMELESS   0

Definition at line 15 of file rules.h.

◆ ENV_USER_SPACE

#define ENV_USER_SPACE   0

Definition at line 285 of file rules.h.

◆ ENV_X86

#define ENV_X86   0

Definition at line 248 of file rules.h.

◆ ENV_X86_32

#define ENV_X86_32   0

Definition at line 249 of file rules.h.

◆ ENV_X86_64

#define ENV_X86_64   0

Definition at line 250 of file rules.h.

◆ STAGE_HAS_SPINLOCKS

#define STAGE_HAS_SPINLOCKS   0

Definition at line 300 of file rules.h.