uncompress.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * linux/include/asm-arm/arch-pxa/uncompress.h
  3.  *  
  4.  * Author: Nicolas Pitre
  5.  * Copyright: (C) 2001 MontaVista Software Inc.
  6.  * 
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 2 as
  9.  * published by the Free Software Foundation.
  10.  */
  11. #define FFUART ((volatile unsigned long *)0x40100000)
  12. #define BTUART ((volatile unsigned long *)0x40200000)
  13. #define STUART ((volatile unsigned long *)0x40700000)
  14. #define UART FFUART
  15. static __inline__ void putc(char c)
  16. {
  17. while (!(UART[5] & 0x20));
  18. UART[0] = c;
  19. }
  20. /*
  21.  * This does not append a newline
  22.  */
  23. static void puts(const char *s)
  24. {
  25. while (*s) {
  26. putc(*s);
  27. if (*s == 'n')
  28. putc('r');
  29. s++;
  30. }
  31. }
  32. /*
  33.  * nothing to do
  34.  */
  35. #define arch_decomp_setup()
  36. #define arch_decomp_wdog()