Add comments

This commit is contained in:
xj 2024-08-07 19:21:28 -07:00
parent c637a3d0bc
commit 55eef9ff58
1 changed files with 2 additions and 0 deletions

View File

@ -2733,6 +2733,8 @@ static void xhci_transfer ( struct xhci_host *xhci,
// trans_trb = trb->transfer;
trans_ring = (struct xhci_ring *)(vir_addr); /* to align addr is ring base */
pending = &trans_ring->evt; /* preserve event trb pending to handle */
/* We must pay attention on whether the result of eidx should increase by 1 or not, when we begin to debug. */
eidx = (trb->transfer - phy_addr)/sizeof(union xhci_trb) + 1; /* calculate current evt trb index */
/* Identify slot */