svn commit: r199091 - projects/mips/sys/dev/rmi/xlr

Randall Stewart rrs at FreeBSD.org
Mon Nov 9 16:43:51 UTC 2009


Author: rrs
Date: Mon Nov  9 16:43:50 2009
New Revision: 199091
URL: http://svn.freebsd.org/changeset/base/199091

Log:
  Cooresponding hack to pass in the irq

Modified:
  projects/mips/sys/dev/rmi/xlr/rge.c

Modified: projects/mips/sys/dev/rmi/xlr/rge.c
==============================================================================
--- projects/mips/sys/dev/rmi/xlr/rge.c	Mon Nov  9 16:43:02 2009	(r199090)
+++ projects/mips/sys/dev/rmi/xlr/rge.c	Mon Nov  9 16:43:50 2009	(r199091)
@@ -1925,7 +1925,8 @@ rge_attach(device_t dev)
 	sc->irq = gmac_conf->baseirq + priv->instance % 4;
 
 	/* Set the IRQ into the rid field */
-	rman_set_rid(&sc->rge_irq, sc->irq);
+	/* note this is a hack to pass the irq to the iodi interrupt setup routines */
+	sc->rge_irq.__r_i = (struct resource_i *)sc->irq;
 
 	ret = bus_setup_intr(dev, &sc->rge_irq, INTR_FAST | INTR_TYPE_NET | INTR_MPSAFE,
 	    NULL, rge_intr, sc, &sc->rge_intrhand);


More information about the svn-src-projects mailing list