Changes in uspace/drv/uhci-hcd/uhci.c [e247d83:2df648c2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
re247d83 r2df648c2 61 61 } uhci_t; 62 62 63 static inline uhci_t * dev_to_uhci( ddf_dev_t *dev)63 static inline uhci_t * dev_to_uhci(const ddf_dev_t *dev) 64 64 { 65 65 assert(dev); … … 77 77 { 78 78 assert(dev); 79 uhci_t *uhci = dev->driver_data; 80 assert(uhci); 79 uhci_t *uhci = dev_to_uhci(dev); 81 80 hc_t *hc = &uhci->hc; 82 uint16_t status = IPC_GET_ARG1(*call);81 const uint16_t status = IPC_GET_ARG1(*call); 83 82 assert(hc); 84 83 hc_interrupt(hc, status); 85 84 } 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 }; 86 90 /*----------------------------------------------------------------------------*/ 87 91 /** Get address of the device identified by handle. … … 115 119 * @return Error code. 116 120 */ 117 static int usb_iface_get_hc_handle( 118 ddf_fun_t *fun, devman_handle_t *handle) 121 static int usb_iface_get_hc_handle(ddf_fun_t *fun, devman_handle_t *handle) 119 122 { 120 123 assert(fun); … … 131 134 .get_hc_handle = usb_iface_get_hc_handle, 132 135 .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 */138 136 }; 139 137 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.