aboutsummaryrefslogtreecommitdiff
path: root/pk/devicetree.h
diff options
context:
space:
mode:
authorHoward Mao <zhehao.mao@gmail.com>2015-12-06 15:32:00 -0800
committerHoward Mao <zhehao.mao@gmail.com>2015-12-06 15:32:00 -0800
commit864210aa88db999d49b7bfec3d3c03bda18864a8 (patch)
treec9dcc09d88435db4f01baf5619467d6a0b5c37fa /pk/devicetree.h
parentdd7fc844c4059a18ffaeeb3a9573a8d27d30923b (diff)
downloadpk-device-files.zip
pk-device-files.tar.gz
pk-device-files.tar.bz2
cache device type strings in memorydevice-files
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();