Doug Horn | 1427b6a | 2018-12-11 13:19:16 -0800 | [diff] [blame] | 1 | // 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 Barth | 57eacf5 | 2020-11-04 00:38:09 +0000 | [diff] [blame] | 5 | #ifndef SYSROOT_ZIRCON_BOOT_E820_H_ |
| 6 | #define SYSROOT_ZIRCON_BOOT_E820_H_ |
Doug Horn | 1427b6a | 2018-12-11 13:19:16 -0800 | [diff] [blame] | 7 | |
| 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 | |
| 17 | typedef struct e820entry { |
Adam Barth | 57eacf5 | 2020-11-04 00:38:09 +0000 | [diff] [blame] | 18 | uint64_t addr; |
| 19 | uint64_t size; |
| 20 | uint32_t type; |
Doug Horn | 1427b6a | 2018-12-11 13:19:16 -0800 | [diff] [blame] | 21 | } __PACKED e820entry_t; |
Adam Barth | 57eacf5 | 2020-11-04 00:38:09 +0000 | [diff] [blame] | 22 | |
| 23 | #endif // SYSROOT_ZIRCON_BOOT_E820_H_ |