Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/intr_machdep.c
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | if (isrc == NULL) | ||||
return (EINVAL); | return (EINVAL); | ||||
error = intr_event_describe_handler(isrc->is_event, ih, descr); | error = intr_event_describe_handler(isrc->is_event, ih, descr); | ||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
intrcnt_updatename(isrc); | intrcnt_updatename(isrc); | ||||
return (0); | return (0); | ||||
} | } | ||||
void | |||||
intr_reprogram(void) | |||||
{ | |||||
struct intsrc *is; | |||||
int v; | |||||
mtx_lock(&intr_table_lock); | |||||
for (v = 0; v < NUM_IO_INTS; v++) { | |||||
is = interrupt_sources[v]; | |||||
if (is == NULL) | |||||
continue; | |||||
if (is->is_pic->pic_reprogram_pin != NULL) | |||||
is->is_pic->pic_reprogram_pin(is); | |||||
} | |||||
mtx_unlock(&intr_table_lock); | |||||
} | |||||
#ifdef DDB | #ifdef DDB | ||||
/* | /* | ||||
* Dump data about interrupt handlers | * Dump data about interrupt handlers | ||||
*/ | */ | ||||
DB_SHOW_COMMAND(irqs, db_show_irqs) | DB_SHOW_COMMAND(irqs, db_show_irqs) | ||||
{ | { | ||||
struct intsrc **isrc; | struct intsrc **isrc; | ||||
int i, verbose; | int i, verbose; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |