From 62fa9f3cf940f447e5b103aa31d95ea7dc257bb9 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 12 Apr 2021 17:23:55 -0700 Subject: intel: mma: Use new CBFS API This patch changes the Intel MMA driver to use the new CBFS API. Signed-off-by: Julius Werner Change-Id: Icc11d0c2a9ec1bd7a1d6af362f849dac16375433 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52282 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/mma.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/soc/intel/common/mma.h') diff --git a/src/soc/intel/common/mma.h b/src/soc/intel/common/mma.h index e58edaf518e9..47313401cbbd 100644 --- a/src/soc/intel/common/mma.h +++ b/src/soc/intel/common/mma.h @@ -3,18 +3,19 @@ #ifndef _SOC_MMA_H_ #define _SOC_MMA_H_ -#include +#include struct mma_config_param { - struct region_device test_content; - struct region_device test_param; + void *test_content; + size_t test_content_size; + void *test_param; + size_t test_param_size; }; -/* Locate mma metadata in CBFS, parse, find and fill rdev for - * mma test content and test param. +/* Locate mma metadata in CBFS, parse, find and map mma test content and test param. * Returns 0 on success, < 0 on failure. */ -int mma_locate_param(struct mma_config_param *mma_cfg); +int mma_map_param(struct mma_config_param *mma_cfg); /* Locate the MMA hob from the FSP Hob list, This is implemented * specific to FSP version. * Returns 0 on success, < 0 on failure. -- cgit v1.2.3