uncompress.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/include/asm-arm/arch-nexuspci/uncompress.h
  3.  *  from linux/include/asm-arm/arch-ebsa110/uncompress.h
  4.  *
  5.  * Copyright (C) 1996,1997,1998 Russell King
  6.  * Copyright (C) 1998, 1999 Phil Blundell
  7.  */
  8. #include <asm/io.h>
  9. #define UARTBASE 0x00400000
  10. /*
  11.  * This does not append a newline
  12.  */
  13. static void puts(const char *s)
  14. {
  15.   while (*s)
  16.   {
  17.     char c = *(s++);
  18.     while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
  19.       barrier();
  20.     __raw_writeb(c, UARTBASE);
  21.     if (c == 10) {
  22.       while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
  23.         barrier();
  24.       __raw_writeb(13, UARTBASE);
  25.     }
  26.   }
  27. }
  28. /*
  29.  * nothing to do
  30.  */
  31. #define arch_decomp_setup()
  32. /*
  33.  * Stroke the watchdog so we don't get reset during decompression.
  34.  */
  35. #define arch_decomp_wdog()
  36. do {
  37. __raw_writel(1, 0xa00000);
  38. __raw_writel(0, 0xa00000);
  39. } while (0)