MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / S3PciRead8

Function S3PciRead8

MdePkg/Library/BaseS3PciLib/S3PciLib.c:97–104  ·  view source on GitHub ↗

Reads an 8-bit PCI configuration register and saves the value in the S3 script to be replayed on S3 resume. Reads and returns the 8-bit PCI configuration register specified by Address. This function must guarantee that all PCI read and write operations are serialized. If Address > 0x0FFFFFFF, then ASSERT(). @param Address Address that encodes the PCI Bus, Device, Function

Source from the content-addressed store, hash-verified

95
96**/
97UINT8
98EFIAPI
99S3PciRead8 (
100 IN UINTN Address
101 )
102{
103 return InternalSavePciWrite8ValueToBootScript (Address, PciRead8 (Address));
104}
105
106/**
107 Writes an 8-bit PCI configuration register and saves the value in the S3

Callers

nothing calls this directly

Calls 2

PciRead8Function · 0.50

Tested by

no test coverage detected