From e4cc71aa4403c82f0b3e89087024f83832ece9ec Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 19 May 2004 21:33:14 +0000 Subject: Patch by Scott McNutt, 25 Apr 2004: Add Nios GDB/JTAG Console support: - Add stubs to support gdb via JTAG. - Add support for console over JTAG. - Minor cleanup. --- include/nios-io.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/nios-io.h') diff --git a/include/nios-io.h b/include/nios-io.h index 08aa9f976..dc7e127fe 100644 --- a/include/nios-io.h +++ b/include/nios-io.h @@ -167,4 +167,17 @@ typedef volatile struct nios_asmi_t { #define NIOS_ASMI_IEOP (1 << 9) /* rx eop int ena */ #define NIOS_ASMI_SSO (1 << 10) /* slave select enable */ +/*------------------------------------------------------------------------ + * JTAG UART + *----------------------------------------------------------------------*/ +typedef volatile struct nios_jtag_t { + unsigned short rxcntl; /* Rx data/cntl reg */ + unsigned short txcntl; /* Tx data/cntl reg */ + unsigned short errcntl; /* Err dta/cntl reg */ +}nios_jtag_t; + +/* status register */ +#define NIOS_JTAG_TRDY (1 << 8) /* tx ready bit */ +#define NIOS_JTAG_RRDY (1 << 8) /* rx ready bit */ + #endif /* __NIOSIO_H__ */ -- cgit v1.2.3