uncompress.h 671 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * linux/include/asm-arm/arch-h720x/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 <asm/arch/hardware.h>
  9. #define LSR 0x14
  10. #define TEMPTY 0x40
  11. static void putstr(const char *s)
  12. {
  13. char c;
  14. volatile unsigned char *p = (volatile unsigned char *)(IO_PHYS+0x20000);
  15. while ( (c = *s++) != '\0') {
  16. /* wait until transmit buffer is empty */
  17. while((p[LSR] & TEMPTY) == 0x0);
  18. /* write next character */
  19. *p = c;
  20. if(c == '\n') {
  21. while((p[LSR] & TEMPTY) == 0x0);
  22. *p = '\r';
  23. }
  24. }
  25. }
  26. /*
  27. * nothing to do
  28. */
  29. #define arch_decomp_setup()
  30. #define arch_decomp_wdog()
  31. #endif