Changeset d09f3720 in mainline for uspace/drv/ohci/endpoint_list.h
- Timestamp:
- 2011-05-19T15:20:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4939490
- Parents:
- df44fa2 (diff), 7941bd6 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/endpoint_list.h
rdf44fa2 rd09f3720 41 41 #include "utils/malloc32.h" 42 42 43 typedef struct endpoint_list 44 { 43 /** Structure maintains both OHCI queue and software list of active endpoints.*/ 44 typedef struct endpoint_list { 45 /** Guard against add/remove races */ 45 46 fibril_mutex_t guard; 47 /** OHCI hw structure at the beginning of the queue */ 46 48 ed_t *list_head; 49 /** Physical address of the first(dummy) ED */ 47 50 uint32_t list_head_pa; 51 /** Assigned name, provides nicer debug output */ 48 52 const char *name; 53 /** Sw list of all active EDs */ 49 54 link_t endpoint_list; 50 55 } endpoint_list_t; … … 54 59 * @param[in] instance Memory place to use. 55 60 * 56 * Frees memory for internal qh_t structure.61 * Frees memory of the internal ed_t structure. 57 62 */ 58 63 static inline void endpoint_list_fini(endpoint_list_t *instance) … … 63 68 64 69 int endpoint_list_init(endpoint_list_t *instance, const char *name); 65 66 70 void endpoint_list_set_next(endpoint_list_t *instance, endpoint_list_t *next); 67 68 71 void endpoint_list_add_ep(endpoint_list_t *instance, hcd_endpoint_t *hcd_ep); 69 70 72 void endpoint_list_remove_ep(endpoint_list_t *instance, hcd_endpoint_t *hcd_ep); 71 #if 072 void endpoint_list_remove_finished(endpoint_list_t *instance, link_t *done);73 74 void endpoint_list_abort_all(endpoint_list_t *instance);75 #endif76 73 #endif 77 74 /**
Note:
See TracChangeset
for help on using the changeset viewer.