aboutsummaryrefslogtreecommitdiff
path: root/pk/devicetree.h
diff options
context:
space:
mode:
Diffstat (limited to 'pk/devicetree.h')
-rw-r--r--pk/devicetree.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pk/devicetree.h b/pk/devicetree.h
index ceebaa3..c7f97cd 100644
--- a/pk/devicetree.h
+++ b/pk/devicetree.h
@@ -32,11 +32,13 @@ struct fdt_reserve_entry {
uint64_t size;
};
+#define FDT_DEV_NAME_SIZE 12
+
struct fdt_table_entry {
- const char *dev_type;
+ char dev_type[FDT_DEV_NAME_SIZE];
+ int prot;
uint64_t base;
uint64_t size;
- int prot;
};
void parse_device_tree();