Changeset a5b3de6 in mainline for uspace/drv/bus/usb/ohci
- Timestamp:
- 2017-10-25T11:55:15Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b35478
- Parents:
- c3d926f3
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
rc3d926f3 ra5b3de6 287 287 288 288 /* Check for root hub communication */ 289 if (batch-> ep->target.address == ohci_rh_get_address(&instance->rh)) {289 if (batch->target.address == ohci_rh_get_address(&instance->rh)) { 290 290 usb_log_debug("OHCI root hub request.\n"); 291 291 return ohci_rh_schedule(&instance->rh, batch); -
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
rc3d926f3 ra5b3de6 40 40 #include <usb/usb.h> 41 41 #include <usb/host/utils/malloc32.h> 42 #include <usb/host/endpoint.h> 43 #include <usb/host/bus.h> 42 44 43 45 #include "mem_access.h" … … 79 81 /* Status: address, endpoint nr, direction mask and max packet size. */ 80 82 OHCI_MEM32_WR(instance->status, 81 ((ep-> target.address & ED_STATUS_FA_MASK) << ED_STATUS_FA_SHIFT)82 | ((ep-> target.endpoint & ED_STATUS_EN_MASK) << ED_STATUS_EN_SHIFT)83 ((ep->device->address & ED_STATUS_FA_MASK) << ED_STATUS_FA_SHIFT) 84 | ((ep->endpoint & ED_STATUS_EN_MASK) << ED_STATUS_EN_SHIFT) 83 85 | ((dir[ep->direction] & ED_STATUS_D_MASK) << ED_STATUS_D_SHIFT) 84 86 | ((ep->max_packet_size & ED_STATUS_MPS_MASK) -
uspace/drv/bus/usb/ohci/ohci_rh.c
rc3d926f3 ra5b3de6 178 178 assert(instance); 179 179 assert(batch); 180 const usb_target_t target = batch->ep->target; 181 batch->error = virthub_base_request(&instance->base, target, 180 batch->error = virthub_base_request(&instance->base, batch->target, 182 181 batch->dir, &batch->setup.packet, 183 182 batch->buffer, batch->buffer_size, &batch->transfered_size); … … 207 206 instance->unfinished_interrupt_transfer = NULL; 208 207 if (batch) { 209 const usb_target_t target = batch->ep->target; 210 batch->error = virthub_base_request(&instance->base, target, 208 batch->error = virthub_base_request(&instance->base, batch->target, 211 209 batch->dir, &batch->setup.packet, 212 210 batch->buffer, batch->buffer_size, &batch->transfered_size);
Note:
See TracChangeset
for help on using the changeset viewer.