diff options
author | Howard Mao <zhehao.mao@gmail.com> | 2015-12-06 15:32:00 -0800 |
---|---|---|
committer | Howard Mao <zhehao.mao@gmail.com> | 2015-12-06 15:32:00 -0800 |
commit | 864210aa88db999d49b7bfec3d3c03bda18864a8 (patch) | |
tree | c9dcc09d88435db4f01baf5619467d6a0b5c37fa /pk/devicetree.h | |
parent | dd7fc844c4059a18ffaeeb3a9573a8d27d30923b (diff) | |
download | pk-864210aa88db999d49b7bfec3d3c03bda18864a8.zip pk-864210aa88db999d49b7bfec3d3c03bda18864a8.tar.gz pk-864210aa88db999d49b7bfec3d3c03bda18864a8.tar.bz2 |
cache device type strings in memorydevice-files
Diffstat (limited to 'pk/devicetree.h')
-rw-r--r-- | pk/devicetree.h | 6 |
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(); |