Changeset c10daa8 in mainline for uspace/drv/bus/usb/xhci/endpoint.h
- Timestamp:
- 2017-10-13T12:32:57Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 063dfe8
- Parents:
- 366e9b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.h
r366e9b6 rc10daa8 43 43 #include <usb/host/hcd.h> 44 44 45 typedef struct xhci_device xhci_device_t; 45 46 typedef struct xhci_endpoint xhci_endpoint_t; 46 47 typedef struct xhci_bus xhci_bus_t; 48 49 #define XHCI_DEVICE_MAX_ENDPOINTS 32 47 50 48 51 enum { … … 61 64 endpoint_t base; /**< Inheritance. Keep this first. */ 62 65 66 xhci_device_t *device; 67 } xhci_endpoint_t; 68 69 typedef struct xhci_device { 70 usb_address_t address; 71 63 72 uint32_t slot_id; 64 } xhci_endpoint_t; 73 74 xhci_endpoint_t *endpoints[XHCI_DEVICE_MAX_ENDPOINTS]; 75 uint8_t active_endpoint_count; 76 } xhci_device_t; 65 77 66 78 int xhci_endpoint_init(xhci_endpoint_t *, xhci_bus_t *); 67 79 void xhci_endpoint_fini(xhci_endpoint_t *); 80 81 int xhci_device_init(xhci_device_t *, xhci_bus_t *); 82 void xhci_device_fini(xhci_device_t *); 83 84 int xhci_device_add_endpoint(xhci_device_t *, xhci_endpoint_t *); 85 int xhci_device_remove_endpoint(xhci_device_t *, xhci_endpoint_t *); 86 xhci_endpoint_t * xhci_device_get_endpoint(xhci_device_t *, usb_endpoint_t); 68 87 69 88 static inline xhci_endpoint_t * xhci_endpoint_get(endpoint_t *ep)
Note:
See TracChangeset
for help on using the changeset viewer.