blob: ac271a06bc68cc066f0a5a1e3862f86715cea714 [file] [log] [blame]
Angel Ponsebda03e2020-04-02 23:48:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Marc Jonesa8bda432015-06-04 23:36:01 -06002
3#ifndef _CBMEM_ID_H_
4#define _CBMEM_ID_H_
5
6#define CBMEM_ID_ACPI 0x41435049
7#define CBMEM_ID_ACPI_GNVS 0x474e5653
Duncan Lauriec1c60602019-04-18 16:30:33 -07008#define CBMEM_ID_ACPI_UCSI 0x55435349
Aaron Durbin7f8afe02016-03-18 12:21:23 -05009#define CBMEM_ID_AFTER_CAR 0xc4787a93
Marc Jonesa8bda432015-06-04 23:36:01 -060010#define CBMEM_ID_AGESA_RUNTIME 0x41474553
11#define CBMEM_ID_AMDMCT_MEMINFO 0x494D454E
12#define CBMEM_ID_CAR_GLOBALS 0xcac4e6a3
13#define CBMEM_ID_CBTABLE 0x43425442
Aaron Durbinf46a9a02017-10-17 14:33:05 -060014#define CBMEM_ID_CBTABLE_FWD 0x43425443
Furquan Shaikh00a8ed82020-06-09 20:27:12 -070015#define CBMEM_ID_CB_EARLY_DRAM 0x4544524D
Marc Jonesa8bda432015-06-04 23:36:01 -060016#define CBMEM_ID_CONSOLE 0x434f4e53
17#define CBMEM_ID_COVERAGE 0x47434f56
18#define CBMEM_ID_EHCI_DEBUG 0xe4c1deb9
19#define CBMEM_ID_ELOG 0x454c4f47
20#define CBMEM_ID_FREESPACE 0x46524545
21#define CBMEM_ID_FSP_RESERVED_MEMORY 0x46535052
22#define CBMEM_ID_FSP_RUNTIME 0x52505346
23#define CBMEM_ID_GDT 0x4c474454
24#define CBMEM_ID_HOB_POINTER 0x484f4221
25#define CBMEM_ID_IGD_OPREGION 0x4f444749
26#define CBMEM_ID_IMD_ROOT 0xff4017ff
27#define CBMEM_ID_IMD_SMALL 0x53a11439
28#define CBMEM_ID_MEMINFO 0x494D454D
Pratik Prajapatib90b94d2015-09-11 13:51:38 -070029#define CBMEM_ID_MMA_DATA 0x4D4D4144
Bora Guvendikb7fe7a12018-03-08 16:32:43 -080030#define CBMEM_ID_MMC_STATUS 0x4d4d4353
Marc Jonesa8bda432015-06-04 23:36:01 -060031#define CBMEM_ID_MPTABLE 0x534d5054
32#define CBMEM_ID_MRCDATA 0x4d524344
Andrey Petrovef9a9ea2016-11-08 08:30:06 -080033#define CBMEM_ID_VAR_MRCDATA 0x4d524345
Furquan Shaikh69139e02015-06-10 20:43:24 -070034#define CBMEM_ID_MTC 0xcb31d31c
Marc Jonesa8bda432015-06-04 23:36:01 -060035#define CBMEM_ID_NONE 0x00000000
36#define CBMEM_ID_PIRQ 0x49525154
37#define CBMEM_ID_POWER_STATE 0x50535454
38#define CBMEM_ID_RAM_OOPS 0x05430095
39#define CBMEM_ID_RAMSTAGE 0x9a357a9e
40#define CBMEM_ID_RAMSTAGE_CACHE 0x9a3ca54e
41#define CBMEM_ID_REFCODE 0x04efc0de
42#define CBMEM_ID_REFCODE_CACHE 0x4efc0de5
43#define CBMEM_ID_RESUME 0x5245534d
44#define CBMEM_ID_RESUME_SCRATCH 0x52455343
45#define CBMEM_ID_ROMSTAGE_INFO 0x47545352
46#define CBMEM_ID_ROMSTAGE_RAM_STACK 0x90357ac4
47#define CBMEM_ID_ROOT 0xff4007ff
48#define CBMEM_ID_SMBIOS 0x534d4254
49#define CBMEM_ID_SMM_SAVE_SPACE 0x07e9acee
Marc Jonesa8bda432015-06-04 23:36:01 -060050#define CBMEM_ID_STAGEx_META 0x57a9e000
51#define CBMEM_ID_STAGEx_CACHE 0x57a9e100
Marshall Dawson8d6e0e02018-01-30 15:33:23 -070052#define CBMEM_ID_STAGEx_RAW 0x57a9e200
Lee Leahy13c6dbf2017-04-14 15:33:26 -070053#define CBMEM_ID_STORAGE_DATA 0x53746f72
Paul Menzel67572672015-07-08 22:36:22 +020054#define CBMEM_ID_TCPA_LOG 0x54435041
Philipp Deppenwiese791ba972018-07-30 01:15:20 +020055#define CBMEM_ID_TCPA_TCG_LOG 0x54445041
Marc Jonesa8bda432015-06-04 23:36:01 -060056#define CBMEM_ID_TIMESTAMP 0x54494d45
Michał Żygowski6e8692e2018-11-22 16:57:50 +010057#define CBMEM_ID_TPM2_TCG_LOG 0x54504d32
Joel Kitching452aaae2019-06-16 17:29:52 +080058#define CBMEM_ID_VBOOT_HANDOFF 0x780074f0 /* deprecated */
Joel Kitching0bcee882019-02-11 15:37:49 +080059#define CBMEM_ID_VBOOT_SEL_REG 0x780074f1 /* deprecated */
Marc Jonesa8bda432015-06-04 23:36:01 -060060#define CBMEM_ID_VBOOT_WORKBUF 0x78007343
Hung-Te Linb15a0d02015-07-13 15:49:57 +080061#define CBMEM_ID_VPD 0x56504420
Marc Jonesa8bda432015-06-04 23:36:01 -060062#define CBMEM_ID_WIFI_CALIBRATION 0x57494649
Joel Kitching81726662020-02-08 12:23:23 +080063#define CBMEM_ID_EC_HOSTEVENT 0x63ccbbc3 /* deprecated */
Abhay Kumarb1feb512016-11-23 10:56:48 -080064#define CBMEM_ID_EXT_VBT 0x69866684
Patrick Rudolph00c0cd22017-06-06 19:30:55 +020065#define CBMEM_ID_ROM0 0x524f4d30
66#define CBMEM_ID_ROM1 0x524f4d31
67#define CBMEM_ID_ROM2 0x524f4d32
68#define CBMEM_ID_ROM3 0x524f4d33
Patrick Rudolph6d787c22019-09-12 13:21:37 +020069#define CBMEM_ID_FMAP 0x464d4150
Frans Hendriks50b999f2019-11-08 13:55:45 +010070#define CBMEM_ID_FSP_LOGO 0x4c4f474f
Marc Jonesa8bda432015-06-04 23:36:01 -060071
72#define CBMEM_ID_TO_NAME_TABLE \
73 { CBMEM_ID_ACPI, "ACPI " }, \
74 { CBMEM_ID_ACPI_GNVS, "ACPI GNVS " }, \
Duncan Lauriec1c60602019-04-18 16:30:33 -070075 { CBMEM_ID_ACPI_UCSI, "ACPI UCSI " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -060076 { CBMEM_ID_AGESA_RUNTIME, "AGESA RSVD " }, \
Aaron Durbin28a4e0e2016-07-18 10:49:14 -050077 { CBMEM_ID_AFTER_CAR, "AFTER CAR " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -060078 { CBMEM_ID_AMDMCT_MEMINFO, "AMDMEM INFO" }, \
79 { CBMEM_ID_CAR_GLOBALS, "CAR GLOBALS" }, \
80 { CBMEM_ID_CBTABLE, "COREBOOT " }, \
Aaron Durbinf46a9a02017-10-17 14:33:05 -060081 { CBMEM_ID_CBTABLE_FWD, "COREBOOTFWD" }, \
Furquan Shaikh00a8ed82020-06-09 20:27:12 -070082 { CBMEM_ID_CB_EARLY_DRAM, "EARLY DRAM USAGE" }, \
Marc Jonesa8bda432015-06-04 23:36:01 -060083 { CBMEM_ID_CONSOLE, "CONSOLE " }, \
84 { CBMEM_ID_COVERAGE, "COVERAGE " }, \
85 { CBMEM_ID_EHCI_DEBUG, "USBDEBUG " }, \
86 { CBMEM_ID_ELOG, "ELOG " }, \
87 { CBMEM_ID_FREESPACE, "FREE SPACE " }, \
88 { CBMEM_ID_FSP_RESERVED_MEMORY, "FSP MEMORY " }, \
89 { CBMEM_ID_FSP_RUNTIME, "FSP RUNTIME" }, \
90 { CBMEM_ID_GDT, "GDT " }, \
Ben Gardneracd47ae2015-11-19 10:26:11 -060091 { CBMEM_ID_HOB_POINTER, "HOB " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -060092 { CBMEM_ID_IMD_ROOT, "IMD ROOT " }, \
93 { CBMEM_ID_IMD_SMALL, "IMD SMALL " }, \
94 { CBMEM_ID_MEMINFO, "MEM INFO " }, \
Pratik Prajapatib90b94d2015-09-11 13:51:38 -070095 { CBMEM_ID_MMA_DATA, "MMA DATA " }, \
Bora Guvendikb7fe7a12018-03-08 16:32:43 -080096 { CBMEM_ID_MMC_STATUS, "MMC STATUS " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -060097 { CBMEM_ID_MPTABLE, "SMP TABLE " }, \
98 { CBMEM_ID_MRCDATA, "MRC DATA " }, \
Andrey Petrovef9a9ea2016-11-08 08:30:06 -080099 { CBMEM_ID_VAR_MRCDATA, "VARMRC DATA" }, \
Furquan Shaikh69139e02015-06-10 20:43:24 -0700100 { CBMEM_ID_MTC, "MTC " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -0600101 { CBMEM_ID_PIRQ, "IRQ TABLE " }, \
102 { CBMEM_ID_POWER_STATE, "POWER STATE" }, \
103 { CBMEM_ID_RAM_OOPS, "RAMOOPS " }, \
104 { CBMEM_ID_RAMSTAGE_CACHE, "RAMSTAGE $ " }, \
105 { CBMEM_ID_RAMSTAGE, "RAMSTAGE " }, \
106 { CBMEM_ID_REFCODE_CACHE, "REFCODE $ " }, \
107 { CBMEM_ID_REFCODE, "REFCODE " }, \
108 { CBMEM_ID_RESUME, "ACPI RESUME" }, \
109 { CBMEM_ID_RESUME_SCRATCH, "ACPISCRATCH" }, \
110 { CBMEM_ID_ROMSTAGE_INFO, "ROMSTAGE " }, \
111 { CBMEM_ID_ROMSTAGE_RAM_STACK, "ROMSTG STCK" }, \
112 { CBMEM_ID_ROOT, "CBMEM ROOT " }, \
113 { CBMEM_ID_SMBIOS, "SMBIOS " }, \
114 { CBMEM_ID_SMM_SAVE_SPACE, "SMM BACKUP " }, \
Lee Leahy13c6dbf2017-04-14 15:33:26 -0700115 { CBMEM_ID_STORAGE_DATA, "SD/MMC/eMMC" }, \
Paul Menzelacf411d2015-07-08 22:35:21 +0200116 { CBMEM_ID_TCPA_LOG, "TCPA LOG " }, \
Philipp Deppenwiese791ba972018-07-30 01:15:20 +0200117 { CBMEM_ID_TCPA_TCG_LOG, "TCPA TCGLOG" }, \
Marc Jonesa8bda432015-06-04 23:36:01 -0600118 { CBMEM_ID_TIMESTAMP, "TIME STAMP " }, \
Michał Żygowski6e8692e2018-11-22 16:57:50 +0100119 { CBMEM_ID_TPM2_TCG_LOG, "TPM2 TCGLOG" }, \
Marc Jonesa8bda432015-06-04 23:36:01 -0600120 { CBMEM_ID_VBOOT_HANDOFF, "VBOOT " }, \
Aaron Durbinb5933662015-10-07 16:03:41 -0500121 { CBMEM_ID_VBOOT_SEL_REG, "VBOOT SEL " }, \
Marc Jonesa8bda432015-06-04 23:36:01 -0600122 { CBMEM_ID_VBOOT_WORKBUF, "VBOOT WORK " }, \
Hung-Te Linb15a0d02015-07-13 15:49:57 +0800123 { CBMEM_ID_VPD, "VPD " }, \
Furquan Shaikhb36cb0792016-11-11 13:54:36 -0800124 { CBMEM_ID_WIFI_CALIBRATION, "WIFI CLBR " }, \
Abhay Kumarb1feb512016-11-23 10:56:48 -0800125 { CBMEM_ID_EC_HOSTEVENT, "EC HOSTEVENT"}, \
Patrick Rudolph00c0cd22017-06-06 19:30:55 +0200126 { CBMEM_ID_EXT_VBT, "EXT VBT"}, \
127 { CBMEM_ID_ROM0, "VGA ROM #0 "}, \
128 { CBMEM_ID_ROM1, "VGA ROM #1 "}, \
129 { CBMEM_ID_ROM2, "VGA ROM #2 "}, \
Patrick Rudolph6d787c22019-09-12 13:21:37 +0200130 { CBMEM_ID_ROM3, "VGA ROM #3 "}, \
131 { CBMEM_ID_FMAP, "FMAP "},
Marc Jonesa8bda432015-06-04 23:36:01 -0600132#endif /* _CBMEM_ID_H_ */