Revert "Fix very high interrupt rate for IRQ8 (rtc) unless pnpacpi=off"
[pv_ops_mirror.git] / arch / x86 / mach-visws / reboot.c
blob99332abfad42a7f5e656b653adeefae1f85ba8ed
1 #include <linux/module.h>
2 #include <linux/smp.h>
3 #include <linux/delay.h>
5 #include <asm/io.h>
6 #include "piix4.h"
8 void (*pm_power_off)(void);
9 EXPORT_SYMBOL(pm_power_off);
11 void machine_shutdown(void)
13 #ifdef CONFIG_SMP
14 smp_send_stop();
15 #endif
18 void machine_emergency_restart(void)
21 * Visual Workstations restart after this
22 * register is poked on the PIIX4
24 outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT);
27 void machine_restart(char * __unused)
29 machine_shutdown();
30 machine_emergency_restart();
33 void machine_power_off(void)
35 unsigned short pm_status;
36 extern unsigned int pci_bus0;
38 while ((pm_status = inw(PMSTS_PORT)) & 0x100)
39 outw(pm_status, PMSTS_PORT);
41 outw(PM_SUSPEND_ENABLE, PMCNTRL_PORT);
43 mdelay(10);
45 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \
46 (0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3))
48 outl(PCI_CONF1_ADDRESS(pci_bus0, SPECIAL_DEV, SPECIAL_REG), 0xCF8);
49 outl(PIIX_SPECIAL_STOP, 0xCFC);
52 void machine_halt(void)