Patrick Rudolph | ff251d2 | 2021-02-11 15:09:22 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef DEVICE_DRAM_SPD_H |
| 4 | #define DEVICE_DRAM_SPD_H |
| 5 | |
Subrata Banik | 6de8b42 | 2021-10-26 20:46:21 +0530 | [diff] [blame] | 6 | #include <smbios.h> |
Patrick Rudolph | ff251d2 | 2021-02-11 15:09:22 +0100 | [diff] [blame] | 7 | #include <types.h> |
| 8 | |
| 9 | const char *spd_manufacturer_name(const uint16_t mod_id); |
| 10 | |
Subrata Banik | 6de8b42 | 2021-10-26 20:46:21 +0530 | [diff] [blame] | 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 | |
Patrick Rudolph | ff251d2 | 2021-02-11 15:09:22 +0100 | [diff] [blame] | 20 | #endif /* DEVICE_DRAM_SPD_H */ |