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:
parent
295cb8611f
commit
078f2f3123
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116240
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user