hpsim_setup.c 830 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <asm/hpsim.h>
  24. #include "hpsim_ssc.h"
  25. void
  26. ia64_ctl_trace (long on)
  27. {
  28. ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
  29. }
  30. void __init
  31. hpsim_setup (char **cmdline_p)
  32. {
  33. ROOT_DEV = Root_SDA1; /* default to first SCSI drive */
  34. simcons_register();
  35. }