1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3 #ifndef DEVICE_DRAM_SPD_H 4 #define DEVICE_DRAM_SPD_H 5 6 #include <smbios.h> 7 #include <types.h> 8 9 const char *spd_manufacturer_name(const uint16_t mod_id); 10 11 struct spd_info { 12 uint16_t type_detail; 13 uint8_t form_factor; 14 }; 15 16 void get_spd_info(smbios_memory_type memory_type, uint8_t module_type, struct spd_info *info); 17 uint8_t convert_form_factor_to_module_type(smbios_memory_type memory_type, 18 smbios_memory_form_factor form_factor); 19 20 #endif /* DEVICE_DRAM_SPD_H */ 21