1 /* 2 * Copyright 2012-2021 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * François Revol, revol@free.fr 7 * Alexander von Gluck IV, kallisti5@unixzen.com 8 */ 9 #ifndef _KERNEL_ARCH_DEBUG_UART_8250_OMAP_H 10 #define _KERNEL_ARCH_DEBUG_UART_8250_OMAP_H 11 12 13 #include <sys/types.h> 14 15 #include <SupportDefs.h> 16 #include <arch/generic/debug_uart_8250.h> 17 18 #include "debug_uart.h" 19 20 21 class ArchUART8250Omap : public DebugUART8250 { 22 public: 23 ArchUART8250Omap(addr_t base, int64 clock); 24 ~ArchUART8250Omap(); 25 void InitEarly(); 26 27 // ARM MMIO: on ARM the UART regs are aligned on 32bit 28 virtual void Out8(int reg, uint8 value); 29 virtual uint8 In8(int reg); 30 }; 31 32 33 DebugUART8250* arch_get_uart_8250_omap(addr_t base, int64 clock); 34 35 36 #endif /* _KERNEL_ARCH_DEBUG_UART_8250_OMAP_H */ 37