Make UEFI boot-platform build again
[haiku.git] / headers / private / kernel / arch / generic / debug_uart_8250.h
blob34694a4232132bfb3d43d37cb8e7fda1870abcb2
1 /*
2 * Copyright 2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * François Revol, revol@free.fr
7 */
8 #ifndef _KERNEL_ARCH_DEBUG_UART_8250_H
9 #define _KERNEL_ARCH_DEBUG_UART_8250_H
12 #include <sys/types.h>
14 #include <SupportDefs.h>
16 #include "debug_uart.h"
19 class DebugUART8250 : public DebugUART {
20 public:
21 DebugUART8250(addr_t base, int64 clock);
22 ~DebugUART8250();
24 void InitEarly();
25 void Init();
26 void InitPort(uint32 baud);
28 int PutChar(char c);
29 int GetChar(bool wait);
31 void FlushTx();
32 void FlushRx();
36 extern DebugUART8250 *arch_get_uart_8250(addr_t base, int64 clock);
37 extern DebugUART8250 *arch_get_uart_8250_omap(addr_t base, int64 clock);
40 #endif /* _KERNEL_ARCH_DEBUG_UART_8250_H */