coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fsp_timestamp.c File Reference
#include <commonlib/bsd/compiler.h>
#include <console/console.h>
#include <fsp/util.h>
#include <lib.h>
Include dependency graph for fsp_timestamp.c:

Go to the source code of this file.

Data Structures

struct  perf_record_hdr
 
struct  generic_event_record
 
struct  fpdt_pei_ext_perf_header
 

Macros

#define TIMESTAMP_MS(x)   ((x) / 1000ull)
 

Enumerations

enum  fpdt_record_type { FPDT_GUID_EVENT = 0x1010 , FPDT_STRING_EVENT = 0x1011 }
 

Functions

static void print_guid_record (const struct generic_event_record *rec)
 
static void print_string_record (const struct generic_event_record *rec)
 
static void print_fsp_perf_timestamp (const struct generic_event_record *rec)
 
static void print_fsp_timestamp_header (void)
 
void fsp_display_timestamp (void)
 

Variables

static const uint8_t fpdt_guid [16]
 
struct perf_record_hdr __packed
 

Macro Definition Documentation

◆ TIMESTAMP_MS

#define TIMESTAMP_MS (   x)    ((x) / 1000ull)

Definition at line 8 of file fsp_timestamp.c.

Enumeration Type Documentation

◆ fpdt_record_type

Enumerator
FPDT_GUID_EVENT 
FPDT_STRING_EVENT 

Definition at line 15 of file fsp_timestamp.c.

Function Documentation

◆ fsp_display_timestamp()

void fsp_display_timestamp ( void  )

Definition at line 86 of file fsp_timestamp.c.

References BIOS_INFO, fpdt_guid, fsp_find_extension_hob_by_guid(), generic_event_record::header, perf_record_hdr::length, print_fsp_perf_timestamp(), print_fsp_timestamp_header(), printk, and fpdt_pei_ext_perf_header::table_size.

Referenced by fsp_silicon_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_fsp_perf_timestamp()

static void print_fsp_perf_timestamp ( const struct generic_event_record rec)
static

Definition at line 62 of file fsp_timestamp.c.

References BIOS_INFO, FPDT_GUID_EVENT, FPDT_STRING_EVENT, generic_event_record::header, print_guid_record(), print_string_record(), printk, and perf_record_hdr::type.

Referenced by fsp_display_timestamp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_fsp_timestamp_header()

static void print_fsp_timestamp_header ( void  )
static

Definition at line 77 of file fsp_timestamp.c.

References BIOS_INFO, and printk.

Referenced by fsp_display_timestamp().

Here is the caller graph for this function:

◆ print_guid_record()

static void print_guid_record ( const struct generic_event_record rec)
static

Definition at line 46 of file fsp_timestamp.c.

References BIOS_INFO, fsp_print_guid(), generic_event_record::guid, printk, generic_event_record::progress_id, generic_event_record::timestamp, and TIMESTAMP_MS.

Referenced by print_fsp_perf_timestamp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_string_record()

static void print_string_record ( const struct generic_event_record rec)
static

Variable Documentation

◆ __packed

◆ fpdt_guid

const uint8_t fpdt_guid[16]
static
Initial value:
= {
0xfd, 0x7b, 0x38, 0x3b, 0xbc, 0x7a, 0xf2, 0x4c,
0xa0, 0xca, 0xb6, 0xa1, 0x6c, 0x1b, 0x1b, 0x25,
}

Definition at line 10 of file fsp_timestamp.c.

Referenced by fsp_display_timestamp().