/* This routine is used to initialize the bar of a PCI device. */
VOID InitializePciDevice(IN PCI_IO_DEVICE *PciIoDevice)
/* This routine is used to initialize the bar of a PCI device. */
VOID InitializePciDevice(IN PCI_IO_DEVICE *PciIoDevice)
{
  EFI_PCI_IO_PROTOCOL  *PciIo;
  UINT8                Offset;
  PciIo = &(PciIoDevice->PciIo);
  for (Offset = 0x10; Offset <= 0x24; Offset += sizeof (UINT32)) {
    PciIo->Pci.Write (PciIo, EfiPciIoWidthUint32, Offset, 1, &gAllOne);
  }
}