used only if VBiosPatchNeeded and if no CustomEDID
| 59 | |
| 60 | //used only if VBiosPatchNeeded and if no CustomEDID |
| 61 | UINT8* getCurrentEdid (VOID) |
| 62 | { |
| 63 | EFI_STATUS Status; |
| 64 | EFI_EDID_ACTIVE_PROTOCOL *EdidProtocol; |
| 65 | UINT8 *Edid; |
| 66 | |
| 67 | DBG("EdidActive:"); |
| 68 | Edid = NULL; |
| 69 | Status = gBS->LocateProtocol (&gEfiEdidActiveProtocolGuid, NULL, (VOID**)&EdidProtocol); |
| 70 | if (!EFI_ERROR(Status)) { |
| 71 | DBG(" size=%d", EdidProtocol->SizeOfEdid); |
| 72 | if (EdidProtocol->SizeOfEdid > 0) { |
| 73 | Edid = (__typeof__(Edid))AllocateCopyPool(EdidProtocol->SizeOfEdid, EdidProtocol->Edid); |
| 74 | } |
| 75 | } |
| 76 | DBG(" %s\n", Edid != NULL ? "found" : "not found"); |
| 77 | |
| 78 | return Edid; |
| 79 | } |
| 80 | |
| 81 | VOID DebugDumpEDID(CONST CHAR8 *Message, INTN N) |
| 82 | { |
no test coverage detected