2016-04-14 07:04:34 +07:00
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
|
|
|
|
#include <asm/setup.h>
|
|
|
|
#include <asm/bios_ebda.h>
|
|
|
|
|
|
|
|
void __init x86_early_init_platform_quirks(void)
|
|
|
|
{
|
|
|
|
x86_platform.legacy.rtc = 1;
|
2016-04-14 07:04:36 +07:00
|
|
|
x86_platform.legacy.ebda_search = 0;
|
2016-04-14 07:04:41 +07:00
|
|
|
x86_platform.legacy.devices.pnpbios = 1;
|
2016-04-14 07:04:34 +07:00
|
|
|
|
|
|
|
switch (boot_params.hdr.hardware_subarch) {
|
2016-04-14 07:04:36 +07:00
|
|
|
case X86_SUBARCH_PC:
|
|
|
|
x86_platform.legacy.ebda_search = 1;
|
|
|
|
break;
|
2016-04-14 07:04:34 +07:00
|
|
|
case X86_SUBARCH_XEN:
|
|
|
|
case X86_SUBARCH_LGUEST:
|
|
|
|
case X86_SUBARCH_INTEL_MID:
|
2016-04-14 07:04:46 +07:00
|
|
|
case X86_SUBARCH_CE4100:
|
2016-04-14 07:04:45 +07:00
|
|
|
x86_platform.legacy.devices.pnpbios = 0;
|
2016-04-14 07:04:34 +07:00
|
|
|
x86_platform.legacy.rtc = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (x86_platform.set_legacy_features)
|
|
|
|
x86_platform.set_legacy_features();
|
|
|
|
}
|
2016-04-14 07:04:41 +07:00
|
|
|
|
|
|
|
#if defined(CONFIG_PNPBIOS)
|
|
|
|
bool __init arch_pnpbios_disabled(void)
|
|
|
|
{
|
|
|
|
return x86_platform.legacy.devices.pnpbios == 0;
|
|
|
|
}
|
|
|
|
#endif
|