/* Initialize the memory management pool for the host controller. */
USBHC_MEM_POOL* UsbHcInitMemPool(IN EFI_PCI_IO_PROTOCOL *PciIo)
/* Initialize the memory management pool for the host controller. */
USBHC_MEM_POOL* UsbHcInitMemPool(IN EFI_PCI_IO_PROTOCOL *PciIo)
{
  USBHC_MEM_POOL  *Pool;
  Pool = AllocatePool (sizeof (USBHC_MEM_POOL));
  if (Pool == NULL) {
    return Pool;
  }
  Pool->PciIo = PciIo;
  Pool->Head  = UsbHcAllocMemBlock (Pool, USBHC_MEM_DEFAULT_PAGES);
  if (Pool->Head == NULL) {
    gBS->FreePool (Pool);
    Pool = NULL;
  }
  return Pool;
}