Kernel: Parse PCIConfig opregion address on read/write

I was testing on some hardware and _ADR does not have to exist in the
namespace when opregion is parsed :)
This commit is contained in:
2025-07-16 15:34:36 +03:00
parent 3ec7aad432
commit 3960687f9d
3 changed files with 58 additions and 58 deletions

View File

@@ -87,14 +87,11 @@ namespace Kernel::ACPI::AML
struct OpRegion
{
GAS::AddressSpaceID address_space;
uint16_t seg;
uint8_t bus;
uint8_t dev;
uint8_t func;
uint64_t offset;
uint64_t length;
alignas(Scope) uint8_t scope_storage[sizeof(Scope)];
Scope& scope() { return *reinterpret_cast<Scope*>(scope_storage); }
const Scope& scope() const { return *reinterpret_cast<const Scope*>(scope_storage); }
};
struct FieldUnit