| 1 |
|
| 2 |
|
| 3 |
#include <assert.h> |
| 4 |
#include <console/console.h> |
| 5 |
#include <device/pci.h> |
| 6 |
#include <device/pci_ids.h> |
| 7 |
#include <hob_iiouds.h> |
| 8 |
#include <intelblocks/cpulib.h> |
| 9 |
#include <intelblocks/pcr.h> |
| 10 |
#include <soc/iomap.h> |
| 11 |
#include <soc/msr.h> |
| 12 |
#include <soc/pci_devs.h> |
| 13 |
#include <soc/pcr_ids.h> |
| 14 |
#include <soc/soc_util.h> |
| 15 |
#include <soc/util.h> |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
const struct SystemMemoryMapHob *get_system_memory_map(void) |
| 47 |
{ |
| 48 |
size_t hob_size; |
| 49 |
const uint8_t mem_hob_guid[16] = FSP_SYSTEM_MEMORYMAP_HOB_GUID; |
| 50 |
const struct SystemMemoryMapHob *memmap_addr; |
| 51 |
|
| 52 |
memmap_addr = fsp_find_extension_hob_by_guid(mem_hob_guid, &hob_size); |
| 53 |
assert(memmap_addr && hob_size != 0); |
| 54 |
|
| 55 |
return memmap_addr; |
| 56 |
} |
| 57 |
|
| 58 |
bool is_pcie_iio_stack_res(const STACK_RES *res) |
| 59 |
{ |
| 60 |
return res->BusBase < res->BusLimit; |
| 61 |
} |
| 62 |
|
| 63 |
bool is_ubox_stack_res(const STACK_RES *res) |
| 64 |
{ |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
return false; |
| 84 |
} |
| 85 |
|
| 86 |
bool is_memtype_reserved(uint16_t mem_type) |
| 87 |
{ |
| 88 |
return !!(mem_type & MEM_TYPE_RESERVED); |
| 89 |
} |
| 90 |
|
| 91 |
bool is_memtype_non_volatile(uint16_t mem_type) |
| 92 |
{ |
| 93 |
return !(mem_type & MEMTYPE_VOLATILE_MASK); |
| 94 |
} |
| 95 |
|
| 96 |
bool is_memtype_processor_attached(uint16_t mem_type) |
| 97 |
{ |
| 98 |
return true; |
| 99 |
} |
| 100 |
|
| 101 |
uint8_t get_cxl_node_count(void) |
| 102 |
{ |
| 103 |
return 0; |
| 104 |
} |
| 105 |
|
| 106 |
bool get_mmio_high_base_size(resource_t *base, resource_t *size) |
| 107 |
{ |
| 108 |
return false; |
| 109 |
} |