|
Lines 182-187
Link Here
|
| 182 |
uhci_softc_t *sc = device_get_softc(self); |
182 |
uhci_softc_t *sc = device_get_softc(self); |
| 183 |
int rid; |
183 |
int rid; |
| 184 |
int err; |
184 |
int err; |
|
|
185 |
u_int32_t csr; |
| 185 |
|
186 |
|
| 186 |
rid = PCI_UHCI_BASE_REG; |
187 |
rid = PCI_UHCI_BASE_REG; |
| 187 |
sc->io_res = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, |
188 |
sc->io_res = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, |
|
Lines 275-280
Link Here
|
| 275 |
uhci_pci_detach(self); |
276 |
uhci_pci_detach(self); |
| 276 |
return ENXIO; |
277 |
return ENXIO; |
| 277 |
} |
278 |
} |
|
|
279 |
|
| 280 |
/* Enable the device. */ |
| 281 |
csr = pci_read_config(self, PCI_COMMAND_STATUS_REG, 4); |
| 282 |
pci_write_config(self, PCI_COMMAND_STATUS_REG, |
| 283 |
csr | PCIM_CMD_BUSMASTEREN, 4); |
| 278 |
|
284 |
|
| 279 |
/* Set the PIRQD enable bit and switch off all the others. We don't |
285 |
/* Set the PIRQD enable bit and switch off all the others. We don't |
| 280 |
* want legacy support to interfere with us |
286 |
* want legacy support to interfere with us |