coreboot: add region infrastructure

Hardware / Coreboot - Aaron Durbin [chromium.org] - 14 May 2015 10:26 UTC

The region infrastructure provides a means of abstracting access to different types of storage such as SPI flash, MMC, or just plain memory. The regions are represented by region devices which can be chained together forming subregions of the larger region. This allows the call sites to be agnostic about the implementations behind the regions. Additionally, this prepares for a cleaner API for CBFS accesses.

Change-Id: I803f97567ef0505691a69975c282fde1215ea6da

5d5f4b3 coreboot: add region infrastructure
src/include/region.h | 100 +++++++++++++++++++++++++++++++++++++++++
src/lib/Makefile.inc | 4 ++
src/lib/region.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 225 insertions(+)

Upstream: review.coreboot.org


  • Share