coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hob_mem.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _DENVERTON_NS_HOB_MEM_H
4 #define _DENVERTON_NS_HOB_MEM_H
5 
6 #include <console/console.h>
7 #include <fsp/util.h>
8 
10  const FSP_SMBIOS_MEMORY_INFO *memory_info_hob);
11 
12 void soc_save_dimm_info(void);
13 
14 #define FSP_SMBIOS_MEMORY_INFO_GUID \
15 { \
16  0x8c, 0x10, 0xa1, 0x01, 0xee, 0x9d, 0x84, 0x49, \
17  0x88, 0xc3, 0xee, 0xe8, 0xc4, 0x9e, 0xfb, 0x89 \
18 }
19 
20 static inline const FSP_SMBIOS_MEMORY_INFO *
22 {
23  size_t hob_size;
24  const FSP_SMBIOS_MEMORY_INFO *memory_info_hob;
27 
28  /* Locate the memory info HOB */
29  memory_info_hob = fsp_find_extension_hob_by_guid(
31  &hob_size);
32  if (memory_info_hob == NULL || hob_size == 0) {
33  printk(BIOS_ERR, "SMBIOS MEMORY_INFO_DATA_HOB not found\n");
34  return NULL;
35  }
36 
37  return memory_info_hob;
38 }
39 
40 #endif // _DENVERTON_NS_HOB_MEM_H
#define printk(level,...)
Definition: stdlib.h:16
static const uint8_t smbios_memory_info_guid[16]
Definition: hob_display.c:55
const void * fsp_find_extension_hob_by_guid(const uint8_t *guid, size_t *size)
static const FSP_SMBIOS_MEMORY_INFO * soc_get_fsp_smbios_memory_info_hob(void)
Definition: hob_mem.h:21
void soc_display_fsp_smbios_memory_info_hob(const FSP_SMBIOS_MEMORY_INFO *memory_info_hob)
Definition: hob_display.c:60
void soc_save_dimm_info(void)
Definition: hob_mem.c:14
#define FSP_SMBIOS_MEMORY_INFO_GUID
Definition: hob_mem.h:14
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition: loglevel.h:72
#define NULL
Definition: stddef.h:19
unsigned char uint8_t
Definition: stdint.h:8