/* Append a new TD To the previous TD. */
VOID UhciAppendTd(IN USB_HC_DEV *Uhc, IN UHCI_TD_SW *PrevTd, IN UHCI_TD_SW *ThisTd)
/* Append a new TD To the previous TD. */
VOID UhciAppendTd(IN USB_HC_DEV *Uhc, IN UHCI_TD_SW *PrevTd, IN UHCI_TD_SW *ThisTd)
{
  EFI_PHYSICAL_ADDRESS  PhyAddr;
  PhyAddr = UsbHcGetPciAddressForHostMem (Uhc->MemPool, ThisTd, sizeof (UHCI_TD_HW));
  ASSERT ((PrevTd != NULL) && (ThisTd != NULL));
  PrevTd->TdHw.NextLink = TD_LINK (PhyAddr, TRUE, FALSE);
  PrevTd->NextTd        = (VOID *)ThisTd;
}