20 lines
354 B
C
20 lines
354 B
C
#pragma once
|
|
|
|
#include "types/physaddr.h"
|
|
#include <stddef.h>
|
|
|
|
struct memory_region_t
|
|
{
|
|
physaddr_t location;
|
|
size_t size;
|
|
unsigned int type;
|
|
};
|
|
|
|
struct memory_map_t
|
|
{
|
|
struct memory_region_t *array;
|
|
size_t size;
|
|
size_t capacity;
|
|
};
|
|
|
|
void insert_region(struct memory_map_t *map, physaddr_t location, size_t size, unsigned int type); |