Changeset 8850690 in mainline
- Timestamp:
- 2011-03-13T16:18:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9351353
- Parents:
- 6143ce3
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 4 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/Makefile
r6143ce3 r8850690 35 35 iface.c \ 36 36 main.c \ 37 root_hub.c \38 37 transfer_list.c \ 39 uhci.c \ 38 uhci_hc.c \ 39 uhci_rh.c \ 40 40 uhci_struct/transfer_descriptor.c \ 41 41 utils/device_keeper.c \ -
uspace/drv/uhci-hcd/batch.c
r6143ce3 r8850690 40 40 #include "batch.h" 41 41 #include "transfer_list.h" 42 #include "uhci .h"42 #include "uhci_hc.h" 43 43 #include "utils/malloc32.h" 44 44 … … 450 450 { 451 451 assert(instance); 452 uhci_ t *hc = fun_to_uhci(instance->fun);452 uhci_hc_t *hc = fun_to_uhci(instance->fun); 453 453 assert(hc); 454 454 return uhci_schedule(hc, instance); -
uspace/drv/uhci-hcd/iface.c
r6143ce3 r8850690 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(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(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(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(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(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(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(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(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(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);279 uhci_hc_t *hc = fun_to_uhci(fun); 280 280 assert(hc); 281 281 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); … … 315 315 { 316 316 assert(fun); 317 uhci_ t *hc = fun_to_uhci(fun);317 uhci_hc_t *hc = fun_to_uhci(fun); 318 318 assert(hc); 319 319 usb_speed_t speed = device_keeper_speed(&hc->device_manager, target.address); -
uspace/drv/uhci-hcd/main.c
r6143ce3 r8850690 44 44 #include "iface.h" 45 45 #include "pci.h" 46 #include " root_hub.h"47 #include "uhci .h"46 #include "uhci_hc.h" 47 #include "uhci_rh.h" 48 48 49 49 #define NAME "uhci-hcd" … … 69 69 { 70 70 assert(dev); 71 uhci_ t *hc = dev_to_uhci(dev);71 uhci_hc_t *hc = dev_to_uhci(dev); 72 72 uint16_t status = IPC_GET_ARG1(*call); 73 73 assert(hc); … … 86 86 { 87 87 assert(device); 88 uhci_ t *hcd = NULL;88 uhci_hc_t *hcd = NULL; 89 89 #define CHECK_RET_FREE_HC_RETURN(ret, message...) \ 90 90 if (ret != EOK) { \ … … 121 121 #endif 122 122 123 hcd = malloc(sizeof(uhci_ t));123 hcd = malloc(sizeof(uhci_hc_t)); 124 124 ret = (hcd != NULL) ? EOK : ENOMEM; 125 125 CHECK_RET_FREE_HC_RETURN(ret,
Note:
See TracChangeset
for help on using the changeset viewer.