Changeset df8f3fa in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2011-08-24T13:32:47Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5fe0a69
- Parents:
- 31bc40e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r31bc40e rdf8f3fa 41 41 #include <usb/host/batch.h> 42 42 #include <usbhc_iface.h> 43 //#include <driver.h>44 43 45 44 typedef struct hcd hcd_t; … … 54 53 void (*batch_private_dtor)(void *); 55 54 }; 56 55 /*----------------------------------------------------------------------------*/ 57 56 static inline int hcd_init(hcd_t *hcd, size_t bandwidth) 58 57 { … … 61 60 return usb_endpoint_manager_init(&hcd->ep_manager, bandwidth); 62 61 } 63 62 /*----------------------------------------------------------------------------*/ 63 static inline void reset_ep_if_need( 64 hcd_t *hcd, usb_target_t target, const char* setup_data) 65 { 66 assert(hcd); 67 usb_endpoint_manager_reset_if_need( 68 &hcd->ep_manager, target, (const uint8_t *)setup_data); 69 } 70 /*----------------------------------------------------------------------------*/ 64 71 static inline hcd_t * fun_to_hcd(ddf_fun_t *fun) 65 72 { … … 67 74 return fun->driver_data; 68 75 } 69 76 /*----------------------------------------------------------------------------*/ 70 77 extern usbhc_iface_t hcd_iface; 71 78
Note:
See TracChangeset
for help on using the changeset viewer.