haiku/headers/private/kernel/arch/generic/debug_uart_8250.h
Alexander von Gluck IV a42249db2d arm: Add 8250 omap variant uart driver
* Untested, someone with an omap3,4,5 could though.
2017-11-20 09:16:58 -06:00

41 lines
805 B
C++

/*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* François Revol, revol@free.fr
*/
#ifndef _KERNEL_ARCH_DEBUG_UART_8250_H
#define _KERNEL_ARCH_DEBUG_UART_8250_H
#include <sys/types.h>
#include <SupportDefs.h>
#include "debug_uart.h"
class DebugUART8250 : public DebugUART {
public:
DebugUART8250(addr_t base, int64 clock);
~DebugUART8250();
void InitEarly();
void Init();
void InitPort(uint32 baud);
int PutChar(char c);
int GetChar(bool wait);
void FlushTx();
void FlushRx();
};
extern DebugUART8250 *arch_get_uart_8250(addr_t base, int64 clock);
extern DebugUART8250 *arch_get_uart_8250_omap(addr_t base, int64 clock);
#endif /* _KERNEL_ARCH_DEBUG_UART_8250_H */