Changeset e1dbcbc in mainline for uspace/drv/ohci/hcd_endpoint.h
- Timestamp:
- 2011-04-29T13:43:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a81a1d09
- Parents:
- 380e0364 (diff), f19f1b7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hcd_endpoint.h
r380e0364 re1dbcbc 1 1 /* 2 * Copyright (c) 201 0 Vojtech Horky2 * Copyright (c) 2011 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbohci 29 * @{ 30 */ 31 /** @file 32 * @brief OHCI driver 33 */ 34 #ifndef DRV_OHCI_HCD_ENDPOINT_H 35 #define DRV_OHCI_HCD_ENDPOINT_H 28 36 29 /** @addtogroup drvusbvhc 30 * @{ 31 */ 32 /** @file 33 * @brief Virtual device management. 34 */ 35 #ifndef VHCD_DEVICES_H_ 36 #define VHCD_DEVICES_H_ 37 #include <assert.h> 38 #include <adt/list.h> 37 39 38 #include <adt/list.h> 39 #include <usb/usb.h> 40 #include <usb/host/endpoint.h> 40 41 41 #include "hc.h" 42 #include "hw_struct/endpoint_descriptor.h" 43 #include "hw_struct/transfer_descriptor.h" 42 44 43 /** Connected virtual device. */ 44 typedef struct { 45 /** Phone used when sending data to device. */ 46 int phone; 47 /** Unique identification. */ 48 sysarg_t id; 49 /** Linked-list handle. */ 45 typedef struct hcd_endpoint { 46 ed_t *ed; 47 td_t *td; 50 48 link_t link; 51 } virtdev_connection_t;49 } hcd_endpoint_t; 52 50 53 virtdev_connection_t *virtdev_add_device(int, sysarg_t); 54 virtdev_connection_t *virtdev_find(sysarg_t); 55 void virtdev_destroy_device(virtdev_connection_t *); 56 int virtdev_send_to_all(transaction_t *); 51 hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep); 57 52 53 hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep); 54 55 void hcd_endpoint_clear(endpoint_t *ep); 58 56 #endif 59 57 /**
Note:
See TracChangeset
for help on using the changeset viewer.