blob: dc39b37601073134ec47fb36b556bca939a7d24e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef ACPI_TEST_DATA_TABLES_HPP
#define ACPI_TEST_DATA_TABLES_HPP
#include <cstddef>
#include <span>
#define TABLE(name) \
extern "C" std::byte const name##_start; \
extern "C" std::byte const name##_end; \
auto inline name()->std::span<std::byte const> \
{ \
return {&name##_start, &name##_end}; \
}
namespace acpi::test_data::tables
{
TABLE(basic_madt);
TABLE(basic_rsdt);
TABLE(basic_rsdp);
TABLE(table_header);
} // namespace acpi::test_data::tables
#undef TABLE
#endif
|