reset.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 <linux/slab.h>
  24. #include <asm/reboot.h>
  25. #include <glb.h>
  26. void pnx8550_machine_restart(char *command)
  27. {
  28. char head[] = "************* Machine restart *************";
  29. char foot[] = "*******************************************";
  30. printk("\n\n");
  31. printk("%s\n", head);
  32. if (command != NULL)
  33. printk("* %s\n", command);
  34. printk("%s\n", foot);
  35. PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;
  36. }
  37. void pnx8550_machine_halt(void)
  38. {
  39. printk("*** Machine halt. (Not implemented) ***\n");
  40. }
  41. void pnx8550_machine_power_off(void)
  42. {
  43. printk("*** Machine power off. (Not implemented) ***\n");
  44. }