Enable bus mastering in the attach routine. This appears to fix the

USB 2.0 cardbus cards that have been floating around.

Submitted by: Craig Boston
This commit is contained in:
Warner Losh 2003-06-12 05:29:15 +00:00
parent 295cb8611f
commit 078f2f3123
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116240
3 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,8 @@ ehci_pci_attach(device_t self)
break;
}
pci_enable_busmaster(self);
rid = PCI_CBMEM;
sc->io_res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid,
0, ~0, 1, RF_ACTIVE);

View File

@ -173,6 +173,8 @@ ohci_pci_attach(device_t self)
/* 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);

View File

@ -245,6 +245,8 @@ uhci_pci_attach(device_t self)
int rid;
int err;
pci_enable_busmaster(self);
rid = PCI_UHCI_BASE_REG;
sc->io_res = bus_alloc_resource(self, SYS_RES_IOPORT, &rid,
0, ~0, 1, RF_ACTIVE);