| // SPDX-License-Identifier: GPL-2.0 |
| #include <linux/kernel.h> |
| #include <asm/bios_ebda.h> |
| void __init x86_early_init_platform_quirks(void) |
| x86_platform.legacy.i8042 = X86_LEGACY_I8042_EXPECTED_PRESENT; |
| x86_platform.legacy.rtc = 1; |
| x86_platform.legacy.reserve_bios_regions = 0; |
| x86_platform.legacy.devices.pnpbios = 1; |
| switch (boot_params.hdr.hardware_subarch) { |
| x86_platform.legacy.reserve_bios_regions = 1; |
| x86_platform.legacy.devices.pnpbios = 0; |
| x86_platform.legacy.rtc = 0; |
| case X86_SUBARCH_INTEL_MID: |
| x86_platform.legacy.devices.pnpbios = 0; |
| x86_platform.legacy.rtc = 0; |
| x86_platform.legacy.i8042 = X86_LEGACY_I8042_PLATFORM_ABSENT; |
| if (x86_platform.set_legacy_features) |
| x86_platform.set_legacy_features(); |
| #if defined(CONFIG_PNPBIOS) |
| bool __init arch_pnpbios_disabled(void) |
| return x86_platform.legacy.devices.pnpbios == 0; |