1ba340e45Schristos /* UART model. 2ba340e45Schristos 3*05fa0856Schristos Copyright (C) 1996-2024 Free Software Foundation, Inc. 4ba340e45Schristos Contributed by Cygnus Solutions and Mike Frysinger. 5ba340e45Schristos 6ba340e45Schristos This file is part of simulators. 7ba340e45Schristos 8ba340e45Schristos This program is free software; you can redistribute it and/or modify 9ba340e45Schristos it under the terms of the GNU General Public License as published by 10ba340e45Schristos the Free Software Foundation; either version 3 of the License, or 11ba340e45Schristos (at your option) any later version. 12ba340e45Schristos 13ba340e45Schristos This program is distributed in the hope that it will be useful, 14ba340e45Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 15ba340e45Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16ba340e45Schristos GNU General Public License for more details. 17ba340e45Schristos 18ba340e45Schristos You should have received a copy of the GNU General Public License 19ba340e45Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20ba340e45Schristos 21ba340e45Schristos #ifndef DV_M32R_UART_H 22ba340e45Schristos #define DV_M32R_UART_H 23ba340e45Schristos 24ba340e45Schristos /* Should move these settings to a flag to the uart device, and the adresses to 25ba340e45Schristos the sim-model framework. */ 26ba340e45Schristos 27ba340e45Schristos /* Serial device addresses. */ 28ba340e45Schristos #ifdef M32R_EVA /* orig eva board, no longer supported */ 29ba340e45Schristos #define UART_BASE_ADDR 0xff102000 30ba340e45Schristos #define UART_INCHAR_ADDR 0xff102013 31ba340e45Schristos #define UART_OUTCHAR_ADDR 0xff10200f 32ba340e45Schristos #define UART_STATUS_ADDR 0xff102006 33ba340e45Schristos /* Indicate ready bit is inverted. */ 34ba340e45Schristos #define UART_INPUT_READY0 35ba340e45Schristos #else 36ba340e45Schristos /* These are the values for the MSA2000 board. 37ba340e45Schristos ??? Will eventually need to move this to a config file. */ 38ba340e45Schristos #define UART_BASE_ADDR 0xff004000 39ba340e45Schristos #define UART_INCHAR_ADDR 0xff004009 40ba340e45Schristos #define UART_OUTCHAR_ADDR 0xff004007 41ba340e45Schristos #define UART_STATUS_ADDR 0xff004002 42ba340e45Schristos #endif 43ba340e45Schristos 44ba340e45Schristos #define UART_INPUT_READY 0x4 45ba340e45Schristos #define UART_OUTPUT_READY 0x1 46ba340e45Schristos 47ba340e45Schristos #endif 48