uncompress.h 593 B

12345678910111213141516171819202122232425262728293031323334353637
  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