fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / asm-arm / arch-lh7a40x / uncompress.h
index ec8ab67..3d1ce04 100644 (file)
 #ifndef UART_R_STATUS
 # define UART_R_STATUS (0x10)
 #endif
-#define nTxRdy         (0x20)  /* Not TxReady (literally Tx FIFO full) */
+#define nTxRdy         (0x20)  /* Not TxReady (literally Tx FIFO full) */
 
        /* Access UART with physical addresses before MMU is setup */
 #define UART_STATUS (*(volatile unsigned long*) (UART2_PHYS + UART_R_STATUS))
 #define UART_DATA   (*(volatile unsigned long*) (UART2_PHYS + UART_R_DATA))
 
-static __inline__ void putc (char ch)
+static inline void putc(int ch)
 {
        while (UART_STATUS & nTxRdy)
-               ;
+               barrier();
        UART_DATA = ch;
 }
 
-static void putstr (const char* sz)
+static inline void flush(void)
 {
-       for (; *sz; ++sz) {
-               putc (*sz);
-               if (*sz == '\n')
-                       putc ('\r');
-       }
 }
 
        /* NULL functions; we don't presently need them */