mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-19 10:13:10 +00:00
bd19584743
Signed-off-by: Hector Martin <marcan@marcan.st>
28 lines
916 B
Python
28 lines
916 B
Python
# SPDX-License-Identifier: MIT
|
|
from construct import *
|
|
|
|
BootArgs = Struct(
|
|
"revision" / Hex(Int16ul),
|
|
"version" / Hex(Int16ul),
|
|
Padding(4),
|
|
"virt_base" / Hex(Int64ul),
|
|
"phys_base" / Hex(Int64ul),
|
|
"mem_size" / Hex(Int64ul),
|
|
"top_of_kernel_data" / Hex(Int64ul),
|
|
"video" / Struct(
|
|
"base" / Hex(Int64ul),
|
|
"display" / Hex(Int64ul),
|
|
"stride" / Hex(Int64ul),
|
|
"width" / Hex(Int64ul),
|
|
"height" / Hex(Int64ul),
|
|
"depth" / Hex(Int64ul),
|
|
),
|
|
"machine_type" / Hex(Int32ul),
|
|
Padding(4),
|
|
"devtree" / Hex(Int64ul),
|
|
"devtree_size" / Hex(Int32ul),
|
|
"cmdline" / PaddedString(608, "ascii"),
|
|
Padding(4),
|
|
"boot_flags" / Hex(Int64ul),
|
|
"mem_size_actual" / Hex(Int64ul),
|
|
)
|