Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / VgaModeProgramAttr.c
@Ajax Dong Ajax Dong 2 days ago 328 bytes Full restructure
int __thiscall VgaModeProgramAttr(int *this)
{
  int v1; // edi
  int v2; // esi
  int v3; // edx
  int v4; // edx
  int v5; // ecx

  v1 = *(this + 15);
  v2 = PciRegRead(v1, 510525444);
  PciRegWrite(v1, v3, v2 | 0x1000);
  while ( (PciRegRead(v1, 510525444) & 0x80000) == 0 )
    ;
  return PciRegWrite(v5, v4, v2 | 0x400);
}