Move find_acpi_table to new hardware.cpp

This commit is contained in:
Justin C. Miller
2020-02-23 18:28:20 -08:00
parent 93f0b70eba
commit 303a78065e
4 changed files with 59 additions and 32 deletions

15
src/boot/hardware.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <uefi/tables.h>
namespace boot {
namespace hw {
/// Find the ACPI table in the system configuration tables
/// and return a pointer to it. If only an ACPI 1.0 table is
/// available, the returned pointer will have its least
/// significant bit set to 1.
void * find_acpi_table(uefi::system_table *st);
} // namespace hw
} // namespace boot