Barnali Sarkar | e13b775 | 2017-02-21 16:24:49 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2017 Intel Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #ifndef _COMMON_SMBIOS_H_ |
| 17 | #define _COMMON_SMBIOS_H_ |
| 18 | |
| 19 | #include <stdint.h> |
| 20 | #include <memory_info.h> |
| 21 | |
| 22 | /* Fill the SMBIOS memory information from FSP MEM_INFO_DATA_HOB in CBMEM.*/ |
| 23 | void dimm_info_fill(struct dimm_info *dimm, u32 dimm_capacity, u8 ddr_type, |
Barnali Sarkar | 6497cd9 | 2017-03-07 17:11:03 +0530 | [diff] [blame] | 24 | u32 frequency, u8 channel_id, u8 dimm_id, |
| 25 | const char *module_part_num, size_t module_part_number_size, |
Barnali Sarkar | e13b775 | 2017-02-21 16:24:49 +0530 | [diff] [blame] | 26 | u16 data_width); |
| 27 | |
| 28 | #endif /* _COMMON_SMBIOS_H_ */ |