return true;
}
-static int __init proliant_quirk(struct dmi_system_id *d)
-{
- ioemul_handle_quirk = ioemul_handle_proliant_quirk;
- return 0;
-}
-
/* This table is the set of system-specific I/O emulation hooks. */
static struct dmi_system_id __initdata ioport_quirks_tbl[] = {
/*
* 'special' SMM goodness.
*/
{
- .callback = proliant_quirk,
.ident = "HP ProLiant DL3xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant DL5xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant DL7xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant ML3xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant ML5xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant BL2xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant BL4xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
},
},
{
- .callback = proliant_quirk,
.ident = "HP ProLiant BL6xx",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
static int __init ioport_quirks_init(void)
{
- dmi_check_system(ioport_quirks_tbl);
+ if ( dmi_check_system(ioport_quirks_tbl) )
+ ioemul_handle_quirk = ioemul_handle_proliant_quirk;
+
return 0;
}
__initcall(ioport_quirks_init);
wrmsrl(MSR_FAM10H_MMIO_CONF_BASE, val);
}
-static int __init set_check_enable_amd_mmconf(struct dmi_system_id *d)
-{
- pci_probe |= PCI_CHECK_ENABLE_AMD_MMCONF;
- return 0;
-}
-
static struct dmi_system_id __initdata mmconf_dmi_table[] = {
{
- .callback = set_check_enable_amd_mmconf,
.ident = "Sun Microsystems Machine",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Sun Microsystems"),
void __init check_enable_amd_mmconf_dmi(void)
{
- dmi_check_system(mmconf_dmi_table);
+ if (dmi_check_system(mmconf_dmi_table))
+ pci_probe |= PCI_CHECK_ENABLE_AMD_MMCONF;
}