coreboot-kgpe-d16/payloads/libpayload/include
Patrick Rudolph bc744f5893 drivers/smmstore: Implement SMMSTORE version 2
SMMSTORE version 2 is a complete redesign of the current driver. It is
not backwards-compatible with version 1, and only one version can be
used at a time.

Key features:
* Uses a fixed communication buffer instead of writing to arbitrary
  memory addresses provided by untrusted ring0 code.
* Gives the caller full control over the used data format.
* Splits the store into smaller chunks to allow fault tolerant updates.
* Doesn't provide feedback about the actual read/written bytes, just
  returns error or success in registers.
* Returns an error if the requested operation would overflow the
  communication buffer.

Separate the SMMSTORE into 64 KiB blocks that can individually be
read/written/erased. To be used by payloads that implement a
FaultTolerant Variable store like TianoCore.

The implementation has been tested against EDK2 master.

An example EDK2 implementation can be found here:
eb1127744a

Change-Id: I25e49d184135710f3e6dd1ad3bed95de950fe057
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Christian Walter <christian.walter@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40520
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2020-10-22 12:29:47 +00:00
..
arm/arch
arm64/arch
arpa
pci libpayload/storage/ahci: Use pacc pointer to read device class 2020-10-20 20:35:47 +00:00
storage libpayload/storage/ahci: Use pci_dev struct in ahci_initialize() 2020-10-20 20:39:30 +00:00
sys
udc
usb
x86/arch libpayload/x86: Add some more CPUID helpers 2020-10-16 22:07:27 +00:00
archive.h
assert.h
cbfs.h
cbfs_core.h
cbfs_ram.h
cbgfx.h libpayload: cbgfx: Support buffered I/O 2020-08-28 21:40:58 +00:00
compiler.h libpayload: Replace include/compiler.h with commonlib/bsd's version 2020-07-28 16:16:21 +00:00
coreboot_tables.h drivers/smmstore: Implement SMMSTORE version 2 2020-10-22 12:29:47 +00:00
ctype.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
die.h
endian.h
errno.h
exception.h
fmap_serialized.h
fpmath.h libpayload: Add simple 32.32 fixed-point math API 2020-07-09 00:32:11 +00:00
gdb.h
getopt.h
inttypes.h
ipchksum.h
kconfig.h
keycodes.h
libpayload.h lib and libpayload: Add popcnt functions 2020-10-15 19:01:51 +00:00
limits.h
lz4.h
lzma.h
malloc.h
multiboot_tables.h
panel.h
pci.h
queue.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
stdarg.h
stddef.h
stdint.h
stdio.h
stdlib.h
string.h payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
strings.h
sysinfo.h libpayload/arch/x86: Introduce pacc pointer in sysinfo_t struct 2020-10-20 20:35:24 +00:00
term.h
time.h
unistd.h
video_console.h