summaryrefslogtreecommitdiff
path: root/jtag_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'jtag_uart.h')
-rw-r--r--jtag_uart.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/jtag_uart.h b/jtag_uart.h
index d855e39..4328be7 100644
--- a/jtag_uart.h
+++ b/jtag_uart.h
@@ -1,27 +1,28 @@
/*
- Nios-sim - one simple NIOSII simulator only for personal interest and fun.
- Copyright (C) 2010 chysun2000@gmail.com
+ * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2010 chysun2000@gmail.com
+ *
+ * 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.
+ */
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+#ifndef _JTAG_UART_H_
+#define _JTAG_UART_H_
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+#include "device.h"
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
+#define JTAG_UART_BASE 0x806810F0
+#define JTAG_UART_SIZE 8
-#ifndef __JTAG_UART_H__
-#define __JTAG_UART_H__
+#define JTAG_UART_DATA_REG 0
+#define JTAG_UART_CTRL_REG 1
-#include "io_device.h"
-#define JTAG_UART_REG_COUNT (2)
+extern struct device jtag_uart_core;
+
+#if 0
#define JTAG_UART_CTRL_REG (0)
#define JTAG_UART_DATA_REG (1)
#define JTAG_UART_BASE_ADDR (0x806810F0)
@@ -53,4 +54,6 @@ struct jtag_uart_priv{
#define ALTERA_JTAGUART_CONTROL_WSPACE_OFST (16)
extern struct io_device jtag_uart_io_device;
-#endif /* __JTAG_UART_H__*/
+#endif
+
+#endif /* _JTAG_UART_H_ */