home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / arm / mach-pxa / include / mach / uncompress.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  882 b   |  46 lines

  1. /*
  2.  * arch/arm/mach-pxa/include/mach/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.  
  12. #include <linux/serial_reg.h>
  13. #include <mach/pxa-regs.h>
  14. #include <asm/mach-types.h>
  15.  
  16. #define __REG(x)       ((volatile unsigned long *)x)
  17.  
  18. static volatile unsigned long *UART = FFUART;
  19.  
  20. static inline void putc(char c)
  21. {
  22.     if (!(UART[UART_IER] & IER_UUE))
  23.         return;
  24.     while (!(UART[UART_LSR] & LSR_TDRQ))
  25.         barrier();
  26.     UART[UART_TX] = c;
  27. }
  28.  
  29. /*
  30.  * This does not append a newline
  31.  */
  32. static inline void flush(void)
  33. {
  34. }
  35.  
  36. static inline void arch_decomp_setup(void)
  37. {
  38.     if (machine_is_littleton())
  39.         UART = STUART;
  40. }
  41.  
  42. /*
  43.  * nothing to do
  44.  */
  45. #define arch_decomp_wdog()
  46.