Date: Mon, 26 Jun 2006 10:00:01 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100042 for review Message-ID: <200606261000.k5QA01JV049305@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100042 Change 100042 by piso@piso_newluxor on 2006/06/26 09:59:11 Add a filter parameter for nexus_setup_intr() and arm_setup_irqhandler(). Affected files ... .. //depot/projects/soc2006/intr_filter/arm/arm/intr.c#3 edit .. //depot/projects/soc2006/intr_filter/arm/arm/nexus.c#2 edit .. //depot/projects/soc2006/intr_filter/arm/include/intr.h#2 edit Differences ... ==== //depot/projects/soc2006/intr_filter/arm/arm/intr.c#3 (text+ko) ==== @@ -58,7 +58,7 @@ void arm_handler_execute(struct trapframe *, int); void -arm_setup_irqhandler(const char *name, void (*hand)(void*), void *arg, +arm_setup_irqhandler(const char *name, driver_filter_t *filter, void (*hand)(void*), void *arg, int irq, int flags, void **cookiep) { struct intr_event *event; @@ -82,7 +82,7 @@ intrcnt_index++; } - intr_event_add_handler(event, name, hand, arg, + intr_event_add_handler(event, name, filter, hand, arg, intr_priority(flags), flags, cookiep); } ==== //depot/projects/soc2006/intr_filter/arm/arm/nexus.c#2 (text+ko) ==== @@ -81,7 +81,8 @@ struct resource *); static int nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags, - driver_intr_t *intr, void *arg, void **cookiep); + driver_filter_t *filter, driver_intr_t *intr, void *arg, + void **cookiep); static int nexus_teardown_intr(device_t, device_t, struct resource *, void *); @@ -125,10 +126,10 @@ static int nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags, - driver_intr_t *intr, void *arg, void **cookiep) + driver_filter_t *filter, driver_intr_t *intr, void *arg, void **cookiep) { arm_setup_irqhandler(device_get_nameunit(child), - intr, arg, rman_get_start(res), flags, cookiep); + filter, intr, arg, rman_get_start(res), flags, cookiep); return (0); } ==== //depot/projects/soc2006/intr_filter/arm/include/intr.h#2 (text+ko) ==== @@ -50,7 +50,7 @@ int arm_get_next_irq(void); void arm_mask_irq(uintptr_t); void arm_unmask_irq(uintptr_t); -void arm_setup_irqhandler(const char *, void (*)(void*), void *, int, int, - void **); +void arm_setup_irqhandler(const char *, driver_filter_t *, void (*)(void*), + void *, int, int, void **); int arm_remove_irqhandler(void *); #endif /* _MACHINE_INTR_H */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606261000.k5QA01JV049305>