Changes in uspace/drv/bus/usb/ohci/hc.c [9dfb034:bb97118] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r9dfb034 rbb97118 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2011 Jan Vesely 4 3 * Copyright (c) 2018 Ondrej Hlavaty … … 193 192 { 194 193 assert(instance); 195 /* TODO: implement 194 /* TODO: implement*/ 196 195 return ENOTSUP; 197 }198 199 /** Quiesce host controller200 *201 * @param hcd Host controller device202 */203 int hc_quiesce(hc_device_t *hcd)204 {205 hc_t *instance = hcd_to_hc(hcd);206 207 /* OHCI guide page 42 */208 usb_log_debug2("Started hc initialization routine.");209 210 /* Reset hc */211 usb_log_debug2("HC reset.");212 size_t time = 0;213 OHCI_WR(instance->registers->command_status, CS_HCR);214 while (OHCI_RD(instance->registers->command_status) & CS_HCR) {215 fibril_usleep(10);216 time += 10;217 }218 usb_log_debug2("HC reset complete in %zu us.", time);219 220 return EOK;221 196 } 222 197 … … 620 595 } 621 596 622 /* 597 /*Init HCCA */ 623 598 instance->hcca = hcca_get(); 624 599 if (instance->hcca == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.