Changeset df6ded8 in mainline for uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
- Timestamp:
- 2018-02-28T16:37:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b20da0
- Parents:
- f5e5f73 (diff), b2dca8de (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jakub Jermar <jakub@…> (2018-02-28 16:06:42)
- git-committer:
- Jakub Jermar <jakub@…> (2018-02-28 16:37:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
rf5e5f73 rdf6ded8 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-> address & ED_STATUS_FA_MASK) << ED_STATUS_FA_SHIFT)83 ((ep->device->address & ED_STATUS_FA_MASK) << ED_STATUS_FA_SHIFT) 82 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 | ((ep->max_packet_size & ED_STATUS_MPS_MASK) 85 << ED_STATUS_MPS_SHIFT)); 86 | ((ep->max_packet_size & ED_STATUS_MPS_MASK) << ED_STATUS_MPS_SHIFT)); 86 87 87 88 /* Low speed flag */ 88 if (ep-> speed == USB_SPEED_LOW)89 if (ep->device->speed == USB_SPEED_LOW) 89 90 OHCI_MEM32_SET(instance->status, ED_STATUS_S_FLAG); 90 91 … … 98 99 OHCI_MEM32_WR(instance->td_head, pa & ED_TDHEAD_PTR_MASK); 99 100 OHCI_MEM32_WR(instance->td_tail, pa & ED_TDTAIL_PTR_MASK); 100 101 /* Set toggle bit */102 if (ep->toggle)103 OHCI_MEM32_SET(instance->td_head, ED_TDHEAD_TOGGLE_CARRY);104 105 101 } 106 102 /**
Note:
See TracChangeset
for help on using the changeset viewer.