2017-02-21 11:54:49 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Intel Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMMON_SMBIOS_H_
|
|
|
|
#define _COMMON_SMBIOS_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <memory_info.h>
|
|
|
|
|
2019-05-17 22:57:31 +02:00
|
|
|
/* Offset info DIMM_INFO SpdSave for start of serial number */
|
|
|
|
#define SPD_SAVE_OFFSET_SERIAL 5
|
|
|
|
|
2017-02-21 11:54:49 +01:00
|
|
|
/* Fill the SMBIOS memory information from FSP MEM_INFO_DATA_HOB in CBMEM.*/
|
|
|
|
void dimm_info_fill(struct dimm_info *dimm, u32 dimm_capacity, u8 ddr_type,
|
2019-02-05 02:05:51 +01:00
|
|
|
u32 frequency, u8 rank_per_dimm, u8 channel_id, u8 dimm_id,
|
2017-03-07 12:41:03 +01:00
|
|
|
const char *module_part_num, size_t module_part_number_size,
|
2019-05-28 10:37:24 +02:00
|
|
|
const u8 *module_serial_num, u16 data_width, u32 vdd_voltage,
|
2019-06-10 23:00:56 +02:00
|
|
|
bool ecc_support, u16 mod_id, u8 mod_type);
|
2017-02-21 11:54:49 +01:00
|
|
|
|
|
|
|
#endif /* _COMMON_SMBIOS_H_ */
|