Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2006 21:01:25 GMT
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 108434 for review
Message-ID:  <200610252101.k9PL1PBm082372@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610252101.k9PL1PBm082372>