arm/fdt: Add functions to get device bases by name + alias

* Move more code into fdt_support
* We now can query FDT registers based on name or alias
* Return addr_t where it makes sense
* Copyright change ok'ed by mmu_man
This commit is contained in:
Alexander von Gluck IV
2015-03-14 13:03:51 -05:00
parent f121867b87
commit fe19a9b18b
3 changed files with 143 additions and 108 deletions
@@ -13,9 +13,10 @@
void dump_fdt(const void *fdt);
status_t fdt_get_cell_count(int32 pathOffset,
int32 &addressCells, int32 &sizeCells);
status_t fdt_get_cell_count(int node, int32 &addressCells, int32 &sizeCells);
addr_t fdt_get_device_reg_byname(const char* name);
addr_t fdt_get_device_reg_byalias(const char* alias);
#endif /*__FDT_SUPPORT_H*/