/* Hook from generic ACPI tables.c */
static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
    unsigned long oem_addr = 0;
    int check_dsdt;
    int ret = 0;

    /* check dsdt at first to avoid clear fix_map for oem_addr */
    check_dsdt = es7000_check_dsdt();

    if (!find_unisys_acpi_oem_table(&oem_addr)) {
        if (check_dsdt) {
            ret = parse_unisys_oem((char *)oem_addr);
        } else {
            setup_unisys();
            ret = 1;
        }
        /*
         * we need to unmap it
         */
        unmap_unisys_acpi_oem_table(oem_addr);
    }

    es7000_acpi_ret = ret;

    return ret && !es7000_apic_is_cluster();
}
Exemplo n.º 2
0
/* Hook from generic ACPI tables.c */
int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
	unsigned long oem_addr;
	if (!find_unisys_acpi_oem_table(&oem_addr)) {
		if (es7000_check_dsdt())
			return parse_unisys_oem((char *)oem_addr);
		else {
			setup_unisys();
			return 1;
		}
	}
	return 0;
}