Revision 348f1037 hw/usb/hcd-xhci.c
b/hw/usb/hcd-xhci.c | ||
---|---|---|
1750 | 1750 |
|
1751 | 1751 |
static TRBCCode xhci_enable_slot(XHCIState *xhci, unsigned int slotid) |
1752 | 1752 |
{ |
1753 |
trace_usb_xhci_slot_enable(slotid); |
|
1753 | 1754 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
1754 |
DPRINTF("xhci_enable_slot(%d)\n", slotid); |
|
1755 | 1755 |
xhci->slots[slotid-1].enabled = 1; |
1756 | 1756 |
xhci->slots[slotid-1].port = 0; |
1757 | 1757 |
memset(xhci->slots[slotid-1].eps, 0, sizeof(XHCIEPContext*)*31); |
... | ... | |
1763 | 1763 |
{ |
1764 | 1764 |
int i; |
1765 | 1765 |
|
1766 |
trace_usb_xhci_slot_disable(slotid); |
|
1766 | 1767 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
1767 |
DPRINTF("xhci_disable_slot(%d)\n", slotid); |
|
1768 | 1768 |
|
1769 | 1769 |
for (i = 1; i <= 31; i++) { |
1770 | 1770 |
if (xhci->slots[slotid-1].eps[i-1]) { |
... | ... | |
1790 | 1790 |
int i; |
1791 | 1791 |
TRBCCode res; |
1792 | 1792 |
|
1793 |
trace_usb_xhci_slot_address(slotid); |
|
1793 | 1794 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
1794 |
DPRINTF("xhci_address_slot(%d)\n", slotid); |
|
1795 | 1795 |
|
1796 | 1796 |
dcbaap = xhci_addr64(xhci->dcbaap_low, xhci->dcbaap_high); |
1797 | 1797 |
pci_dma_read(&xhci->pci_dev, dcbaap + 8*slotid, &poctx, sizeof(poctx)); |
... | ... | |
1877 | 1877 |
int i; |
1878 | 1878 |
TRBCCode res; |
1879 | 1879 |
|
1880 |
trace_usb_xhci_slot_configure(slotid); |
|
1880 | 1881 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
1881 |
DPRINTF("xhci_configure_slot(%d)\n", slotid); |
|
1882 | 1882 |
|
1883 | 1883 |
ictx = xhci_mask64(pictx); |
1884 | 1884 |
octx = xhci->slots[slotid-1].ctx; |
... | ... | |
1965 | 1965 |
uint32_t islot_ctx[4]; |
1966 | 1966 |
uint32_t slot_ctx[4]; |
1967 | 1967 |
|
1968 |
trace_usb_xhci_slot_evaluate(slotid); |
|
1968 | 1969 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
1969 |
DPRINTF("xhci_evaluate_slot(%d)\n", slotid); |
|
1970 | 1970 |
|
1971 | 1971 |
ictx = xhci_mask64(pictx); |
1972 | 1972 |
octx = xhci->slots[slotid-1].ctx; |
... | ... | |
2028 | 2028 |
dma_addr_t octx; |
2029 | 2029 |
int i; |
2030 | 2030 |
|
2031 |
trace_usb_xhci_slot_reset(slotid); |
|
2031 | 2032 |
assert(slotid >= 1 && slotid <= MAXSLOTS); |
2032 |
DPRINTF("xhci_reset_slot(%d)\n", slotid); |
|
2033 | 2033 |
|
2034 | 2034 |
octx = xhci->slots[slotid-1].ctx; |
2035 | 2035 |
|
Also available in: Unified diff