*IT WORKS* Re: CardBus USB 2.0 Controller (NEC uPD)

Craig Boston craig at xfoil.gank.org
Wed Jun 11 22:19:06 PDT 2003


Cut-and-paste of the patch since the attachment disappeared...  Probably won't 
apply cleanly because of tabs.

--- ohci_pci.c.orig     2003-06-11 22:32:42.000000000 -0500
+++ ohci_pci.c  2003-06-11 22:01:43.000000000 -0500
@@ -173,6 +173,8 @@
	/* XXX where does it say so in the spec? */
	sc->sc_bus.usbrev = USBREV_1_0;

+	pci_enable_busmaster(self);
+
	rid = PCI_CBMEM;
	sc->io_res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid,
		0, ~0, 1, RF_ACTIVE);
--- ehci_pci.c.orig     2003-06-11 22:32:36.000000000 -0500
+++ ehci_pci.c  2003-06-11 22:33:08.000000000 -0500
@@ -158,6 +158,8 @@
		break;
	}

+	pci_enable_busmaster(self);
+
	rid = PCI_CBMEM;
	sc->io_res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid,
		0, ~0, 1, RF_ACTIVE);



More information about the freebsd-current mailing list