blob: e58edaf518e9559a798d4b9917a416098c4e56ad [file] [log] [blame]
Angel Pons0612b272020-04-05 15:46:56 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Pratik Prajapatib90b94d2015-09-11 13:51:38 -07002
3#ifndef _SOC_MMA_H_
4#define _SOC_MMA_H_
5
Pratik Prajapatiffc934d2016-11-18 14:36:34 -08006#include <commonlib/region.h>
Pratik Prajapatib90b94d2015-09-11 13:51:38 -07007
Pratik Prajapatiffc934d2016-11-18 14:36:34 -08008struct mma_config_param {
9 struct region_device test_content;
10 struct region_device test_param;
11};
12
13/* Locate mma metadata in CBFS, parse, find and fill rdev for
14 * mma test content and test param.
15 * Returns 0 on success, < 0 on failure.
16 */
17int mma_locate_param(struct mma_config_param *mma_cfg);
18/* Locate the MMA hob from the FSP Hob list, This is implemented
19 * specific to FSP version.
20 * Returns 0 on success, < 0 on failure.
21 */
22int fsp_locate_mma_results(const void **mma_hob, size_t *mma_hob_size);
Pratik Prajapatib90b94d2015-09-11 13:51:38 -070023
24#endif