PERFORCE change 115381 for review

Paolo Pisati piso at FreeBSD.org
Mon Mar 5 23:01:29 UTC 2007


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

Change 115381 by piso at piso_newluxor on 2007/03/05 23:01:11

	Restore the sos's intendation style.

Affected files ...

.. //depot/projects/soc2006/intr_filter/dev/ata/ata-pci.c#7 edit
.. //depot/projects/soc2006/intr_filter/dev/scc/scc_core.c#15 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/dev/ata/ata-pci.c#7 (text+ko) ====

@@ -339,12 +339,12 @@
 
 int
 ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, 
-    int flags, driver_filter_t *filter, driver_intr_t *function, 
-    void *argument, void **cookiep)
+		   int flags, driver_filter_t *filter, 
+		   driver_intr_t *function, void *argument, void **cookiep)
 {
     if (ata_legacy(dev)) {
-	    return BUS_SETUP_INTR(device_get_parent(dev), child, irq, 
-	               flags, filter, function, argument, cookiep);
+	return BUS_SETUP_INTR(device_get_parent(dev), child, irq, 
+			      flags, filter, function, argument, cookiep);
     }
     else {
 	struct ata_pci_controller *controller = device_get_softc(dev);

==== //depot/projects/soc2006/intr_filter/dev/scc/scc_core.c#15 (text) ====

@@ -535,8 +535,8 @@
 	if (device_get_parent(child) != dev)
 		return (EINVAL);
 
-	/* Interrupt handlers must be FAST or MPSAFE. */
-	if ((filter == NULL) && !(flags & INTR_MPSAFE))
+	/* Interrupt handlers must be FILTER or MPSAFE. */
+	if ((ihand != NULL) && !(flags & INTR_MPSAFE))
 		return (EINVAL);
 
 	sc = device_get_softc(dev);


More information about the p4-projects mailing list