Changeset 708d8fcd in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2018-01-10T00:46:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f92f6b1
- Parents:
- 4793023
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-09 19:26:55)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-10 00:46:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r4793023 r708d8fcd 192 192 hc->ac64 = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_AC64); 193 193 hc->max_slots = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_SLOTS); 194 unsigned ist = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_IST); 195 hc->ist = (ist & 0x10 >> 1) * (ist & 0xf); 194 196 195 197 if ((err = hc_parse_ec(hc))) { … … 611 613 * Ring a xHC Doorbell. Implements section 4.7. 612 614 */ 613 inthc_ring_doorbell(xhci_hc_t *hc, unsigned doorbell, unsigned target)615 void hc_ring_doorbell(xhci_hc_t *hc, unsigned doorbell, unsigned target) 614 616 { 615 617 assert(hc); … … 617 619 pio_write_32(&hc->db_arry[doorbell], v); 618 620 usb_log_debug2("Ringing doorbell %d (target: %d)", doorbell, target); 619 return EOK;620 621 } 621 622
Note:
See TracChangeset
for help on using the changeset viewer.