coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootstate.h>
#include <cbfs.h>
#include <cbmem.h>
#include <console/console.h>
#include <soc/intel/common/mma.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | mma_data_container |
Macros | |
#define | MMA_TEST_METADATA_FILENAME "mma_test_metadata.bin" |
#define | MMA_TEST_NAME_TAG "MMA_TEST_NAME" |
#define | MMA_TEST_PARAM_TAG "MMA_TEST_PARAM" |
#define | TEST_NAME_MAX_SIZE 30 |
#define | TEST_PARAM_MAX_SIZE 100 |
#define | MMA_DATA_SIGNATURE |
Functions | |
static int | find_label (const char *haystack, size_t haystack_sz, const char *label) |
static int | label_value (const char *haystack, size_t haystack_sz, const char *label, char *dest, size_t dest_sz) |
int | mma_map_param (struct mma_config_param *mma_cfg) |
static void | save_mma_results_data (void *unused) |
BOOT_STATE_INIT_ENTRY (BS_WRITE_TABLES, BS_ON_ENTRY, save_mma_results_data, NULL) | |
Variables | |
struct mma_data_container | __packed |
#define MMA_DATA_SIGNATURE |
BOOT_STATE_INIT_ENTRY | ( | BS_WRITE_TABLES | , |
BS_ON_ENTRY | , | ||
save_mma_results_data | , | ||
NULL | |||
) |
|
static |
Definition at line 31 of file mma.c.
References strlen(), and strncmp().
Referenced by label_value().
|
static |
Definition at line 63 of file mma.c.
References find_label(), memcpy(), and memset().
Referenced by mma_map_param().
int mma_map_param | ( | struct mma_config_param * | mma_cfg | ) |
Definition at line 101 of file mma.c.
References BIOS_DEBUG, cbfs_ro_map(), cbfs_unmap(), label_value(), MMA_TEST_METADATA_FILENAME, MMA_TEST_NAME_TAG, MMA_TEST_PARAM_TAG, printk, mma_config_param::test_content, mma_config_param::test_content_size, TEST_NAME_MAX_SIZE, mma_config_param::test_param, TEST_PARAM_MAX_SIZE, and mma_config_param::test_param_size.
Referenced by setup_mma().
Definition at line 161 of file mma.c.
References ALIGN, BIOS_DEBUG, cbmem_add(), CBMEM_ID_MMA_DATA, fsp_locate_mma_results(), memcpy(), memset(), mma_data_container::mma_data, MMA_DATA_SIGNATURE, NULL, and printk.
struct mma_data_container __packed |