Changes in uspace/drv/uhci-hcd/main.c [a7e2f0d:6bb456c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/main.c
ra7e2f0d r6bb456c 60 60 }; 61 61 /*----------------------------------------------------------------------------*/ 62 /** IRQ handling callback, identifies devic63 *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 */68 62 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call) 69 63 { … … 75 69 } 76 70 /*----------------------------------------------------------------------------*/ 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) 71 static int uhci_add_device(ddf_dev_t *device) 86 72 { 87 73 assert(device); … … 110 96 ret = pci_disable_legacy(device); 111 97 CHECK_RET_FREE_HC_RETURN(ret, 112 "Failed(%d) todisable legacy USB: %s.\n", ret, str_error(ret));98 "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret)); 113 99 114 100 #if 0 … … 127 113 128 114 ret = uhci_init(hcd, device, (void*)io_reg_base, io_reg_size); 129 CHECK_RET_FREE_HC_RETURN(ret, "Failed(%d) to init uhci-hcd.\n", ret); 115 CHECK_RET_FREE_HC_RETURN(ret, "Failed(%d) to init uhci-hcd.\n", 116 ret); 130 117 #undef CHECK_RET_FREE_HC_RETURN 131 118 … … 168 155 } 169 156 /*----------------------------------------------------------------------------*/ 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 */178 157 int main(int argc, char *argv[]) 179 158 {
Note:
See TracChangeset
for help on using the changeset viewer.