Changeset 5a6cc679 in mainline for uspace/drv/bus/usb/ehci/hc.c
- Timestamp:
- 2018-01-31T02:21:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hc.c
r132ab5d1 r5a6cc679 89 89 }; 90 90 91 static int hc_init_memory(hc_t *instance);91 static errno_t hc_init_memory(hc_t *instance); 92 92 93 93 /** Generate IRQ code. … … 99 99 * @return Error code. 100 100 */ 101 int hc_gen_irq_code(irq_code_t *code, hc_device_t *hcd, const hw_res_list_parsed_t *hw_res, int *irq)101 errno_t hc_gen_irq_code(irq_code_t *code, hc_device_t *hcd, const hw_res_list_parsed_t *hw_res, int *irq) 102 102 { 103 103 assert(code); … … 151 151 * @return Error code 152 152 */ 153 int hc_add(hc_device_t *hcd, const hw_res_list_parsed_t *hw_res)153 errno_t hc_add(hc_device_t *hcd, const hw_res_list_parsed_t *hw_res) 154 154 { 155 155 hc_t *instance = hcd_to_hc(hcd); … … 160 160 return EINVAL; 161 161 162 int ret = pio_enable_range(&hw_res->mem_ranges.ranges[0],162 errno_t ret = pio_enable_range(&hw_res->mem_ranges.ranges[0], 163 163 (void **)&instance->caps); 164 164 if (ret != EOK) { … … 265 265 } 266 266 267 int ehci_hc_status(bus_t *bus_base, uint32_t *status)267 errno_t ehci_hc_status(bus_t *bus_base, uint32_t *status) 268 268 { 269 269 assert(bus_base); … … 289 289 * @return Error code. 290 290 */ 291 int ehci_hc_schedule(usb_transfer_batch_t *batch)291 errno_t ehci_hc_schedule(usb_transfer_batch_t *batch) 292 292 { 293 293 assert(batch); … … 477 477 * @return Error code. 478 478 */ 479 int hc_init_memory(hc_t *instance)479 errno_t hc_init_memory(hc_t *instance) 480 480 { 481 481 assert(instance); 482 482 usb_log_debug2("HC(%p): Initializing Async list(%p).", instance, 483 483 &instance->async_list); 484 int ret = endpoint_list_init(&instance->async_list, "ASYNC");484 errno_t ret = endpoint_list_init(&instance->async_list, "ASYNC"); 485 485 if (ret != EOK) { 486 486 usb_log_error("HC(%p): Failed to setup ASYNC list: %s",
Note:
See TracChangeset
for help on using the changeset viewer.