blob: 47313401cbbd30c7cc4597000d4959dafd2dbe25 [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
Julius Werner62fa9f32021-04-12 17:23:55 -07006#include <types.h>
Pratik Prajapatib90b94d2015-09-11 13:51:38 -07007
Pratik Prajapatiffc934d2016-11-18 14:36:34 -08008struct mma_config_param {
Julius Werner62fa9f32021-04-12 17:23:55 -07009 void *test_content;
10 size_t test_content_size;
11 void *test_param;
12 size_t test_param_size;
Pratik Prajapatiffc934d2016-11-18 14:36:34 -080013};
14
Julius Werner62fa9f32021-04-12 17:23:55 -070015/* Locate mma metadata in CBFS, parse, find and map mma test content and test param.
Pratik Prajapatiffc934d2016-11-18 14:36:34 -080016 * Returns 0 on success, < 0 on failure.
17 */
Julius Werner62fa9f32021-04-12 17:23:55 -070018int mma_map_param(struct mma_config_param *mma_cfg);
Pratik Prajapatiffc934d2016-11-18 14:36:34 -080019/* Locate the MMA hob from the FSP Hob list, This is implemented
20 * specific to FSP version.
21 * Returns 0 on success, < 0 on failure.
22 */
23int fsp_locate_mma_results(const void **mma_hob, size_t *mma_hob_size);
Pratik Prajapatib90b94d2015-09-11 13:51:38 -070024
25#endif