feat: (twimap) provide an easy way for mapping kernel objects into filesystem
[lunaix-os.git] / lunaix-os / includes / hal / acpi / mcfg.h
1 #ifndef __LUNAIX_MCFG_H
2 #define __LUNAIX_MCFG_H
3
4 #include "sdt.h"
5
6 struct acpi_mcfg_alloc
7 {
8     uint32_t base_addr_lo;
9     uint32_t base_addr_hi;
10     uint16_t pci_seg_num;
11     uint8_t pci_bus_start;
12     uint8_t pci_bus_end;
13     uint32_t reserve;
14 } ACPI_TABLE_PACKED;
15
16 struct mcfg_alloc_info
17 {
18     uint32_t base_addr;
19     uint16_t pci_seg_num;
20     uint8_t pci_bus_start;
21     uint8_t pci_bus_end;
22 };
23
24 struct acpi_mcfg_toc
25 {
26     size_t alloc_num;
27     struct mcfg_alloc_info* allocations;
28 };
29
30 #endif /* __LUNAIX_MCFG_H */