Changeset c6f82e5 in mainline for uspace/drv/bus/usb/ohci
- Timestamp:
- 2018-01-19T20:56:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ec7b7e
- Parents:
- 69b2dfee
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 4 edited
-
hc.c (modified) (2 diffs)
-
hw_struct/endpoint_descriptor.c (modified) (1 diff)
-
ohci_bus.c (modified) (2 diffs)
-
ohci_bus.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r69b2dfee rc6f82e5 45 45 46 46 #include <usb/debug.h> 47 #include <usb/host/utility.h> 47 48 #include <usb/usb.h> 48 49 … … 377 378 list_remove(current); 378 379 endpoint_del_ref(&ep->base); 380 hc_reset_toggles(&batch->base, &ohci_ep_toggle_reset); 379 381 usb_transfer_batch_finish(&batch->base); 380 382 } -
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
r69b2dfee rc6f82e5 100 100 OHCI_MEM32_WR(instance->td_head, pa & ED_TDHEAD_PTR_MASK); 101 101 OHCI_MEM32_WR(instance->td_tail, pa & ED_TDTAIL_PTR_MASK); 102 103 /* Set toggle bit */104 if (ep->toggle)105 OHCI_MEM32_SET(instance->td_head, ED_TDHEAD_TOGGLE_CARRY);106 107 102 } 108 103 /** -
uspace/drv/bus/usb/ohci/ohci_bus.c
r69b2dfee rc6f82e5 43 43 #include "hc.h" 44 44 45 /** Callback to reset toggle on ED. 45 /** 46 * Callback to reset toggle on ED. 46 47 * 47 48 * @param[in] hcd_ep hcd endpoint structure 48 49 * @param[in] toggle new value of toggle bit 49 50 */ 50 staticvoid ohci_ep_toggle_reset(endpoint_t *ep)51 void ohci_ep_toggle_reset(endpoint_t *ep) 51 52 { 52 53 ohci_endpoint_t *instance = ohci_endpoint_get(ep); 53 54 assert(instance); 54 55 assert(instance->ed); 55 ep->toggle = 0;56 56 ed_toggle_set(instance->ed, 0); 57 57 } … … 179 179 .endpoint_unregister = ohci_unregister_ep, 180 180 .endpoint_count_bw = bandwidth_count_usb11, 181 .endpoint_toggle_reset = ohci_ep_toggle_reset, 181 182 182 .batch_create = ohci_create_batch, 183 183 .batch_destroy = ohci_destroy_batch, -
uspace/drv/bus/usb/ohci/ohci_bus.h
r69b2dfee rc6f82e5 65 65 66 66 int ohci_bus_init(ohci_bus_t *, hc_t *); 67 void ohci_ep_toggle_reset(endpoint_t *); 67 68 68 69 /** Get and convert assigned ohci_endpoint_t structure
Note:
See TracChangeset
for help on using the changeset viewer.
