console.c 581 B

123456789101112131415161718192021222324252627
  1. /*
  2. * arch/mips/dec/prom/console.c
  3. *
  4. * DECstation PROM-based early console support.
  5. *
  6. * Copyright (C) 2004 Maciej W. Rozycki
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version
  11. * 2 of the License, or (at your option) any later version.
  12. */
  13. #include <linux/console.h>
  14. #include <linux/init.h>
  15. #include <linux/kernel.h>
  16. #include <asm/dec/prom.h>
  17. void prom_putchar(char c)
  18. {
  19. char s[2];
  20. s[0] = c;
  21. s[1] = '\0';
  22. prom_printf( s);
  23. }