Changes in uspace/drv/bus/usb/uhci/uhci.c [0b20937:d57122c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
r0b20937 rd57122c 41 41 42 42 #include "uhci.h" 43 44 #include "res.h" 43 #include "pci.h" 44 45 45 #include "hc.h" 46 46 #include "root_hub.h" … … 49 49 * and USB root hub */ 50 50 typedef struct uhci { 51 /** Pointer to DDF represen tation of UHCI host controller */51 /** Pointer to DDF represenation of UHCI host controller */ 52 52 ddf_fun_t *hc_fun; 53 /** Pointer to DDF represen tation of UHCI root hub */53 /** Pointer to DDF represenation of UHCI root hub */ 54 54 ddf_fun_t *rh_fun; 55 55 56 /** Internal driver's represen tation of UHCI host controller */56 /** Internal driver's represenation of UHCI host controller */ 57 57 hc_t hc; 58 /** Internal driver's represen tation of UHCI root hub */58 /** Internal driver's represenation of UHCI root hub */ 59 59 rh_t rh; 60 60 } uhci_t; … … 187 187 int irq = 0; 188 188 189 ret = get_my_registers(device, ®_base, ®_size, &irq);189 ret = pci_get_my_registers(device, ®_base, ®_size, &irq); 190 190 CHECK_RET_DEST_FREE_RETURN(ret, 191 191 "Failed to get I/O addresses for %" PRIun ": %s.\n", … … 194 194 (void *) reg_base, reg_size, irq); 195 195 196 ret = disable_legacy(device);196 ret = pci_disable_legacy(device); 197 197 CHECK_RET_DEST_FREE_RETURN(ret, 198 198 "Failed to disable legacy USB: %s.\n", str_error(ret)); … … 220 220 221 221 bool interrupts = false; 222 ret = enable_interrupts(device);222 ret = pci_enable_interrupts(device); 223 223 if (ret != EOK) { 224 224 usb_log_warning("Failed to enable interrupts: %s."
Note:
See TracChangeset
for help on using the changeset viewer.