From 1aac36f788834699b6891aea7a83eb950bd5e8f6 Mon Sep 17 00:00:00 2001 From: stefan Date: Sat, 8 Apr 2023 20:42:18 -0400 Subject: no idea whot i changed lol --- sys/include/fdt.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sys/include/fdt.h') diff --git a/sys/include/fdt.h b/sys/include/fdt.h index 92e5695..ca1cea0 100644 --- a/sys/include/fdt.h +++ b/sys/include/fdt.h @@ -1,5 +1,6 @@ #include #include +#include #ifndef _FDT_H #define _FDT_H @@ -34,4 +35,21 @@ struct fdt_reserve_entry { uint64_t size; }; +struct fdt_node_header { + uint32_t tag; + char name[]; +}; + +void walk_fdt(struct fdt_header *header); + +#define FDT_MAGIC 0xd00dfeed /* 4: version, 4: total size */ +#define FDT_TAGSIZE sizeof(fdt32_t) + +#define FDT_BEGIN_NODE 0x1 /* Start node: full name */ +#define FDT_END_NODE 0x2 /* End node */ +#define FDT_PROP 0x3 /* Property: name off, + size, content */ +#define FDT_NOP 0x4 /* nop */ +#define FDT_END 0x9 + #endif /* _FDT_H */ -- cgit v1.2.3