mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
14d7ca5c57
Impact: Changes reboot behavior. If port CF9 seems to be safe to touch, attempt it before trying the keyboard controller. Port CF9 is not available on all chipsets (a significant but decreasing number of modern chipsets don't implement it), but port CF9 itself should in general be safe to poke (no ill effects if unimplemented) on any system which has PCI Configuration Method #1 or #2, as it falls inside the PCI configuration port range in both cases. No chipset without PCI is known to have port CF9, either, although an explicit "pci=bios" would mean we miss this and therefore don't use port CF9. An explicit "reboot=pci" can be used to force the use of port CF9. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
21 lines
381 B
C
21 lines
381 B
C
#ifndef _ASM_X86_EMERGENCY_RESTART_H
|
|
#define _ASM_X86_EMERGENCY_RESTART_H
|
|
|
|
enum reboot_type {
|
|
BOOT_TRIPLE = 't',
|
|
BOOT_KBD = 'k',
|
|
#ifdef CONFIG_X86_32
|
|
BOOT_BIOS = 'b',
|
|
#endif
|
|
BOOT_ACPI = 'a',
|
|
BOOT_EFI = 'e',
|
|
BOOT_CF9 = 'p',
|
|
BOOT_CF9_COND = 'q',
|
|
};
|
|
|
|
extern enum reboot_type reboot_type;
|
|
|
|
extern void machine_emergency_restart(void);
|
|
|
|
#endif /* _ASM_X86_EMERGENCY_RESTART_H */
|