Changeset ae3a941 in mainline for uspace/drv/bus/usb/xhci/endpoint.h
- Timestamp:
- 2018-02-26T16:51:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e773f58
- Parents:
- 3692678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.h
r3692678 rae3a941 76 76 xhci_trb_ring_t ring; 77 77 78 /** Primary stream context data array (or NULL if endpoint doesn't use streams). */ 78 /** 79 * Primary stream context data array 80 * (or NULL if endpoint doesn't use streams). 81 */ 79 82 xhci_stream_data_t *primary_stream_data_array; 80 83 … … 83 86 dma_buffer_t primary_stream_ctx_dma; 84 87 85 /** Size of the allocated primary stream data a rray (and context array). */88 /** Size of the allocated primary stream data and context array. */ 86 89 uint16_t primary_stream_data_size; 87 90 … … 89 92 uint32_t max_streams; 90 93 91 /** Maximum number of consecutive USB transactions (0-15) that should be executed per scheduling opportunity */ 94 /** 95 * Maximum number of consecutive USB transactions (0-15) that 96 * should be executed per scheduling opportunity 97 */ 92 98 uint8_t max_burst; 93 99 94 /** Maximum number of bursts within an interval that this endpoint supports */ 100 /** 101 * Maximum number of bursts within an interval that 102 * this endpoint supports 103 */ 95 104 uint8_t mult; 96 105 97 /** Scheduling interval for periodic endpoints, as a number of 125us units. (0 - 2^16) */ 106 /** 107 * Scheduling interval for periodic endpoints, 108 * as a number of 125us units. (0 - 2^16) 109 */ 98 110 uint32_t interval; 99 111 100 /** This field is a valid pointer for (and only for) isochronous transfers. */ 112 /** 113 * This field is a valid pointer for (and only for) isochronous 114 * endpoints. 115 */ 101 116 xhci_isoch_t isoch [0]; 102 117 } xhci_endpoint_t; … … 111 126 extern int xhci_endpoint_type(xhci_endpoint_t *ep); 112 127 113 extern endpoint_t *xhci_endpoint_create(device_t *, const usb_endpoint_descriptors_t *); 128 extern endpoint_t *xhci_endpoint_create(device_t *, 129 const usb_endpoint_descriptors_t *); 114 130 extern errno_t xhci_endpoint_register(endpoint_t *); 115 131 extern void xhci_endpoint_unregister(endpoint_t *); … … 122 138 extern errno_t xhci_endpoint_clear_halt(xhci_endpoint_t *, unsigned); 123 139 124 static inline xhci_endpoint_t * 140 static inline xhci_endpoint_t *xhci_endpoint_get(endpoint_t *ep) 125 141 { 126 142 assert(ep); … … 128 144 } 129 145 130 static inline xhci_device_t * 146 static inline xhci_device_t *xhci_ep_to_dev(xhci_endpoint_t *ep) 131 147 { 132 148 assert(ep);
Note:
See TracChangeset
for help on using the changeset viewer.