coreboot/src/include
Aaron Durbin 6b37867b3e UPSTREAM: lib: provide clearer devicetree semantics
The devicetree data structures have been available in more than just
ramstage and romstage. In order to provide clearer and consistent
semantics two new macros are provided:

1. DEVTREE_EARLY which is true when !ENV_RAMSTAGE
2. DEVTREE_CONST as a replacment for ROMSTAGE_CONST

The ROMSTAGE_CONST attribute is used in the source code to mark
the devicetree data structures as const in early stages even though
it's not just romstage. Therefore, rename the attribute to
DEVTREE_CONST as that's the actual usage. The only place where the
usage was not devicetree related is console_loglevel, but the same
name was used for consistency. Any stage that is not ramstage has
the const C attribute applied when DEVTREE_CONST is used.

BUG=none
BRANCH=none
TEST=none

Change-Id: If0409e8e9d6a203254a9f9b749de5cab70dfc842
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: e4d7abc0d4
Original-Change-Id: Ibd51c2628dc8f68e0896974f7e4e7c8588d333ed
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19333
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/488047
2017-04-26 13:36:55 -07:00
..
boot lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00
console UPSTREAM: console: Add convenient debug level macros for raminit 2017-04-21 06:03:46 -07:00
cpu UPSTREAM: AGESA: Disable CAR with empty stack 2017-04-07 07:03:33 -07:00
device UPSTREAM: lib: provide clearer devicetree semantics 2017-04-26 13:36:55 -07:00
pc80 UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
smp UPSTREAM: src/include: Add space after comma 2017-03-10 10:54:40 -08:00
superio tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sys commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
tpm_lite UPSTREAM: cr50: add unmarshaling of vendor commands and process 'enable_update' 2017-03-25 13:37:59 -07:00
adainit.h UPSTREAM: Add option to use Ada code in ramstage 2016-11-07 11:02:52 -08:00
antirollback.h UPSTREAM: src/vboot: mark factory_initialze_tpm() as static 2016-11-14 19:58:42 -08:00
assert.h UPSTREAM: src/include: Move trailing statements to next line 2017-03-10 10:54:39 -08:00
b64_decode.h lib: add base64 decoder 2015-04-22 08:50:54 +02:00
base3.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bcd.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boardid.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boot_device.h UPSTREAM: lib/boot_device: add RW boot device construct 2016-08-19 14:20:23 -07:00
bootblock_common.h UPSTREAM: src/include: Move storage class to beginning of declaration 2017-03-14 07:25:25 -07:00
bootmem.h lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.h UPSTREAM: vboot: Add new function for logging recovery mode switches 2016-11-14 19:59:45 -08:00
bootstate.h UPSTREAM: src/include: Remove space after function name 2017-03-14 07:25:25 -07:00
cbfs.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
cbmem.h UPSTREAM: src/include: Move storage class to beginning of declaration 2017-03-14 07:25:25 -07:00
delay.h UPSTREAM: src/include: Fix unsigned warnings 2017-03-10 10:54:39 -08:00
edid.h UPSTREAM: edid: Fix a function signature 2016-09-09 12:33:33 -07:00
elog.h elog: Add all EC event codes 2017-03-09 16:12:27 -08:00
endian.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
fallback.h UPSTREAM: pc80: Move set_boot_successful() 2016-12-16 01:49:05 -08:00
fmap.h UPSTREAM: lib/fmap: provide RW region device support 2016-08-22 00:11:45 -07:00
gic.h UPSTREAM: src/include: Capitalize CPU, RAM and ROM 2016-08-04 23:37:08 -07:00
gpio.h UPSTREAM: lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 19:29:24 -07:00
halt.h UPSTREAM: lib: add poweroff() declaration 2016-07-15 16:50:22 -07:00
imd.h cbmem: add coreboot table records for each cbmem entry 2015-11-03 00:19:46 +01:00
inttypes.h x86: provide more C standard environment 2013-03-20 04:20:25 +01:00
ip_checksum.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h UPSTREAM: lib: remove ulzma() 2016-07-07 01:08:55 -07:00
main_decl.h arches: lib: add main_decl.h for main() declaration 2016-02-11 23:29:08 +01:00
memlayout.h UPSTREAM: vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-29 13:43:08 -07:00
memory_info.h UPSTREAM: src/include: Include stdint.h since struct dimm_info uses it 2017-03-06 07:04:31 -08:00
memrange.h UPSTREAM: src/include: Indent code using tabs 2017-03-10 10:54:40 -08:00
nhlt.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
option.h option: Add arch-agnostic get_option() 2014-03-04 15:23:10 +01:00
program_loading.h UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-10 18:31:17 -08:00
random.h UPSTREAM: arch/x86: add functions to generate random numbers 2017-02-21 06:44:33 -08:00
reg_script.h UPSTREAM: src/include: Remove space after function name 2017-03-14 07:25:25 -07:00
region_file.h UPSTREAM: lib: add region file support 2016-12-09 03:29:43 -08:00
reset.h UPSTREAM: src/include: Improve code formatting 2016-09-07 11:31:21 -07:00
rmodule.h UPSTREAM: src/include: Remove space after function name 2017-03-14 07:25:25 -07:00
romstage_handoff.h UPSTREAM: lib: put romstage_handoff implementation in own compilation unit 2016-12-02 14:23:00 -08:00
rtc.h UPSTREAM: src/include: Open brace on same line as enum or struct 2017-03-13 05:16:02 -07:00
rules.h UPSTREAM: Stage rules.h: Add ENV_LIBAGESA 2017-03-07 04:17:28 -08:00
sar.h UPSTREAM: chromeos: Implement locating and decoding wifi sar data from VPD 2017-01-13 15:21:50 -08:00
sdram_mode.h UPSTREAM: src/include: Remove spaces before tabs 2017-03-13 05:16:02 -07:00
smbios.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
spd.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
spd_bin.h UPSTREAM: ddr3 spd: move accessor code into lib/spd_bin.c 2017-02-13 10:01:11 -08:00
spd_ddr2.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
spi-generic.h UPSTREAM: drivers/spi: Get rid of spi_get_config 2017-04-10 14:28:40 -07:00
spi_flash.h UPSTREAM: drivers/spi: provide a mechanism to obtain the SPI flash boot device 2016-12-09 03:29:45 -08:00
stage_cache.h UPSTREAM: arch/x86: cache postcar in stage cache 2016-12-02 14:23:02 -08:00
stddef.h UPSTREAM: lib: provide clearer devicetree semantics 2017-04-26 13:36:55 -07:00
stdlib.h UPSTREAM: src/include: Add space after comma 2017-03-10 10:54:40 -08:00
string.h UPSTREAM: src/include: Move assignment out of if condition 2017-03-14 07:25:26 -07:00
swab.h UPSTREAM: src/include: Remove unnecessary typecast 2017-03-14 07:25:26 -07:00
symbols.h UPSTREAM: src/include: Remove spaces before ( and after ) 2017-03-13 05:16:01 -07:00
thread.h UPSTREAM: src/include: Move storage class to beginning of declaration 2017-03-14 07:25:25 -07:00
timer.h UPSTREAM: src/include: Indent code using tabs 2017-03-10 10:54:40 -08:00
timestamp.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
tpm.h UPSTREAM: drivers/spi/tpm: Clean up SPI TPM driver 2017-04-18 13:18:51 -07:00
trace.h UPSTREAM: src/include: Remove spaces before ( and after ) 2017-03-13 05:16:01 -07:00
types.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vbe.h UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
version.h build.h: remove variable for the builduser, -hostname and -domain 2015-03-09 17:53:16 +01:00
watchdog.h UPSTREAM: src/include: Add parenthesis around macros 2017-03-11 17:04:38 -08:00
wrdd.h UPSTREAM: Remove extra newlines from the end of all coreboot files. 2016-08-04 23:36:56 -07:00