/* $Id: sa1111_intr.h,v 1.1 2008/03/05 11:19:01 nbrk Exp $ */ #ifndef SA11X0_SA1111_INTR_H #define SA11X0_SA1111_INTR_H #include /* XXX unneeded here? */ #include struct sacic_intrhandler { int ih_xintr; int ih_level; /* IST_EDGE_RISING, IST_EDGE_FALLING but not both */ int (*ih_func)(void *); void *ih_arg; char *ih_name; }; struct sacic_softc { struct device sc_dev; bus_space_tag_t sc_bust; bus_space_handle_t sc_bush; void *sc_hostih; /* interrupt handler on host INTC */ struct sacic_intrhandler *sc_handlers[SACCIC_LEN]; }; void *sa11x1_intr_establish(int irq, int level, int (*func)(void *), void *arg, char *name); void sa11x1_intr_disestablish(void *cookie); #ifdef NOTYET void sa11x1_init_interrupt_masks(void); #endif #endif /* !SA11X0_SA1111_INTR_H */