misc.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Miscellaneous ARCS PROM routines.
  7. *
  8. * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
  9. * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
  10. * Copyright (C) 1999 Silicon Graphics, Inc.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/kernel.h>
  14. #include <asm/bcache.h>
  15. #include <asm/fw/arc/types.h>
  16. #include <asm/sgialib.h>
  17. #include <asm/bootinfo.h>
  18. VOID
  19. ArcHalt(VOID)
  20. {
  21. bc_disable();
  22. local_irq_disable();
  23. ARC_CALL0(halt);
  24. never: goto never;
  25. }
  26. VOID
  27. ArcPowerDown(VOID)
  28. {
  29. bc_disable();
  30. local_irq_disable();
  31. ARC_CALL0(pdown);
  32. never: goto never;
  33. }
  34. /* XXX is this a soft reset basically? XXX */
  35. VOID
  36. ArcRestart(VOID)
  37. {
  38. bc_disable();
  39. local_irq_disable();
  40. ARC_CALL0(restart);
  41. never: goto never;
  42. }
  43. VOID
  44. ArcReboot(VOID)
  45. {
  46. bc_disable();
  47. local_irq_disable();
  48. ARC_CALL0(reboot);
  49. never: goto never;
  50. }
  51. VOID
  52. ArcEnterInteractiveMode(VOID)
  53. {
  54. bc_disable();
  55. local_irq_disable();
  56. ARC_CALL0(imode);
  57. never: goto never;
  58. }
  59. LONG
  60. ArcSaveConfiguration(VOID)
  61. {
  62. return ARC_CALL0(cfg_save);
  63. }
  64. struct linux_sysid *
  65. ArcGetSystemId(VOID)
  66. {
  67. return (struct linux_sysid *) ARC_CALL0(get_sysid);
  68. }
  69. VOID __init
  70. ArcFlushAllCaches(VOID)
  71. {
  72. ARC_CALL0(cache_flush);
  73. }
  74. DISPLAY_STATUS * __init ArcGetDisplayStatus(ULONG FileID)
  75. {
  76. return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID);
  77. }