coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
uint8_t | smbios_bus_width_to_spd_width (uint8_t ddr_type, uint16_t total_width, uint16_t data_width) |
Convert the SMBIOS bit widths into an SPD encoded width. More... | |
uint32_t | smbios_memory_size_to_mib (uint16_t memory_size, uint32_t extended_size) |
Convert the SMBIOS size values into the total number of MiB. More... | |
uint8_t | smbios_form_factor_to_spd_mod_type (smbios_memory_type memory_type, smbios_memory_form_factor form_factor) |
Convert the SMBIOS form factor to the SPD module type. More... | |
uint8_t smbios_bus_width_to_spd_width | ( | uint8_t | ddr_type, |
uint16_t | total_width, | ||
uint16_t | data_width | ||
) |
Convert the SMBIOS bit widths into an SPD encoded width.
Use this when setting dimm_info.bus_width if the raw SPD values are not available.
Definition at line 9 of file dimm_info_util.c.
References BIOS_NOTICE, MEMORY_BUS_WIDTH_16, MEMORY_BUS_WIDTH_32, MEMORY_BUS_WIDTH_64, MEMORY_BUS_WIDTH_8, MEMORY_TYPE_DDR5, MEMORY_TYPE_LPDDR5, printk, SPD_ECC_8BIT, and SPD_ECC_8BIT_LP5_DDR5.
Referenced by dimm_info_fill(), and transfer_memory_info().
uint8_t smbios_form_factor_to_spd_mod_type | ( | smbios_memory_type | memory_type, |
smbios_memory_form_factor | form_factor | ||
) |
Convert the SMBIOS form factor to the SPD module type.
Use this when setting dimm_info.mod_type.
Definition at line 76 of file dimm_info_util.c.
References convert_form_factor_to_module_type().
Referenced by transfer_memory_info().
Convert the SMBIOS size values into the total number of MiB.
Use this when setting dimm_info.dimm_size.
Definition at line 60 of file dimm_info_util.c.
References KiB.
Referenced by transfer_memory_info().