1/** 2 * \file 3 * \brief Kernel serial driver for the OMAP44xx UARTs. 4 */ 5 6/* 7 * Copyright (c) 2012-2015, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#ifndef __OMAP_UART_H__ 16#define __OMAP_UART_H__ 17 18#include <barrelfish_kpi/types.h> 19#include <stdbool.h> 20 21/* 22 * Initialize UARTs before the MMU is on. 23 */ 24extern void omap_uart_early_init(unsigned port, lpaddr_t base); 25 26/* 27 * Re-initialize UARTs after the MMU is on. 28 */ 29extern void omap_uart_init(unsigned port, lvaddr_t base, bool initialize_hw); 30 31/** 32 * \brief Prints a single character to a serial port. 33 */ 34extern void omap_uart_putchar(unsigned port, char c); 35 36/** 37 * \brief Reads a single character from the default serial port. 38 * This function spins waiting for a character to arrive. 39 */ 40extern char omap_uart_getchar(unsigned port); 41 42#endif // __OMAP_UART_H__ 43 44