Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Pratik Prajapati | b90b94d | 2015-09-11 13:51:38 -0700 | [diff] [blame] | 2 | |
| 3 | #ifndef _SOC_MMA_H_ |
| 4 | #define _SOC_MMA_H_ |
| 5 | |
Julius Werner | 62fa9f3 | 2021-04-12 17:23:55 -0700 | [diff] [blame] | 6 | #include <types.h> |
Pratik Prajapati | b90b94d | 2015-09-11 13:51:38 -0700 | [diff] [blame] | 7 | |
Pratik Prajapati | ffc934d | 2016-11-18 14:36:34 -0800 | [diff] [blame] | 8 | struct mma_config_param { |
Julius Werner | 62fa9f3 | 2021-04-12 17:23:55 -0700 | [diff] [blame] | 9 | void *test_content; |
| 10 | size_t test_content_size; |
| 11 | void *test_param; |
| 12 | size_t test_param_size; |
Pratik Prajapati | ffc934d | 2016-11-18 14:36:34 -0800 | [diff] [blame] | 13 | }; |
| 14 | |
Julius Werner | 62fa9f3 | 2021-04-12 17:23:55 -0700 | [diff] [blame] | 15 | /* Locate mma metadata in CBFS, parse, find and map mma test content and test param. |
Pratik Prajapati | ffc934d | 2016-11-18 14:36:34 -0800 | [diff] [blame] | 16 | * Returns 0 on success, < 0 on failure. |
| 17 | */ |
Julius Werner | 62fa9f3 | 2021-04-12 17:23:55 -0700 | [diff] [blame] | 18 | int mma_map_param(struct mma_config_param *mma_cfg); |
Pratik Prajapati | ffc934d | 2016-11-18 14:36:34 -0800 | [diff] [blame] | 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); |
Pratik Prajapati | b90b94d | 2015-09-11 13:51:38 -0700 | [diff] [blame] | 24 | |
| 25 | #endif |