From owner-svn-src-projects@FreeBSD.ORG Sun Jun 14 21:16:05 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F6C8106564A; Sun, 14 Jun 2009 21:16:05 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0EA938FC17; Sun, 14 Jun 2009 21:16:05 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5ELG471060656; Sun, 14 Jun 2009 21:16:04 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5ELG4uT060655; Sun, 14 Jun 2009 21:16:04 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200906142116.n5ELG4uT060655@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Sun, 14 Jun 2009 21:16:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194215 - projects/mips/sys/mips/idt X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 21:16:05 -0000 Author: gonzo Date: Sun Jun 14 21:16:04 2009 New Revision: 194215 URL: http://svn.freebsd.org/changeset/base/194215 Log: - Get rid of mask_fn and fix pre_filter/post_filter functions' prototypes Modified: projects/mips/sys/mips/idt/obio.c Modified: projects/mips/sys/mips/idt/obio.c ============================================================================== --- projects/mips/sys/mips/idt/obio.c Sun Jun 14 21:11:39 2009 (r194214) +++ projects/mips/sys/mips/idt/obio.c Sun Jun 14 21:16:04 2009 (r194215) @@ -76,8 +76,10 @@ static int obio_setup_intr(device_t, dev static int obio_teardown_intr(device_t, device_t, struct resource *, void *); -static void obio_mask_irq(unsigned int irq) +static void +obio_mask_irq(void *arg) { + unsigned int irq = (unsigned int)arg; int ip_bit, mask, mask_register; /* mask IRQ */ @@ -88,8 +90,10 @@ static void obio_mask_irq(unsigned int i ICU_REG_WRITE(mask_register, mask | ip_bit); } -static void obio_unmask_irq(unsigned int irq) +static void +obio_unmask_irq(void *arg) { + unsigned int irq = (unsigned int)arg; int ip_bit, mask, mask_register; /* unmask IRQ */ @@ -274,7 +278,7 @@ obio_setup_intr(device_t dev, device_t c event = sc->sc_eventstab[irq]; if (event == NULL) { error = intr_event_create(&event, (void *)irq, 0, irq, - (mask_fn)obio_mask_irq, (mask_fn)obio_unmask_irq, + obio_mask_irq, obio_unmask_irq, NULL, NULL, "obio intr%d:", irq);