/arch/arm/mach-h720x/include/mach/uncompress.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase · C++ Header · 37 lines · 18 code · 9 blank · 10 comment · 2 complexity · 2e4c298cec98114a2d23f44cdc8c2dc1 MD5 · raw file

  1. /*
  2. * arch/arm/mach-h720x/include/mach/uncompress.h
  3. *
  4. * Copyright (C) 2001-2002 Jungjun Kim
  5. */
  6. #ifndef __ASM_ARCH_UNCOMPRESS_H
  7. #define __ASM_ARCH_UNCOMPRESS_H
  8. #include <mach/hardware.h>
  9. #define LSR 0x14
  10. #define TEMPTY 0x40
  11. static inline void putc(int c)
  12. {
  13. volatile unsigned char *p = (volatile unsigned char *)(IO_PHYS+0x20000);
  14. /* wait until transmit buffer is empty */
  15. while((p[LSR] & TEMPTY) == 0x0)
  16. barrier();
  17. /* write next character */
  18. *p = c;
  19. }
  20. static inline void flush(void)
  21. {
  22. }
  23. /*
  24. * nothing to do
  25. */
  26. #define arch_decomp_setup()
  27. #define arch_decomp_wdog()
  28. #endif