Skip to main content

bindings/
bindings.rs

1// Copyright 2026 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
5// This file is automatically generated by //zircon/kernel/phys/lib/memalloc:_kernel_bindgen_crate.bindings.bindgen.
6
7#![expect(non_camel_case_types)]
8#![expect(non_upper_case_globals)]
9#![no_std]
10
11pub const memalloc_kMinAllocatedTypeValue: u64 = 4294967296;
12#[repr(u64)]
13#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
14pub enum memalloc_Type {
15    kFreeRam = 1,
16    kPeripheral = 2,
17    kReserved = 3,
18    kPoolBookkeeping = 4294967296,
19    kPhysKernel = 4294967297,
20    kPhysElf = 4294967298,
21    kPhysLog = 4294967299,
22    kKernel = 4294967300,
23    kKernelStorage = 4294967301,
24    kDataZbi = 4294967302,
25    kTemporaryPhysHandoff = 4294967303,
26    kPermanentPhysHandoff = 4294967304,
27    kVdso = 4294967305,
28    kUserboot = 4294967306,
29    kBootMachineStack = 4294967307,
30    kBootShadowCallStack = 4294967308,
31    kBootUnsafeStack = 4294967309,
32    kFixedAddressStagingKernel = 4294967310,
33    kFixedAddressStagingDataZbi = 4294967311,
34    kLegacyBootData = 4294967312,
35    kTemporaryIdentityPageTables = 4294967313,
36    kKernelPageTables = 4294967314,
37    kPhysDebugdata = 4294967315,
38    kDevicetreeBlob = 4294967316,
39    kPhysScratch = 4294967317,
40    kPoolTestPayload = 4294967318,
41    kZbiTestPayload = 4294967319,
42    kTestRamReserve = 4294967320,
43    kNvram = 4294967321,
44    kReservedLow = 4294967322,
45    kTruncatedRam = 4294967323,
46    kMaxAllocated = 4294967324,
47}
48#[repr(C)]
49#[derive(Debug, Copy, Clone)]
50pub struct memalloc_Range {
51    pub addr: u64,
52    pub size: u64,
53    pub type_: memalloc_Type,
54}