Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / PciCfgRead16.c
@Ajax Dong Ajax Dong 2 days ago 291 bytes Full restructure
unsigned int __fastcall PciCfgRead16(unsigned __int8 a1, char i, char a3, char n16, unsigned int a5)
{
  unsigned int result; // eax

  __outdword(0xCF8u, n16 & 0xFC | ((a3 & 7 | (8 * (i & 0x1F | (32 * (a1 | 0xFFFF8000))))) << 8));
  result = a5;
  __outdword(0xCFCu, a5);
  return result;
}