Changes in / [ed0cc81:c28b3a5] in mainline
- Location:
- uspace/drv
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.c
red0cc81 rc28b3a5 343 343 { 344 344 assert(instance); 345 usb_log_debug("OHCI(%p) interrupt: %x.\n", instance, status); 345 346 if ((status & ~I_SF) == 0) /* ignore sof status */ 346 347 return; 347 usb_log_debug2("OHCI(%p) interrupt: %x.\n", instance, status);348 348 if (status & I_RHSC) 349 349 rh_interrupt(&instance->rh); -
uspace/drv/uhci-hcd/uhci.c
red0cc81 rc28b3a5 61 61 } uhci_t; 62 62 63 static inline uhci_t * dev_to_uhci( constddf_dev_t *dev)63 static inline uhci_t * dev_to_uhci(ddf_dev_t *dev) 64 64 { 65 65 assert(dev); … … 77 77 { 78 78 assert(dev); 79 uhci_t *uhci = dev_to_uhci(dev); 79 uhci_t *uhci = dev->driver_data; 80 assert(uhci); 80 81 hc_t *hc = &uhci->hc; 81 constuint16_t status = IPC_GET_ARG1(*call);82 uint16_t status = IPC_GET_ARG1(*call); 82 83 assert(hc); 83 84 hc_interrupt(hc, status); 84 85 } 85 /*----------------------------------------------------------------------------*/86 /** Operations supported by the HC driver */87 static ddf_dev_ops_t hc_ops = {88 .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */89 };90 86 /*----------------------------------------------------------------------------*/ 91 87 /** Get address of the device identified by handle. … … 119 115 * @return Error code. 120 116 */ 121 static int usb_iface_get_hc_handle(ddf_fun_t *fun, devman_handle_t *handle) 117 static int usb_iface_get_hc_handle( 118 ddf_fun_t *fun, devman_handle_t *handle) 122 119 { 123 120 assert(fun); … … 134 131 .get_hc_handle = usb_iface_get_hc_handle, 135 132 .get_address = usb_iface_get_address 133 }; 134 /*----------------------------------------------------------------------------*/ 135 /** Operations supported by the HC driver */ 136 static ddf_dev_ops_t hc_ops = { 137 .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */ 136 138 }; 137 139 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.