uncompress.h 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * linux/include/asm-arm/arch-ebsa285/uncompress.h
  3. *
  4. * Copyright (C) 1996-1999 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <asm/mach-types.h>
  11. /*
  12. * Note! This could cause problems on the NetWinder
  13. */
  14. #define DC21285_BASE ((volatile unsigned int *)0x42000160)
  15. #define SER0_BASE ((volatile unsigned char *)0x7c0003f8)
  16. static __inline__ void putc(char c)
  17. {
  18. if (machine_is_netwinder()) {
  19. while ((SER0_BASE[5] & 0x60) != 0x60);
  20. SER0_BASE[0] = c;
  21. } else {
  22. while (DC21285_BASE[6] & 8);
  23. DC21285_BASE[0] = c;
  24. }
  25. }
  26. /*
  27. * This does not append a newline
  28. */
  29. static void putstr(const char *s)
  30. {
  31. while (*s) {
  32. putc(*s);
  33. if (*s == '\n')
  34. putc('\r');
  35. s++;
  36. }
  37. }
  38. /*
  39. * nothing to do
  40. */
  41. #define arch_decomp_setup()
  42. #define arch_decomp_wdog()