| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef _SOC_MMA_H_ |
| 4 | #define _SOC_MMA_H_ |
| 5 | |
| 6 | #include <types.h> |
| 7 | |
| 8 | struct mma_config_param { |
| 9 | void *test_content; |
| 10 | size_t test_content_size; |
| 11 | void *test_param; |
| 12 | size_t test_param_size; |
| 13 | }; |
| 14 | |
| 15 | /* Locate mma metadata in CBFS, parse, find and map mma test content and test param. |
| 16 | * Returns 0 on success, < 0 on failure. |
| 17 | */ |
| 18 | int mma_map_param(struct mma_config_param *mma_cfg); |
| 19 | /* 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 | */ |
| 23 | int fsp_locate_mma_results(const void **mma_hob, size_t *mma_hob_size); |
| 24 | |
| 25 | #endif |