From owner-p4-projects@FreeBSD.ORG Wed Oct 25 21:01:44 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7308416A4A7; Wed, 25 Oct 2006 21:01:44 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E5F116A407 for ; Wed, 25 Oct 2006 21:01:44 +0000 (UTC) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7749A43DAE for ; Wed, 25 Oct 2006 21:01:25 +0000 (GMT) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9PL1PWc082376 for ; Wed, 25 Oct 2006 21:01:25 GMT (envelope-from cognet@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9PL1PBm082372 for perforce@freebsd.org; Wed, 25 Oct 2006 21:01:25 GMT (envelope-from cognet@freebsd.org) Date: Wed, 25 Oct 2006 21:01:25 GMT Message-Id: <200610252101.k9PL1PBm082372@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cognet@freebsd.org using -f From: Olivier Houchard To: Perforce Change Reviews Cc: Subject: PERFORCE change 108434 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 21:01:44 -0000 http://perforce.freebsd.org/chv.cgi?CH=108434 Change 108434 by cognet@cognet on 2006/10/25 21:01:10 Code to handle multiple interrupts allocation. Affected files ... .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425.c#12 edit Differences ... ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425.c#12 (text+ko) ==== @@ -314,6 +314,7 @@ struct resource *ires, int flags, driver_intr_t *intr, void *arg, void **cookiep) { + int i; if (flags & INTR_TYPE_TTY) { /* XXX: wrong. */ @@ -321,10 +322,12 @@ rman_set_start(ires, IXP425_INT_UART0); else rman_set_start(ires, IXP425_INT_UART1); + rman_set_end(ires, rman_get_start(ires)); } BUS_SETUP_INTR(device_get_parent(dev), child, ires, flags, intr, arg, cookiep); - intr_enabled |= 1 << rman_get_start(ires); + for (i = rman_get_start(ires); i <= rman_get_end(ires); i++) + intr_enabled |= 1 << i; ixp425_set_intrmask(); return (0);