coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
logging.c File Reference
#include <console/console.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/msr.h>
#include <device/mmio.h>
#include <stdint.h>
#include <security/intel/txt/txt.h>
#include "cbnt.h"
Include dependency graph for logging.c:

Go to the source code of this file.

Data Structures

union  sacm_info
 
union  cbnt_bootstatus
 
union  cbnt_errorcode
 
union  cbnt_biosacm_errorcode
 

Macros

#define LOG(...)   printk(BIOS_INFO, "CBnT: " __VA_ARGS__)
 

Functions

 _Static_assert (sizeof(union sacm_info)==sizeof(uint64_t), "Wrong size of sacm_info")
 
 _Static_assert (sizeof(union cbnt_bootstatus)==sizeof(uint64_t), "Wrong size of cbnt_bootstatus")
 
 _Static_assert (sizeof(union cbnt_errorcode)==sizeof(uint32_t), "Wrong size of cbnt_errorcode")
 
 _Static_assert (sizeof(union cbnt_biosacm_errorcode)==sizeof(uint32_t), "Wrong size of cbnt_biosacm_errorcode")
 
static const char * decode_err_type (uint8_t type)
 
void intel_cbnt_log_registers (void)
 

Variables

static const char *const tpm_type []
 

Macro Definition Documentation

◆ LOG

#define LOG (   ...)    printk(BIOS_INFO, "CBnT: " __VA_ARGS__)

Definition at line 12 of file logging.c.

Function Documentation

◆ _Static_assert() [1/4]

_Static_assert ( sizeof(union cbnt_biosacm_errorcode = =sizeof(uint32_t),
"Wrong size of cbnt_biosacm_errorcode  
)

◆ _Static_assert() [2/4]

_Static_assert ( sizeof(union cbnt_bootstatus = =sizeof(uint64_t),
"Wrong size of cbnt_bootstatus  
)

◆ _Static_assert() [3/4]

_Static_assert ( sizeof(union cbnt_errorcode = =sizeof(uint32_t),
"Wrong size of cbnt_errorcode  
)

◆ _Static_assert() [4/4]

_Static_assert ( sizeof(union sacm_info = =sizeof(uint64_t),
"Wrong size of sacm_info  
)

◆ decode_err_type()

static const char* decode_err_type ( uint8_t  type)
static

Definition at line 106 of file logging.c.

References type.

Referenced by intel_cbnt_log_registers().

Here is the caller graph for this function:

◆ intel_cbnt_log_registers()

Variable Documentation

◆ tpm_type

const char* const tpm_type[]
static
Initial value:
= {
"No TPM",
"TPM 1.2",
"TPM 2.0",
"PTT",
}

Definition at line 35 of file logging.c.

Referenced by intel_cbnt_log_registers().