2020-04-05 15:46:56 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2015-09-11 22:51:38 +02:00
|
|
|
|
|
|
|
#ifndef _SOC_MMA_H_
|
|
|
|
#define _SOC_MMA_H_
|
|
|
|
|
2016-11-18 23:36:34 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <commonlib/region.h>
|
2015-09-11 22:51:38 +02:00
|
|
|
|
2016-11-18 23:36:34 +01:00
|
|
|
struct mma_config_param {
|
|
|
|
struct region_device test_content;
|
|
|
|
struct region_device test_param;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Locate mma metadata in CBFS, parse, find and fill rdev for
|
|
|
|
* mma test content and test param.
|
|
|
|
* Returns 0 on success, < 0 on failure.
|
|
|
|
*/
|
|
|
|
int mma_locate_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.
|
|
|
|
*/
|
|
|
|
int fsp_locate_mma_results(const void **mma_hob, size_t *mma_hob_size);
|
2015-09-11 22:51:38 +02:00
|
|
|
|
|
|
|
#endif
|