8 #include <soc/pci_devs.h>
9 #include <soc/soc_util.h>
15 const uint8_t mem_hob_guid[16] = FSP_SYSTEM_MEMORYMAP_HOB_GUID;
16 const struct SystemMemoryMapHob **memmap_addr;
18 memmap_addr = (
const struct SystemMemoryMapHob **)
30 return res->Personality == TYPE_UBOX_IIO;
37 assert(socket < hob->SystemStatus.numCpus && stack < MAX_LOGIC_IIO_STACK);
39 return hob->PlatformData.IIO_resource[socket].StackRes[stack].BusBase;
55 else if (
port >= PORT_1A &&
port <= PORT_1D)
57 else if (
port >= PORT_2A &&
port <= PORT_2D)
59 else if (
port >= PORT_3A &&
port <= PORT_3D)
67 uint8_t ioapic_id = socket ? 0xf : 0x9;
#define assert(statement)
const void * fsp_find_extension_hob_by_guid(const uint8_t *guid, size_t *size)
bool is_iio_stack_res(const STACK_RES *res)
uint8_t soc_get_iio_ioapicid(int socket, int stack)
const struct SystemMemoryMapHob * get_system_memory_map(void)
int soc_get_stack_for_port(int port)
uint32_t get_socket_stack_busno(uint32_t socket, uint32_t stack)
const IIO_UDS * get_iio_uds(void)