]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/nios-io.h
Patch by Scott McNutt, 25 Apr 2004:
[karo-tx-uboot.git] / include / nios-io.h
index 08aa9f976c46e58fc84d3cb35f4f138681ba5f8c..dc7e127fe54d184b5864e9a67c25e92cbf286012 100644 (file)
@@ -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__ */