uncompress.h 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * linux/include/asm-arm/arch-ebsa110/uncompress.h
  3. *
  4. * Copyright (C) 1996,1997,1998 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 <linux/serial_reg.h>
  11. #define SERIAL_BASE ((unsigned char *)0xf0000be0)
  12. /*
  13. * This does not append a newline
  14. */
  15. static inline void putc(int c)
  16. {
  17. unsigned char v, *base = SERIAL_BASE;
  18. do {
  19. v = base[UART_LSR << 2];
  20. barrier();
  21. } while (!(v & UART_LSR_THRE));
  22. base[UART_TX << 2] = c;
  23. }
  24. static inline void flush(void)
  25. {
  26. unsigned char v, *base = SERIAL_BASE;
  27. do {
  28. v = base[UART_LSR << 2];
  29. barrier();
  30. } while ((v & (UART_LSR_TEMT|UART_LSR_THRE)) !=
  31. (UART_LSR_TEMT|UART_LSR_THRE));
  32. }
  33. /*
  34. * nothing to do
  35. */
  36. #define arch_decomp_setup()
  37. #define arch_decomp_wdog()