From fc6515ef027d94412228875095708b949b801496 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 16 Nov 2010 14:51:59 +0100 Subject: Add basic device handling infrastructure --- uart.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 uart.h (limited to 'uart.h') diff --git a/uart.h b/uart.h new file mode 100644 index 0000000..4845150 --- /dev/null +++ b/uart.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2010 Tobias Klauser + * + * This file is part of nios2sim-ng. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef _UART_H_ +#define _UART_H_ + +#define UART_BASE 0x80681000 +#define UART_SIZE 32 + +#define UART_RXDATA_REG 0 +#define UART_TXDATA_REG 1 +#define UART_STATUS_REG 2 +#define UART_CONTROL_REG 3 + +extern struct device uart_core; + +#endif /* _UART_H_ */ -- cgit v1.2.3-54-g00ecf