28 UINT8 PowerManagementRegBlock;
29 UINT16 PowerManagementCSR;
31 PowerManagementRegBlock = 0;
35 EFI_PCI_CAPABILITY_ID_PMI,
36 &PowerManagementRegBlock,
40 if (EFI_ERROR (Status)) {
41 return EFI_UNSUPPORTED;
51 Status = PciIoDevice->PciIo.Pci.Read (
54 PowerManagementRegBlock + 4,
59 if (!EFI_ERROR (Status)) {
63 PowerManagementCSR |= BIT15;
67 PowerManagementCSR &= ~(BIT8 | BIT1 | BIT0);
72 Status = PciIoDevice->PciIo.Pci.Write (
75 PowerManagementRegBlock + 4,
EFI_STATUS LocateCapabilityRegBlock(IN PCI_IO_DEVICE *PciIoDevice, IN UINT8 CapId, IN OUT UINT8 *Offset, OUT UINT8 *NextRegBlock OPTIONAL)
EFI_STATUS ResetPowerManagementFeature(IN PCI_IO_DEVICE *PciIoDevice)