Changeset a39cfb8 in mainline for uspace/drv/ohci/hcd_endpoint.h
- Timestamp:
- 2011-04-14T07:54:33Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e05d6c3
- Parents:
- 3f3afb9 (diff), 34e8bab (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
r3f3afb9 ra39cfb8 1 1 /* 2 * Copyright (c) 2007 Jan Hudecek 3 * Copyright (c) 2008 Martin Decky 2 * Copyright (c) 2011 Jan Vesely 4 3 * All rights reserved. 5 4 * … … 27 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 27 */ 29 30 /** @addtogroup genericproc 28 /** @addtogroup drvusbohci 31 29 * @{ 32 30 */ 33 /** @file tasklet.h34 * @brief Tasklets declarations31 /** @file 32 * @brief OHCI driver 35 33 */ 34 #ifndef DRV_OHCI_HCD_ENDPOINT_H 35 #define DRV_OHCI_HCD_ENDPOINT_H 36 36 37 #ifndef KERN_TASKLET_H_ 38 #define KERN_TASKLET_H_ 39 37 #include <assert.h> 40 38 #include <adt/list.h> 41 39 42 /** Tasklet callback type */ 43 typedef void (* tasklet_callback_t)(void *arg); 40 #include <usb/host/endpoint.h> 44 41 45 /** Tasklet state */ 46 typedef enum { 47 NotActive, 48 Scheduled, 49 InProgress, 50 Disabled 51 } tasklet_state_t; 42 #include "hw_struct/endpoint_descriptor.h" 43 #include "hw_struct/transfer_descriptor.h" 52 44 53 /** Structure describing a tasklet */ 54 typedef struct tasklet_descriptor { 45 typedef struct hcd_endpoint { 46 ed_t *ed; 47 td_t *td; 55 48 link_t link; 56 57 /** Callback to call */ 58 tasklet_callback_t callback; 59 60 /** Argument passed to the callback */ 61 void *arg; 62 63 /** State of the tasklet */ 64 tasklet_state_t state; 65 } tasklet_descriptor_t; 49 } hcd_endpoint_t; 66 50 51 hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep); 67 52 68 extern void tasklet_init(void);53 hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep); 69 54 55 void hcd_endpoint_clear(endpoint_t *ep); 70 56 #endif 71 72 /** @}57 /** 58 * @} 73 59 */
Note:
See TracChangeset
for help on using the changeset viewer.