mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 14:54:49 +01:00
c6a4fee579
* drop my fdt tests * we have to call fdt parsing code *after* cpu_init (why?) * pass fdt pointer to all FDT support calls to avoid confusion once we get into the kernel land * look for PL011 compatible uart and use it * Add some saftey checks to serial putc code to avoid null* * fdt_node_check_compatible returns 0 on success not 1 * fdt_get_device_reg needs to add the SOC base to the result * fdt_get_device_reg might need to add the second range cell instead of reg?
20 lines
349 B
C
20 lines
349 B
C
/*
|
|
* Copyright 2012-2015, Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors
|
|
* Alexander von Gluck IV, kallisti5@unixzen.com
|
|
*/
|
|
#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*/
|