2020-09-21 13:15:55 +03:00
|
|
|
#ifndef __SYS__E820_H__
|
|
|
|
#define __SYS__E820_H__
|
2020-03-27 03:59:11 +03:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2020-05-03 00:38:57 +03:00
|
|
|
#include <stddef.h>
|
2020-03-27 03:59:11 +03:00
|
|
|
|
|
|
|
struct e820_entry_t {
|
|
|
|
uint64_t base;
|
|
|
|
uint64_t length;
|
|
|
|
uint32_t type;
|
|
|
|
uint32_t unused;
|
2022-03-12 23:41:36 +03:00
|
|
|
};
|
2020-03-27 03:59:11 +03:00
|
|
|
|
2021-04-15 03:21:38 +03:00
|
|
|
extern struct e820_entry_t e820_map[];
|
2020-05-03 00:38:57 +03:00
|
|
|
extern size_t e820_entries;
|
2020-03-27 03:59:11 +03:00
|
|
|
|
2020-05-03 00:38:57 +03:00
|
|
|
void init_e820(void);
|
2020-03-27 03:59:11 +03:00
|
|
|
|
|
|
|
#endif
|