summaryrefslogtreecommitdiff
path: root/tools/src/xnuboot.h
blob: 32623b3e39ddd68ebf4e4e3dcc5c434ff3fdaf1b (plain)
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
31
32
33
34
35
36
/* SPDX-License-Identifier: MIT */

#ifndef XNUBOOT_H
#define XNUBOOT_H

#define CMDLINE_LENGTH 608

struct boot_video {
    u64 base;
    u64 display;
    u64 stride;
    u64 width;
    u64 height;
    u64 depth;
};

struct boot_args {
    u16 revision;
    u16 version;
    u64 virt_base;
    u64 phys_base;
    u64 mem_size;
    u64 top_of_kernel_data;
    struct boot_video video;
    u32 machine_type;
    void *devtree;
    u32 devtree_size;
    char cmdline[CMDLINE_LENGTH];
    u64 boot_flags;
    u64 mem_size_actual;
};

extern u64 boot_args_addr;
extern struct boot_args cur_boot_args;

#endif