File: pmem.h

package info (click to toggle)
memtest86%2B 8.00-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: ansic: 23,121; asm: 2,488; makefile: 625; sh: 408
file content (30 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (4)
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
28
29
30
// SPDX-License-Identifier: GPL-2.0
#ifndef PMEM_H
#define PMEM_H
/**
 * \file
 *
 * Provides a description of the system physical memory map.
 *
 *//*
 * Copyright (C) 2020-2022 Martin Whitaker.
 */

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

#define MAX_MEM_SEGMENTS    127

typedef struct {
    uintptr_t       start;
    uintptr_t       end;
} pm_map_t;

extern pm_map_t     pm_map[MAX_MEM_SEGMENTS];
extern int          pm_map_size;

extern size_t       num_pm_pages;

void pmem_init(void);

#endif /* PMEM_H */