summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/mma.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-04-12 17:23:55 -0700
committerJulius Werner <jwerner@chromium.org>2021-04-14 01:03:33 +0000
commit62fa9f3cf940f447e5b103aa31d95ea7dc257bb9 (patch)
tree145dd5e8a79cf2bfe582e171b5eda0cd5e23565a /src/soc/intel/common/mma.h
parent43c9d709c75813276f166da8b6bc7bc220e5288d (diff)
downloadcoreboot-62fa9f3cf940f447e5b103aa31d95ea7dc257bb9.tar.gz
coreboot-62fa9f3cf940f447e5b103aa31d95ea7dc257bb9.tar.bz2
coreboot-62fa9f3cf940f447e5b103aa31d95ea7dc257bb9.zip
intel: mma: Use new CBFS API
This patch changes the Intel MMA driver to use the new CBFS API. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: Icc11d0c2a9ec1bd7a1d6af362f849dac16375433 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52282 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/common/mma.h')
-rw-r--r--src/soc/intel/common/mma.h13
1 files changed, 7 insertions, 6 deletions
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 <commonlib/region.h>
+#include <types.h>
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.