fdt: Major over-haul of fdt

* Consolidate all fdt code into fdt bus_manager
* Build boot and kernel static libraries

Change-Id: I2a69cd7e1f1276999a80734ff12918fd49b599e5
Reviewed-on: https://review.haiku-os.org/440
Reviewed-by: Alexander von Gluck IV <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2018-08-06 15:46:49 +00:00
parent c3f9610748
commit 5d0fd0e422
13 changed files with 35 additions and 56 deletions
@@ -1,19 +0,0 @@
/*
* Copyright 2012-2015, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors
* Alexander von Gluck IV, [email protected]
*/
#ifndef __FDT_SERIAL_H
#define __FDT_SERIAL_H
#include <KernelExport.h>
#include <arch/generic/debug_uart.h>
DebugUART * debug_uart_from_fdt(const void *fdt);
#endif /*__FDT_SERIAL_H*/
@@ -1,24 +0,0 @@
/*
* Copyright 2012-2015, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors
* Alexander von Gluck IV, [email protected]
*/
#ifndef __FDT_SUPPORT_H
#define __FDT_SUPPORT_H
#include <KernelExport.h>
void dump_fdt(const void *fdt);
status_t fdt_get_cell_count(const void* fdt, int node,
int32 &addressCells, int32 &sizeCells);
phys_addr_t fdt_get_device_reg(const void* fdt, int node, bool physical=true);
phys_addr_t fdt_get_device_reg_byname(const void* fdt, const char* name);
phys_addr_t fdt_get_device_reg_byalias(const void* fdt, const char* alias);
#endif /*__FDT_SUPPORT_H*/