Changes in uspace/drv/bus/usb/ohci/ohci.c [6561a8e:44c1a48] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/drv/bus/usb/ohci/ohci.c ¶
r6561a8e r44c1a48 42 42 43 43 #include "ohci.h" 44 #include " pci.h"44 #include "res.h" 45 45 #include "hc.h" 46 46 … … 75 75 hc_interrupt(&ohci->hc, status); 76 76 } 77 77 /*----------------------------------------------------------------------------*/ 78 78 /** Get USB address assigned to root hub. 79 79 * … … 92 92 return EOK; 93 93 } 94 94 /*----------------------------------------------------------------------------*/ 95 95 /** Gets handle of the respective hc (this device, hc function). 96 96 * … … 110 110 return EOK; 111 111 } 112 112 /*----------------------------------------------------------------------------*/ 113 113 /** Root hub USB interface */ 114 114 static usb_iface_t usb_iface = { … … 116 116 .get_my_address = rh_get_my_address, 117 117 }; 118 118 /*----------------------------------------------------------------------------*/ 119 119 /** Standard USB HC options (HC interface) */ 120 120 static ddf_dev_ops_t hc_ops = { 121 121 .interfaces[USBHC_DEV_IFACE] = &hcd_iface, 122 122 }; 123 123 /*----------------------------------------------------------------------------*/ 124 124 /** Standard USB RH options (RH interface) */ 125 125 static ddf_dev_ops_t rh_ops = { 126 126 .interfaces[USB_DEV_IFACE] = &usb_iface, 127 127 }; 128 128 /*----------------------------------------------------------------------------*/ 129 129 /** Initialize hc and rh ddf structures and their respective drivers. 130 130 * … … 180 180 int irq = 0; 181 181 182 ret = pci_get_my_registers(device, ®_base, ®_size, &irq);182 ret = get_my_registers(device, ®_base, ®_size, &irq); 183 183 CHECK_RET_DEST_FREE_RETURN(ret, 184 184 "Failed to get register memory addresses for %" PRIun ": %s.\n", … … 211 211 /* Try to enable interrupts */ 212 212 bool interrupts = false; 213 ret = pci_enable_interrupts(device);213 ret = enable_interrupts(device); 214 214 if (ret != EOK) { 215 215 usb_log_warning("Failed to enable interrupts: %s."
Note:
See TracChangeset
for help on using the changeset viewer.