PERFORCE change 131190 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Dec 18 17:30:02 PST 2007


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

Change 131190 by hselasky at hselasky_laptop001 on 2007/12/19 01:29:21

	
	This commit is related to USB Device Side support.
	
	Bring in the AT91 probe, attach and detach routines.
	
	A small fix to at91.c and ohci_atmelarm.c

Affected files ...

.. //depot/projects/usb/src/sys/arm/at91/at91.c#6 edit
.. //depot/projects/usb/src/sys/arm/at91/at91_udp.c#1 add
.. //depot/projects/usb/src/sys/arm/at91/ohci_atmelarm.c#15 edit

Differences ...

==== //depot/projects/usb/src/sys/arm/at91/at91.c#6 (text) ====

@@ -301,7 +301,7 @@
 	{
 		"at91_udp", 0,
 		AT91RM92_BASE + AT91RM92_UDP_BASE, AT91RM92_UDP_SIZE,
-		AT91RM92_IRQ_UDP, AT91RM92_IRQ_PIOC
+		AT91RM92_IRQ_UDP, AT91RM92_IRQ_PIOD
 	},
 	{
 		"at91_mci", 0,

==== //depot/projects/usb/src/sys/arm/at91/ohci_atmelarm.c#15 (text) ====

@@ -121,10 +121,10 @@
 	}
 #if (__FreeBSD_version >= 700031)
 	err = bus_setup_intr(dev, sc->sc_ohci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
-	    NULL, (void *)(void *)ohci_interrupt, sc, &(sc->sc_ohci.sc_intr_hdl));
+	    NULL, (void *)ohci_interrupt, sc, &(sc->sc_ohci.sc_intr_hdl));
 #else
 	err = bus_setup_intr(dev, sc->sc_ohci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
-	    (void *)(void *)ohci_interrupt, sc, &(sc->sc_ohci.sc_intr_hdl));
+	    (void *)ohci_interrupt, sc, &(sc->sc_ohci.sc_intr_hdl));
 #endif
 	if (err) {
 		sc->sc_ohci.sc_intr_hdl = NULL;


More information about the p4-projects mailing list