Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/isa/atpic.c
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | atpic_register_sources(struct pic *pic) | ||||
* | * | ||||
* To avoid the slave not register sources after the master | * To avoid the slave not register sources after the master | ||||
* registers its sources, register all IRQs when this function is | * registers its sources, register all IRQs when this function is | ||||
* called on the master. | * called on the master. | ||||
*/ | */ | ||||
if (ap != &atpics[MASTER]) | if (ap != &atpics[MASTER]) | ||||
return; | return; | ||||
for (i = 0; i < NUM_ISA_IRQS; i++) | for (i = 0; i < NUM_ISA_IRQS; i++) | ||||
if (intr_lookup_source(i) != NULL) | if (intrtab_lookup(i) != NULL) | ||||
return; | return; | ||||
/* Loop through all interrupt sources and add them. */ | /* Loop through all interrupt sources and add them. */ | ||||
for (i = 0, ai = atintrs; i < NUM_ISA_IRQS; i++, ai++) { | for (i = 0, ai = atintrs; i < NUM_ISA_IRQS; i++, ai++) { | ||||
if (i == ICU_SLAVEID) | if (i == ICU_SLAVEID) | ||||
continue; | continue; | ||||
intr_register_source(&ai->at_intsrc); | intr_register_source(&ai->at_intsrc); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |