summaryrefslogtreecommitdiff
path: root/api/kernel/memory/range.h
blob: 6a684679a8458d1912a242853a9197569dae712b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <stdint.h>
#include <stddef.h>

typedef uintptr_t phys_addr_t;

enum memory_range_type
{
    UNUSABLE_MEMORY,
    RESERVED_MEMORY,
    SYSTEM_MEMORY,
    AVAILABLE_MEMORY,
};

struct memory_range
{
    enum memory_range_type type;
    phys_addr_t base;
    size_t size;
};