coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ramstage.c File Reference
#include <stdint.h>
#include <console/console.h>
#include <drivers/vpd/vpd.h>
#include <smbios.h>
#include <soc/ramstage.h>
#include <uuid.h>
#include "gpio.h"
Include dependency graph for ramstage.c:

Go to the source code of this file.

Macros

#define VPD_KEY_SERIAL   "serial_number"
 
#define VPD_KEY_UUID   "UUID"
 
#define VPD_SERIAL_LEN   17
 

Functions

void mainboard_silicon_init_params (FSP_SIL_UPD *params)
 
const char * smbios_system_serial_number (void)
 
void smbios_system_set_uuid (u8 *uuid)
 

Macro Definition Documentation

◆ VPD_KEY_SERIAL

#define VPD_KEY_SERIAL   "serial_number"

Definition at line 20 of file ramstage.c.

◆ VPD_KEY_UUID

#define VPD_KEY_UUID   "UUID"

Definition at line 21 of file ramstage.c.

◆ VPD_SERIAL_LEN

#define VPD_SERIAL_LEN   17

Definition at line 22 of file ramstage.c.

Function Documentation

◆ mainboard_silicon_init_params()

void mainboard_silicon_init_params ( FSP_SIL_UPD params)

Definition at line 12 of file ramstage.c.

References ARRAY_SIZE, gpio_configure_pads(), gpio_table, and params.

Here is the call graph for this function:

◆ smbios_system_serial_number()

const char* smbios_system_serial_number ( void  )

Definition at line 24 of file ramstage.c.

References BIOS_ERR, printk, serial, vpd_gets(), VPD_KEY_SERIAL, VPD_RO, and VPD_SERIAL_LEN.

Here is the call graph for this function:

◆ smbios_system_set_uuid()

void smbios_system_set_uuid ( u8 uuid)

Definition at line 35 of file ramstage.c.

References BIOS_ERR, memset(), parse_uuid(), printk, UUID_LEN, UUID_STRLEN, vpd_gets(), VPD_KEY_UUID, and VPD_RO.

Here is the call graph for this function: