coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mca.c File Reference
#include <amdblocks/mca.h>
#include <cpu/x86/msr.h>
#include <types.h>
Include dependency graph for mca.c:

Go to the source code of this file.

Functions

bool mca_has_expected_bank_count (void)
 
bool mca_is_valid_bank (unsigned int bank)
 
const char * mca_get_bank_name (unsigned int bank)
 

Variables

static const char *const mca_bank_name []
 

Function Documentation

◆ mca_get_bank_name()

const char* mca_get_bank_name ( unsigned int  bank)

Definition at line 43 of file mca.c.

References mca_bank_name, and mca_is_valid_bank().

Here is the call graph for this function:

◆ mca_has_expected_bank_count()

bool mca_has_expected_bank_count ( void  )

Definition at line 33 of file mca.c.

References ARRAY_SIZE, mca_bank_name, and mca_get_bank_count().

Here is the call graph for this function:

◆ mca_is_valid_bank()

bool mca_is_valid_bank ( unsigned int  bank)

Definition at line 38 of file mca.c.

References ARRAY_SIZE, mca_bank_name, and NULL.

Variable Documentation

◆ mca_bank_name

const char* const mca_bank_name[]
static
Initial value:
= {
[0] = "Load-store unit",
[1] = "Instruction fetch unit",
[2] = "L2 cache unit",
[3] = "Decode unit",
[4] = "",
[5] = "Execution unit",
[6] = "Floating point unit",
[7] = "L3 cache unit",
[8] = "L3 cache unit",
[9] = "L3 cache unit",
[10] = "L3 cache unit",
[11] = "L3 cache unit",
[12] = "L3 cache unit",
[13] = "L3 cache unit",
[14] = "L3 cache unit",
[15] = "UMC",
[16] = "UMC",
[17] = "SMU",
[18] = "PSP",
[19] = "PB",
[20] = "CS",
[21] = "CS",
[22] = "PIE",
}

Definition at line 7 of file mca.c.

Referenced by mca_get_bank_name(), mca_has_expected_bank_count(), and mca_is_valid_bank().