Changeset 09ace19 in mainline for uspace/drv/bus/usb/ohci/hc.h
- Timestamp:
- 2011-08-25T15:33:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f974519
- Parents:
- cc34f5f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.h
rcc34f5f0 r09ace19 53 53 /** Main OHCI driver structure */ 54 54 typedef struct hc { 55 /** USB bus driver, devices and addresses */56 usb_device_keeper_t manager;57 /** USB bus driver, endpoints */58 usb_endpoint_manager_t ep_manager;59 60 55 /** Generic USB hc driver */ 61 56 hcd_t generic; … … 91 86 * @param[in] instance Host controller structure to use. 92 87 */ 93 static inline void hc_fini(hc_t *instance) 94 { /* TODO: implement*/ }; 88 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ }; 95 89 96 90 void hc_enqueue_endpoint(hc_t *instance, endpoint_t *ep); 97 91 void hc_dequeue_endpoint(hc_t *instance, endpoint_t *ep); 98 92 99 int hc_add_endpoint(hc_t *instance, usb_address_t address, usb_endpoint_t ep,100 usb_speed_t speed, usb_transfer_type_t type, usb_direction_t direction,101 size_t max_packet_size, size_t size, unsigned interval);102 int hc_remove_endpoint(hc_t *instance, usb_address_t address,103 usb_endpoint_t endpoint, usb_direction_t direction);104 endpoint_t * hc_get_endpoint(hc_t *instance, usb_address_t address,105 usb_endpoint_t endpoint, usb_direction_t direction, size_t *bw);106 107 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);108 93 void hc_interrupt(hc_t *instance, uint32_t status); 109 110 /** Get and cast pointer to the driver data111 *112 * @param[in] fun DDF function pointer113 * @return cast pointer to driver_data114 */115 static inline hc_t * fun_to_hc(ddf_fun_t *fun)116 { return fun->driver_data; }117 94 #endif 118 95 /**
Note:
See TracChangeset
for help on using the changeset viewer.