Changeset 17ceb72 in mainline for uspace/drv/uhci-hcd/uhci_struct
- Timestamp:
- 2011-03-14T01:39:44Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6298d80
- Parents:
- 3bd96bb
- Location:
- uspace/drv/uhci-hcd/uhci_struct
- Files:
-
- 4 edited
-
link_pointer.h (modified) (1 diff)
-
queue_head.h (modified) (6 diffs)
-
transfer_descriptor.c (modified) (3 diffs)
-
transfer_descriptor.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci_struct/link_pointer.h
r3bd96bb r17ceb72 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup usb28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ -
uspace/drv/uhci-hcd/uhci_struct/queue_head.h
r3bd96bb r17ceb72 1 2 1 /* 3 2 * Copyright (c) 2010 Jan Vesely … … 27 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 27 */ 29 /** @addtogroup usb28 /** @addtogroup drv usbuhcihc 30 29 * @{ 31 30 */ … … 47 46 } __attribute__((packed)) qh_t; 48 47 /*----------------------------------------------------------------------------*/ 48 /** Initialize queue head structure 49 * 50 * @param[in] instance qh_t structure to initialize. 51 * 52 * Sets both pointer to terminal NULL. 53 */ 49 54 static inline void qh_init(qh_t *instance) 50 55 { … … 55 60 } 56 61 /*----------------------------------------------------------------------------*/ 62 /** Set queue head next pointer 63 * 64 * @param[in] instance qh_t structure to use. 65 * @param[in] pa Physical address of the next queue head. 66 * 67 * Adds proper flag. If the pointer is NULL or terminal, sets next to terminal 68 * NULL. 69 */ 57 70 static inline void qh_set_next_qh(qh_t *instance, uint32_t pa) 58 71 { 59 /* address is valid and not terminal */72 /* Address is valid and not terminal */ 60 73 if (pa && ((pa & LINK_POINTER_TERMINATE_FLAG) == 0)) { 61 74 instance->next = (pa & LINK_POINTER_ADDRESS_MASK) … … 66 79 } 67 80 /*----------------------------------------------------------------------------*/ 81 /** Set queue head element pointer 82 * 83 * @param[in] instance qh_t structure to initialize. 84 * @param[in] pa Physical address of the next queue head. 85 * 86 * Adds proper flag. If the pointer is NULL or terminal, sets element 87 * to terminal NULL. 88 */ 68 89 static inline void qh_set_element_qh(qh_t *instance, uint32_t pa) 69 90 { 70 /* address is valid and not terminal */91 /* Address is valid and not terminal */ 71 92 if (pa && ((pa & LINK_POINTER_TERMINATE_FLAG) == 0)) { 72 93 instance->element = (pa & LINK_POINTER_ADDRESS_MASK) … … 77 98 } 78 99 /*----------------------------------------------------------------------------*/ 100 /** Set queue head element pointer 101 * 102 * @param[in] instance qh_t structure to initialize. 103 * @param[in] pa Physical address of the TD structure. 104 * 105 * Adds proper flag. If the pointer is NULL or terminal, sets element 106 * to terminal NULL. 107 */ 79 108 static inline void qh_set_element_td(qh_t *instance, uint32_t pa) 80 109 { -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
r3bd96bb r17ceb72 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup usb28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ … … 38 38 #include "utils/malloc32.h" 39 39 40 /** Initialize sTransfer Descriptor40 /** Initialize Transfer Descriptor 41 41 * 42 42 * @param[in] instance Memory place to initialize. … … 106 106 } 107 107 /*----------------------------------------------------------------------------*/ 108 /** Convert sTD status into standard error code108 /** Convert TD status into standard error code 109 109 * 110 110 * @param[in] instance TD structure to use. -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.h
r3bd96bb r17ceb72 1 1 /* 2 * Copyright (c) 201 0Jan Vesely2 * 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 usb28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ … … 108 108 } 109 109 /*----------------------------------------------------------------------------*/ 110 /** Check swhether less than max data were recieved and packet is marked as SPD.110 /** Check whether less than max data were recieved and packet is marked as SPD. 111 111 * 112 112 * @param[in] instance TD structure to use.
Note:
See TracChangeset
for help on using the changeset viewer.
