version 1.1, 2008/03/05 11:19:00 |
version 1.2, 2008/03/05 14:06:41 |
|
|
|
|
MALLOC(sih, struct sacic_intrhandler *, sizeof(struct sacic_intrhandler), |
MALLOC(sih, struct sacic_intrhandler *, sizeof(struct sacic_intrhandler), |
M_DEVBUF, M_NOWAIT); |
M_DEVBUF, M_NOWAIT); |
|
memset(sih, 0, sizeof(struct sacic_intrhandler)); |
sih->ih_xintr = irq; |
sih->ih_xintr = irq; |
sih->ih_level = level; |
sih->ih_level = level; |
sih->ih_func = func; |
sih->ih_func = func; |
|
|
|
|
void sa11x1_intr_disestablish(void *cookie) |
void sa11x1_intr_disestablish(void *cookie) |
{ |
{ |
/* TODO */ |
/* |
|
* Unlink interrupt handler and free its data structures. |
|
*/ |
|
struct sacic_softc *sc = sacic_sc; |
|
struct sacic_intrhandler *sih = cookie; |
|
|
|
sc->sc_handlers[sih->ih_xintr] = NULL; |
|
|
|
FREE(sih, M_DEVBUF); |
} |
} |