Changes in uspace/drv/uhci-rhd/root_hub.c [f123909:275bf456] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/root_hub.c
rf123909 r275bf456 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbuhcirh28 /** @addtogroup usb 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief UHCI root hubdriver32 * @brief UHCI driver 33 33 */ 34 34 #include <errno.h> 35 #include <stdint.h> 35 36 #include <ddi.h> 37 #include <devman.h> 36 38 #include <usb/debug.h> 37 39 38 40 #include "root_hub.h" 39 41 40 /** Initialize UHCI root hub instance.42 /** Initializes UHCI root hub instance. 41 43 * 42 44 * @param[in] instance Driver memory structure to use. 43 45 * @param[in] addr Address of I/O registers. 44 46 * @param[in] size Size of available I/O space. 45 * @param[in] rh Pointer to ddf instance ofthe root hub driver.47 * @param[in] rh Pointer to ddf instance fo the root hub driver. 46 48 * @return Error code. 47 49 */ … … 59 61 if (ret < 0) { 60 62 usb_log_error( 61 "Failed(%d) to gain access to port registers at %p\n", 62 ret, regs); 63 "Failed to gain access to port registers at %p\n", regs); 63 64 return ret; 64 65 } 65 66 66 /* Initialize root hub ports */67 /* add fibrils for periodic port checks */ 67 68 unsigned i = 0; 68 69 for (; i < UHCI_ROOT_HUB_PORT_COUNT; ++i) { … … 81 82 } 82 83 /*----------------------------------------------------------------------------*/ 83 /** CleanupUHCI root hub instance.84 /** Finishes UHCI root hub instance. 84 85 * 85 * @param[in] instance Root hubstructure to use.86 * @param[in] instance Driver memory structure to use. 86 87 * @return Error code. 87 88 */
Note:
See TracChangeset
for help on using the changeset viewer.