Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/intr_machdep.c
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | #endif | ||||
if (iscan != NULL || i->vector == -1) { | if (iscan != NULL || i->vector == -1) { | ||||
free(i, M_INTR); | free(i, M_INTR); | ||||
i = iscan; | i = iscan; | ||||
} | } | ||||
return (i); | return (i); | ||||
} | } | ||||
interrupt_t * | |||||
intrtab_lookup(u_int intr) | |||||
{ | |||||
struct powerpc_intr *i; | |||||
int vector; | |||||
for (vector = 0; vector < nvectors; vector++) { | |||||
i = powerpc_intrs[vector]; | |||||
if (i != NULL && i->irq == intr) | |||||
return (i); | |||||
} | |||||
return (NULL); | |||||
} | |||||
struct intr_event * | |||||
intr2event(interrupt_t *intr) | |||||
{ | |||||
if (intr == NULL) | |||||
return (NULL); | |||||
return (intr->event); | |||||
} | |||||
static int | static int | ||||
powerpc_map_irq(struct powerpc_intr *i) | powerpc_map_irq(struct powerpc_intr *i) | ||||
{ | { | ||||
struct pic *p; | struct pic *p; | ||||
u_int cnt; | u_int cnt; | ||||
int idx; | int idx; | ||||
for (idx = 0; idx < npics; idx++) { | for (idx = 0; idx < npics; idx++) { | ||||
▲ Show 20 Lines • Show All 456 Lines • Show Last 20 Lines |