blob: f0f98f01e5783808cdda0115a7d9cd39ee0dcdcc [file] [log] [blame]
Doug Horn1427b6a2018-12-11 13:19:16 -08001// Copyright 2017 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Adam Barth57eacf52020-11-04 00:38:09 +00005#ifndef SYSROOT_ZIRCON_BOOT_E820_H_
6#define SYSROOT_ZIRCON_BOOT_E820_H_
Doug Horn1427b6a2018-12-11 13:19:16 -08007
8#include <stdint.h>
9#include <zircon/compiler.h>
10
11#define E820_RAM 1
12#define E820_RESERVED 2
13#define E820_ACPI 3
14#define E820_NVS 4
15#define E820_UNUSABLE 5
16
17typedef struct e820entry {
Adam Barth57eacf52020-11-04 00:38:09 +000018 uint64_t addr;
19 uint64_t size;
20 uint32_t type;
Doug Horn1427b6a2018-12-11 13:19:16 -080021} __PACKED e820entry_t;
Adam Barth57eacf52020-11-04 00:38:09 +000022
23#endif // SYSROOT_ZIRCON_BOOT_E820_H_