linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-arm / arch-lh7a40x / uncompress.h
index 3d1ce04..ec8ab67 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(int ch)
+static __inline__ void putc (char ch)
 {
        while (UART_STATUS & nTxRdy)
-               barrier();
+               ;
        UART_DATA = ch;
 }
 
-static inline void flush(void)
+static void putstr (const char* sz)
 {
+       for (; *sz; ++sz) {
+               putc (*sz);
+               if (*sz == '\n')
+                       putc ('\r');
+       }
 }
 
        /* NULL functions; we don't presently need them */