hpsim_setup.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/console.h>
  9. #include <linux/init.h>
  10. #include <linux/kdev_t.h>
  11. #include <linux/kernel.h>
  12. #include <linux/major.h>
  13. #include <linux/param.h>
  14. #include <linux/root_dev.h>
  15. #include <linux/string.h>
  16. #include <linux/types.h>
  17. #include <asm/delay.h>
  18. #include <asm/irq.h>
  19. #include <asm/pal.h>
  20. #include <asm/machvec.h>
  21. #include <asm/pgtable.h>
  22. #include <asm/sal.h>
  23. #include "hpsim_ssc.h"
  24. void
  25. ia64_ssc_connect_irq (long intr, long irq)
  26. {
  27. ia64_ssc(intr, irq, 0, 0, SSC_CONNECT_INTERRUPT);
  28. }
  29. void
  30. ia64_ctl_trace (long on)
  31. {
  32. ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
  33. }
  34. void __init
  35. hpsim_setup (char **cmdline_p)
  36. {
  37. ROOT_DEV = Root_SDA1; /* default to first SCSI drive */
  38. #ifdef CONFIG_HP_SIMSERIAL_CONSOLE
  39. {
  40. extern struct console hpsim_cons;
  41. if (ia64_platform_is("hpsim"))
  42. register_console(&hpsim_cons);
  43. }
  44. #endif
  45. }