2023-06-07 16:24:13 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-06-21 18:46:06 -07:00
|
|
|
#include <glacier/status/error_or.h>
|
2023-06-07 16:24:13 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-17 01:45:53 -07:00
|
|
|
#include "include/ztypes.h"
|
2023-06-07 16:24:13 -07:00
|
|
|
|
|
|
|
void ProbeRsdp();
|
|
|
|
|
2023-06-21 18:46:06 -07:00
|
|
|
struct PcieConfiguration {
|
|
|
|
uint64_t base;
|
|
|
|
uint64_t offset;
|
|
|
|
};
|
|
|
|
glcr::ErrorOr<PcieConfiguration> GetPciExtendedConfiguration();
|
2023-08-01 22:26:29 -07:00
|
|
|
|
|
|
|
struct ApicConfiguration {
|
|
|
|
uint64_t lapic_base;
|
|
|
|
uint64_t ioapic_base;
|
|
|
|
};
|
|
|
|
glcr::ErrorOr<ApicConfiguration> GetApicConfiguration();
|