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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/include/asm-arm/arch-mx1ads/uncompress.h
  3.  *
  4.  *
  5.  *
  6.  *  Copyright (C) 1999 ARM Limited
  7.  *  Copyright (C) Shane Nay (shane@minirl.com)
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  22.  */
  23. #define UA1_USR2 (*(volatile unsigned char *)0x206098)
  24. #define UA1_TXR  (*(volatile unsigned char *)0x206040)
  25. #define TXFEBIT         (14)
  26. /*
  27.  * This does not append a newline
  28.  */
  29. static void puts(const char *s)
  30. {
  31. while (*s) {
  32. while (UA1_USR2 & (1 << TXFEBIT))
  33. barrier();
  34. UA1_TXR = *s;
  35. if (*s == 'n') {
  36. while (UA1_USR2 & (1 << TXFEBIT))
  37. barrier();
  38. UA1_TXR = 'r';
  39. }
  40. s++;
  41. }
  42. while (UA1_USR2 & (1 << TXFEBIT))
  43. barrier();
  44. }
  45. /*
  46.  * nothing to do
  47.  */
  48. #define arch_decomp_setup()
  49. #define arch_decomp_wdog()