static void es7000_enable_apic_mode(void)
{
    struct mip_reg es7000_mip_reg;
    int mip_status;

    if (!es7000_plat)
        return;

    pr_info("Enabling APIC mode.\n");
    memset(&es7000_mip_reg, 0, sizeof(struct mip_reg));
    es7000_mip_reg.off_0x00 = MIP_SW_APIC;
    es7000_mip_reg.off_0x38 = MIP_VALID;

    while ((mip_status = es7000_mip_write(&es7000_mip_reg)) != 0)
        WARN(1, "Command failed, status = %x\n", mip_status);
}
Esempio n. 2
0
void __init
es7000_sw_apic(void)
{
	if (es7000_plat) {
		int mip_status;
		struct mip_reg es7000_mip_reg;

		printk("ES7000: Enabling APIC mode.\n");
        	memset(&es7000_mip_reg, 0, sizeof(struct mip_reg));
        	es7000_mip_reg.off_0 = MIP_SW_APIC;
        	es7000_mip_reg.off_38 = (MIP_VALID);
        	while ((mip_status = es7000_mip_write(&es7000_mip_reg)) != 0)
              		printk("es7000_sw_apic: command failed, status = %x\n",
				mip_status);
		return;
	}
}