Changeset a7e2f0d in mainline for uspace/drv/uhci-hcd/main.c
- Timestamp:
- 2011-03-07T18:57:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18e9eeb
- Parents:
- 0d3167e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/main.c
r0d3167e ra7e2f0d 60 60 }; 61 61 /*----------------------------------------------------------------------------*/ 62 /** IRQ handling callback, identifies devic 63 * 64 * @param[in] dev DDF instance of the device to use. 65 * @param[in] iid (Unused). 66 * @param[in] call Pointer to the call that represents interrupt. 67 */ 62 68 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call) 63 69 { … … 69 75 } 70 76 /*----------------------------------------------------------------------------*/ 71 static int uhci_add_device(ddf_dev_t *device) 77 /** Initializes a new ddf driver instance of UHCI hcd. 78 * 79 * @param[in] device DDF instance of the device to initialize. 80 * @return Error code. 81 * 82 * Gets and initialies hardware resources, disables any legacy support, 83 * and reports root hub device. 84 */ 85 int uhci_add_device(ddf_dev_t *device) 72 86 { 73 87 assert(device); … … 96 110 ret = pci_disable_legacy(device); 97 111 CHECK_RET_FREE_HC_RETURN(ret, 98 "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret));112 "Failed(%d) to disable legacy USB: %s.\n", ret, str_error(ret)); 99 113 100 114 #if 0 … … 113 127 114 128 ret = uhci_init(hcd, device, (void*)io_reg_base, io_reg_size); 115 CHECK_RET_FREE_HC_RETURN(ret, "Failed(%d) to init uhci-hcd.\n", 116 ret); 129 CHECK_RET_FREE_HC_RETURN(ret, "Failed(%d) to init uhci-hcd.\n", ret); 117 130 #undef CHECK_RET_FREE_HC_RETURN 118 131 … … 155 168 } 156 169 /*----------------------------------------------------------------------------*/ 170 /** Initializes global driver structures (NONE). 171 * 172 * @param[in] argc Nmber of arguments in argv vector (ignored). 173 * @param[in] argv Cmdline argument vector (ignored). 174 * @return Error code. 175 * 176 * Driver debug level is set here. 177 */ 157 178 int main(int argc, char *argv[]) 158 179 {
Note:
See TracChangeset
for help on using the changeset viewer.