0001
0002 #include <linux/kernel.h>
0003 #include <linux/init.h>
0004
0005 #include <asm/setup.h>
0006 #include <asm/bios_ebda.h>
0007
0008 void __init x86_early_init_platform_quirks(void)
0009 {
0010 x86_platform.legacy.i8042 = X86_LEGACY_I8042_EXPECTED_PRESENT;
0011 x86_platform.legacy.rtc = 1;
0012 x86_platform.legacy.warm_reset = 1;
0013 x86_platform.legacy.reserve_bios_regions = 0;
0014 x86_platform.legacy.devices.pnpbios = 1;
0015
0016 switch (boot_params.hdr.hardware_subarch) {
0017 case X86_SUBARCH_PC:
0018 x86_platform.legacy.reserve_bios_regions = 1;
0019 break;
0020 case X86_SUBARCH_XEN:
0021 x86_platform.legacy.devices.pnpbios = 0;
0022 x86_platform.legacy.rtc = 0;
0023 break;
0024 case X86_SUBARCH_INTEL_MID:
0025 case X86_SUBARCH_CE4100:
0026 x86_platform.legacy.devices.pnpbios = 0;
0027 x86_platform.legacy.rtc = 0;
0028 x86_platform.legacy.i8042 = X86_LEGACY_I8042_PLATFORM_ABSENT;
0029 break;
0030 }
0031
0032 if (x86_platform.set_legacy_features)
0033 x86_platform.set_legacy_features();
0034 }
0035
0036 bool __init x86_pnpbios_disabled(void)
0037 {
0038 return x86_platform.legacy.devices.pnpbios == 0;
0039 }
0040
0041 #if defined(CONFIG_PNPBIOS)
0042 bool __init arch_pnpbios_disabled(void)
0043 {
0044 return x86_pnpbios_disabled();
0045 }
0046 #endif