1 #include <linux/module.h>
3 #include <linux/delay.h>
8 void (*pm_power_off)(void);
9 EXPORT_SYMBOL(pm_power_off);
11 void machine_shutdown(void)
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)
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);
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)