Changes in uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c [0d4b110:acdb5bac] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
r0d4b110 racdb5bac 32 32 * @brief OHCI driver 33 33 */ 34 35 #include <assert.h>36 #include <macros.h>37 #include <mem.h>38 39 #include <usb/usb.h>40 41 #include "../utils/malloc32.h"42 #include "mem_access.h"43 44 34 #include "endpoint_descriptor.h" 45 35 … … 58 48 * @param td TD to put in the list. 59 49 * 60 * If @param ep is NULL, dummy ED is init ialized with only skip flag set.50 * If @param ep is NULL, dummy ED is initalized with only skip flag set. 61 51 */ 62 52 void ed_init(ed_t *instance, const endpoint_t *ep, const td_t *td) … … 71 61 return; 72 62 } 73 /* Non-dummy ED must have corresponding EP andTD assigned */63 /* Non-dummy ED must have TD assigned */ 74 64 assert(td); 75 assert(ep);76 assert(ep->direction < ARRAY_SIZE(dir));77 65 78 66 /* Status: address, endpoint nr, direction mask and max packet size. */ … … 89 77 90 78 /* Isochronous format flag */ 91 // TODO: We need iTD instead of TD for iso transfers92 79 if (ep->transfer_type == USB_TRANSFER_ISOCHRONOUS) 93 80 OHCI_MEM32_SET(instance->status, ED_STATUS_F_FLAG);
Note:
See TracChangeset
for help on using the changeset viewer.