PERFORCE change 109684 for review

Sam Leffler sam at FreeBSD.org
Fri Nov 10 17:07:36 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109684

Change 109684 by sam at sam_ebb on 2006/11/10 17:07:02

	add missing arg setting up ata intr; now we get continuous interrupts

Affected files ...

.. //depot/projects/arm/src/sys/arm/xscale/ixp425/avila_ata.c#2 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/xscale/ixp425/avila_ata.c#2 (text+ko) ====

@@ -98,7 +98,6 @@
 	struct ata_avila_softc *sc = device_get_softc(dev);
 	struct ixp425_softc *sa = device_get_softc(device_get_parent(dev));
 
-bootverbose=1;
 	sc->sc_dev = dev;
 	/* NB: borrow from parent */
 	sc->sc_iot = sa->sc_iot;
@@ -155,8 +154,9 @@
 		panic("Unable to allocate irq %u.\n", AVILA_IDE_IRQ);
 	bus_setup_intr(dev, sc->sc_irq,
 	    INTR_TYPE_BIO | INTR_MPSAFE | INTR_ENTROPY,
-	    ata_avila_intr, NULL, &sc->sc_ih);
+	    ata_avila_intr, sc, &sc->sc_ih);
 
+bootverbose=1;
 	/* attach channel on this controller */
 	device_add_child(dev, "ata", devclass_find_free_unit(ata_devclass, 0));
 	bus_generic_attach(dev);
@@ -191,6 +191,7 @@
 {
 	struct ata_avila_softc *sc = xsc;
 
+printf("%s: cb %p arg %p\n", __func__, sc->sc_intr[0].cb, sc->sc_intr[0].arg);/*XXX*/
 	if (sc->sc_intr[0].cb != NULL)
 		sc->sc_intr[0].cb(sc->sc_intr[0].arg);
 }


More information about the p4-projects mailing list