Changeset 9620a54 in mainline for uspace/drv/bus/usb/xhci/endpoint.h
- Timestamp:
- 2017-10-29T10:51:59Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d33dc780
- Parents:
- 62f8025
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.h
r62f8025 r9620a54 91 91 92 92 #define XHCI_EP_FMT "(%d:%d %s)" 93 /* FIXME: "Device -1" messes up log messages, figure out a better way. */ 93 94 #define XHCI_EP_ARGS(ep) \ 94 ((ep).base.device ->address), \95 ((ep).base.device ? (ep).base.device->address : -1), \ 95 96 ((ep).base.endpoint), \ 96 97 (usb_str_transfer_type((ep).base.transfer_type)) … … 114 115 xhci_device_ctx_t *dev_ctx; 115 116 116 /** All endpoints of the device. Inactiveones are NULL */117 /** All endpoints of the device. Dropped ones are NULL */ 117 118 xhci_endpoint_t *endpoints[XHCI_EP_COUNT]; 118 119 /** Number of non-NULL endpoints. Reference count of sorts. */120 uint8_t active_endpoint_count;121 119 122 120 /** Flag indicating whether the device is USB3 (it's USB2 otherwise). */ … … 127 125 } xhci_device_t; 128 126 127 #define XHCI_DEV_FMT "(%s, slot %d)" 128 #define XHCI_DEV_ARGS(dev) ddf_fun_get_name((dev).base.fun), (dev).slot_id 129 129 130 int xhci_endpoint_init(xhci_endpoint_t *, xhci_bus_t *); 130 131 void xhci_endpoint_fini(xhci_endpoint_t *); 131 132 int xhci_endpoint_alloc_transfer_ds(xhci_endpoint_t *); 132 intxhci_endpoint_free_transfer_ds(xhci_endpoint_t *);133 void xhci_endpoint_free_transfer_ds(xhci_endpoint_t *); 133 134 134 135 int xhci_endpoint_request_streams(xhci_hc_t *, xhci_device_t *, xhci_endpoint_t *, unsigned);
Note:
See TracChangeset
for help on using the changeset viewer.