hpsim_setup.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Platform dependent support for HP simulator.
  3. *
  4. * Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co
  5. * David Mosberger-Tang <davidm@hpl.hp.com>
  6. * Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
  7. */
  8. #include <linux/config.h>
  9. #include <linux/console.h>
  10. #include <linux/init.h>
  11. #include <linux/kdev_t.h>
  12. #include <linux/kernel.h>
  13. #include <linux/major.h>
  14. #include <linux/param.h>
  15. #include <linux/root_dev.h>
  16. #include <linux/string.h>
  17. #include <linux/types.h>
  18. #include <asm/delay.h>
  19. #include <asm/irq.h>
  20. #include <asm/pal.h>
  21. #include <asm/machvec.h>
  22. #include <asm/pgtable.h>
  23. #include <asm/sal.h>
  24. #include "hpsim_ssc.h"
  25. void
  26. ia64_ssc_connect_irq (long intr, long irq)
  27. {
  28. ia64_ssc(intr, irq, 0, 0, SSC_CONNECT_INTERRUPT);
  29. }
  30. void
  31. ia64_ctl_trace (long on)
  32. {
  33. ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
  34. }
  35. void __init
  36. hpsim_setup (char **cmdline_p)
  37. {
  38. ROOT_DEV = Root_SDA1; /* default to first SCSI drive */
  39. #ifdef CONFIG_HP_SIMSERIAL_CONSOLE
  40. {
  41. extern struct console hpsim_cons;
  42. if (ia64_platform_is("hpsim"))
  43. register_console(&hpsim_cons);
  44. }
  45. #endif
  46. }