Changes in uspace/drv/uhci-hcd/iface.c [a7e2f0d:a9f91cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
ra7e2f0d ra9f91cd 40 40 41 41 #include "iface.h" 42 #include "uhci .h"42 #include "uhci_hc.h" 43 43 #include "utils/device_keeper.h" 44 44 … … 53 53 { 54 54 assert(fun); 55 uhci_ t *hc = fun_to_uhci(fun);55 uhci_hc_t *hc = fun_to_uhci_hc(fun); 56 56 assert(hc); 57 57 usb_log_debug("Default address request with speed %d.\n", speed); … … 68 68 { 69 69 assert(fun); 70 uhci_ t *hc = fun_to_uhci(fun);70 uhci_hc_t *hc = fun_to_uhci_hc(fun); 71 71 assert(hc); 72 72 usb_log_debug("Default address release.\n"); … … 86 86 { 87 87 assert(fun); 88 uhci_ t *hc = fun_to_uhci(fun);88 uhci_hc_t *hc = fun_to_uhci_hc(fun); 89 89 assert(hc); 90 90 assert(address); … … 109 109 { 110 110 assert(fun); 111 uhci_ t *hc = fun_to_uhci(fun);111 uhci_hc_t *hc = fun_to_uhci_hc(fun); 112 112 assert(hc); 113 113 usb_log_debug("Address bind %d-%d.\n", address, handle); … … 125 125 { 126 126 assert(fun); 127 uhci_ t *hc = fun_to_uhci(fun);127 uhci_hc_t *hc = fun_to_uhci_hc(fun); 128 128 assert(hc); 129 129 usb_log_debug("Address release %d.\n", address); … … 148 148 { 149 149 assert(fun); 150 uhci_ t *hc = fun_to_uhci(fun);150 uhci_hc_t *hc = fun_to_uhci_hc(fun); 151 151 assert(hc); 152 152 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); … … 180 180 { 181 181 assert(fun); 182 uhci_ t *hc = fun_to_uhci(fun);182 uhci_hc_t *hc = fun_to_uhci_hc(fun); 183 183 assert(hc); 184 184 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); … … 211 211 { 212 212 assert(fun); 213 uhci_ t *hc = fun_to_uhci(fun);213 uhci_hc_t *hc = fun_to_uhci_hc(fun); 214 214 assert(hc); 215 215 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); … … 243 243 { 244 244 assert(fun); 245 uhci_ t *hc = fun_to_uhci(fun);245 uhci_hc_t *hc = fun_to_uhci_hc(fun); 246 246 assert(hc); 247 247 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); … … 277 277 { 278 278 assert(fun); 279 uhci_ t *hc = fun_to_uhci(fun);280 assert(hc); 281 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 282 usb_log_debug("Control WRITE %d:%d %zu(%zu).\n",283 target.address, target.endpoint, size, max_packet_size);279 uhci_hc_t *hc = fun_to_uhci_hc(fun); 280 assert(hc); 281 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 282 usb_log_debug("Control WRITE (%d) %d:%d %zu(%zu).\n", 283 speed, target.address, target.endpoint, size, max_packet_size); 284 284 285 285 if (setup_size != 8) … … 315 315 { 316 316 assert(fun); 317 uhci_ t *hc = fun_to_uhci(fun);318 assert(hc); 319 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 320 321 usb_log_debug("Control READ %d:%d %zu(%zu).\n",322 target.address, target.endpoint, size, max_packet_size);317 uhci_hc_t *hc = fun_to_uhci_hc(fun); 318 assert(hc); 319 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); 320 321 usb_log_debug("Control READ(%d) %d:%d %zu(%zu).\n", 322 speed, target.address, target.endpoint, size, max_packet_size); 323 323 batch_t *batch = batch_get(fun, target, USB_TRANSFER_CONTROL, 324 324 max_packet_size, speed, data, size, setup_data, setup_size, callback, … … 330 330 } 331 331 /*----------------------------------------------------------------------------*/ 332 usbhc_iface_t uhci_ iface = {332 usbhc_iface_t uhci_hc_iface = { 333 333 .reserve_default_address = reserve_default_address, 334 334 .release_default_address = release_default_address,
Note:
See TracChangeset
for help on using the changeset viewer.