reset.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*.
  2. *
  3. * ########################################################################
  4. *
  5. * This program is free software; you can distribute it and/or modify it
  6. * under the terms of the GNU General Public License (Version 2) as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. * for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  17. *
  18. * ########################################################################
  19. *
  20. * Reset the PNX8550 board.
  21. *
  22. */
  23. #include <asm/reboot.h>
  24. #include <glb.h>
  25. void pnx8550_machine_restart(char *command)
  26. {
  27. char head[] = "************* Machine restart *************";
  28. char foot[] = "*******************************************";
  29. printk("\n\n");
  30. printk("%s\n", head);
  31. if (command != NULL)
  32. printk("* %s\n", command);
  33. printk("%s\n", foot);
  34. PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;
  35. }
  36. void pnx8550_machine_halt(void)
  37. {
  38. printk("*** Machine halt. (Not implemented) ***\n");
  39. }
  40. void pnx8550_machine_power_off(void)
  41. {
  42. printk("*** Machine power off. (Not implemented) ***\n");
  43. }