Changeset e20eaed in mainline for uspace/drv/bus/usb/ohci/ohci_endpoint.h
- Timestamp:
- 2011-08-25T13:53:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 620c710
- Parents:
- 23b0fe8
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_endpoint.h
r23b0fe8 re20eaed 38 38 #include <adt/list.h> 39 39 #include <usb/host/endpoint.h> 40 #include <usb/host/hcd.h> 40 41 41 42 #include "hw_struct/endpoint_descriptor.h" … … 43 44 44 45 /** Connector structure linking ED to to prepared TD. */ 45 typedef struct hcd_endpoint {46 typedef struct ohci_endpoint { 46 47 /** OHCI endpoint descriptor */ 47 48 ed_t *ed; … … 50 51 /** Linked list used by driver software */ 51 52 link_t link; 52 } hcd_endpoint_t; 53 /** Device using this ep */ 54 hcd_t *hcd; 55 } ohci_endpoint_t; 53 56 54 int hcd_endpoint_assign(endpoint_t *ep);57 int ohci_endpoint_assign(hcd_t *hcd, endpoint_t *ep); 55 58 56 /** Get and convert assigned hcd_endpoint_t structure59 /** Get and convert assigned ohci_endpoint_t structure 57 60 * @param[in] ep USBD endpoint structure. 58 61 * @return Pointer to assigned hcd endpoint structure 59 62 */ 60 static inline hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep)63 static inline ohci_endpoint_t * ohci_endpoint_get(endpoint_t *ep) 61 64 { 62 65 assert(ep);
Note:
See TracChangeset
for help on using the changeset viewer.