coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vpd_serial.c File Reference
#include <smbios.h>
#include "vpd.h"
#include "vpd_tables.h"
Include dependency graph for vpd_serial.c:

Go to the source code of this file.

Macros

#define VPD_KEY_SYSTEM_SERIAL   "serial_number"
 
#define VPD_KEY_MAINBOARD_SERIAL   "mlb_serial_number"
 
#define VPD_SERIAL_LEN   64
 

Functions

const char * smbios_system_serial_number (void)
 
const char * smbios_mainboard_serial_number (void)
 

Macro Definition Documentation

◆ VPD_KEY_MAINBOARD_SERIAL

#define VPD_KEY_MAINBOARD_SERIAL   "mlb_serial_number"

Definition at line 9 of file vpd_serial.c.

◆ VPD_KEY_SYSTEM_SERIAL

#define VPD_KEY_SYSTEM_SERIAL   "serial_number"

Definition at line 8 of file vpd_serial.c.

◆ VPD_SERIAL_LEN

#define VPD_SERIAL_LEN   64

Definition at line 10 of file vpd_serial.c.

Function Documentation

◆ smbios_mainboard_serial_number()

const char* smbios_mainboard_serial_number ( void  )

Definition at line 20 of file vpd_serial.c.

References serial, vpd_gets(), VPD_KEY_MAINBOARD_SERIAL, VPD_RO, and VPD_SERIAL_LEN.

Here is the call graph for this function:

◆ smbios_system_serial_number()

const char* smbios_system_serial_number ( void  )

Definition at line 12 of file vpd_serial.c.

References serial, vpd_gets(), VPD_KEY_SYSTEM_SERIAL, VPD_RO, and VPD_SERIAL_LEN.

Here is the call graph for this function: