danube to ifxmips transition
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / files / include / asm-mips / danube / danube_serial.h
index 7b7994751bc344a72fc83b71eeb3b24619f42d3f..87149a1731bc9ecae6be3ba9d9bef02553885c92 100644 (file)
@@ -1,12 +1,12 @@
-/* incaAscSio.h - (DANUBE) ASC UART tty driver header */
+/* incaAscSio.h - (IFXMIPS) ASC UART tty driver header */
 
-#ifndef __DANUBE_ASC_H
-#define __DANUBE_ASC_H
+#ifndef __IFXMIPS_ASC_H
+#define __IFXMIPS_ASC_H
 
 /******************************************************************************
 **
 ** FILE NAME    : serial.c
-** PROJECT      : Danube
+** PROJECT      : IFXMips
 ** MODULES      : ASC/UART
 **
 ** DATE         : 27 MAR 2006
 /* ASC input select (0 or 1) */
 #define CONSOLE_TTY    0
 
-#define DANUBEASC_TXFIFO_FL       1
-#define DANUBEASC_RXFIFO_FL       1
-#define DANUBEASC_TXFIFO_FULL     16
+#define IFXMIPSASC_TXFIFO_FL       1
+#define IFXMIPSASC_RXFIFO_FL       1
+#define IFXMIPSASC_TXFIFO_FULL     16
 
 /* interrupt lines masks for the ASC device interrupts*/
 /* change these macroses if it's necessary */
-#define DANUBEASC_IRQ_LINE_ALL        0x0000007f       /* all IRQs */
+#define IFXMIPSASC_IRQ_LINE_ALL        0x0000007f      /* all IRQs */
 
-#define DANUBEASC_IRQ_LINE_TIR            0x00000001   /* Tx Int */
-#define DANUBEASC_IRQ_LINE_TBIR           0x00000002   /* Tx Buffer Int */
-#define DANUBEASC_IRQ_LINE_RIR            0x00000004   /* Rx Int */
-#define DANUBEASC_IRQ_LINE_EIR            0x00000008   /* Error Int */
-#define DANUBEASC_IRQ_LINE_ABSTIR         0x00000010   /* Autobaud Start Int */
-#define DANUBEASC_IRQ_LINE_ABDETIP        0x00000020   /* Autobaud Detection Int */
-#define DANUBEASC_IRQ_LINE_SFCIR          0x00000040   /* Software Flow Control Int */
+#define IFXMIPSASC_IRQ_LINE_TIR            0x00000001  /* Tx Int */
+#define IFXMIPSASC_IRQ_LINE_TBIR           0x00000002  /* Tx Buffer Int */
+#define IFXMIPSASC_IRQ_LINE_RIR            0x00000004  /* Rx Int */
+#define IFXMIPSASC_IRQ_LINE_EIR            0x00000008  /* Error Int */
+#define IFXMIPSASC_IRQ_LINE_ABSTIR         0x00000010  /* Autobaud Start Int */
+#define IFXMIPSASC_IRQ_LINE_ABDETIP        0x00000020  /* Autobaud Detection Int */
+#define IFXMIPSASC_IRQ_LINE_SFCIR          0x00000040  /* Software Flow Control Int */
 
 /* interrupt controller access macros */
 #define ASC_INTERRUPTS_ENABLE(X)  \
-*((volatile unsigned int*) DANUBE_ICU_IM0_IER) |= X;
+*((volatile unsigned int*) IFXMIPS_ICU_IM0_IER) |= X;
 #define ASC_INTERRUPTS_DISABLE(X) \
-*((volatile unsigned int*) DANUBE_ICU_IM0_IER) &= ~X;
+*((volatile unsigned int*) IFXMIPS_ICU_IM0_IER) &= ~X;
 #define ASC_INTERRUPTS_CLEAR(X)   \
-*((volatile unsigned int*) DANUBE_ICU_IM0_ISR) = X;
+*((volatile unsigned int*) IFXMIPS_ICU_IM0_ISR) = X;
 
 /* CLC register's bits and bitfields */
 #define ASCCLC_DISR        0x00000001
 #define ASCFSTAT_TXFFLMASK      0x3F00
 #define ASCFSTAT_TXFFLOFF       8
 
-#endif /* __DANUBE_ASC_H */
+#endif /* __IFXMIPS_ASC_H */