Changeset 8dc762e0 in mainline for uspace/lib/usb/include
- Timestamp:
- 2011-04-06T21:12:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f567bcf
- Parents:
- 1e70157
- Location:
- uspace/lib/usb/include/usb/host
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/endpoint.h
r1e70157 r8dc762e0 27 27 */ 28 28 29 /** @addtogroup drvusbuhcihc29 /** @addtogroup libusb 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief UHCI host controller driver structure33 * 34 34 */ 35 #ifndef DRV_UHCI_UHCI_ENDPOINT_H36 #define DRV_UHCI_UHCI_ENDPOINT_H35 #ifndef LIBUSB_HOST_ENDPOINT_H 36 #define LIBUSB_HOST_ENDPOINT_H 37 37 38 38 #include <assert.h> … … 40 40 #include <adt/list.h> 41 41 #include <usb/usb.h> 42 43 #include "hw_struct/queue_head.h"44 42 45 43 typedef struct endpoint { … … 50 48 bool active; 51 49 int toggle:1; 52 qh_t *qh;53 50 } endpoint_t; 54 51 … … 56 53 usb_speed_t speed, size_t max_packet_size); 57 54 58 void endpoint_destroy( void *ep);55 void endpoint_destroy(endpoint_t *instance); 59 56 60 57 void endpoint_toggle_reset(link_t *ep); -
uspace/lib/usb/include/usb/host/usb_endpoint_manager.h
r1e70157 r8dc762e0 43 43 #include <fibril_synch.h> 44 44 #include <usb/usb.h> 45 #include <usb/host/endpoint.h> 45 46 46 47 #define BANDWIDTH_TOTAL_USB11 12000000 … … 63 64 64 65 int usb_endpoint_manager_register_ep(usb_endpoint_manager_t *instance, 65 usb_address_t address, usb_endpoint_t e p, usb_direction_t direction,66 void *data, void (*data_remove_callback)(void* data), size_t bw);66 usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction, 67 endpoint_t *ep, size_t data_size); 67 68 68 69 int usb_endpoint_manager_register_ep_wait(usb_endpoint_manager_t *instance, … … 74 75 usb_address_t address, usb_endpoint_t ep, usb_direction_t direction); 75 76 76 void * usb_endpoint_manager_get_ep_data(usb_endpoint_manager_t *instance,77 endpoint_t * usb_endpoint_manager_get_ep(usb_endpoint_manager_t *instance, 77 78 usb_address_t address, usb_endpoint_t ep, usb_direction_t direction, 78 79 size_t *bw);
Note:
See TracChangeset
for help on using the changeset viewer.