Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / VgaModeDisable.c
@Ajax Dong Ajax Dong 2 days ago 349 bytes Full restructure
BOOL __thiscall VgaModeDisable(int *this)
{
  int v2; // ecx

  PciRegWrite(*(this + 15), 510525556, 0xFFFF);
  PciRegWrite(v2, 510525564, -16711936);
  return VgaModeSetOffset((int)this, 0)
      && VgaModeSetOffset((int)this, 1)
      && VgaModeSetOffset((int)this, 2)
      && VgaModeSetOffset((int)this, 3)
      && VgaModeSetPitch(this) != 0;
}