| 1993 | } |
| 1994 | |
| 1995 | REFIT_ABSTRACT_MENU_ENTRY* SubMenuDropTables() |
| 1996 | { |
| 1997 | CHAR8 sign[5]; |
| 1998 | CHAR8 OTID[9]; |
| 1999 | REFIT_MENU_ITEM_OPTIONS *Entry; |
| 2000 | REFIT_MENU_SCREEN *SubScreen; |
| 2001 | REFIT_INPUT_DIALOG *InputBootArgs; |
| 2002 | |
| 2003 | sign[4] = 0; |
| 2004 | OTID[8] = 0; |
| 2005 | |
| 2006 | Entry = newREFIT_MENU_ITEM_OPTIONS(&SubScreen, ActionEnter, SCREEN_TABLES, "Tables dropping->"_XS8); |
| 2007 | |
| 2008 | if (gSettings.ACPIDropTables) { |
| 2009 | ACPI_DROP_TABLE *DropTable = gSettings.ACPIDropTables; |
| 2010 | while (DropTable) { |
| 2011 | CopyMem((CHAR8*)&sign, (CHAR8*)&(DropTable->Signature), 4); |
| 2012 | CopyMem((CHAR8*)&OTID, (CHAR8*)&(DropTable->TableId), 8); |
| 2013 | //MsgLog("adding to menu %s (%X) %s (%lx) L=%d(0x%X)\n", |
| 2014 | // sign, DropTable->Signature, |
| 2015 | // OTID, DropTable->TableId, |
| 2016 | // DropTable->Length, DropTable->Length); |
| 2017 | InputBootArgs = new REFIT_INPUT_DIALOG; |
| 2018 | InputBootArgs->Title.SWPrintf("Drop \"%4.4s\" \"%8.8s\" %d", sign, OTID, DropTable->Length); |
| 2019 | // InputBootArgs->Tag = TAG_INPUT; |
| 2020 | InputBootArgs->Row = 0xFFFF; //cursor |
| 2021 | InputBootArgs->Item = &(DropTable->MenuItem); |
| 2022 | InputBootArgs->AtClick = ActionEnter; |
| 2023 | InputBootArgs->AtRightClick = ActionDetails; |
| 2024 | SubScreen->AddMenuEntry(InputBootArgs, true); |
| 2025 | |
| 2026 | DropTable = DropTable->Next; |
| 2027 | } |
| 2028 | } |
| 2029 | |
| 2030 | SubScreen->AddMenuItemInput(4, "Drop all OEM SSDT", FALSE); |
| 2031 | SubScreen->AddMenuItemInput(113, "Automatic smart merge", FALSE); |
| 2032 | |
| 2033 | if (ACPIPatchedAML) { |
| 2034 | ACPI_PATCHED_AML *ACPIPatchedAMLTmp = ACPIPatchedAML; |
| 2035 | while (ACPIPatchedAMLTmp) { |
| 2036 | InputBootArgs = new REFIT_INPUT_DIALOG; |
| 2037 | InputBootArgs->Title.SWPrintf("Drop \"%ls\"", ACPIPatchedAMLTmp->FileName); |
| 2038 | // InputBootArgs->Tag = TAG_INPUT; |
| 2039 | InputBootArgs->Row = 0xFFFF; //cursor |
| 2040 | InputBootArgs->Item = &(ACPIPatchedAMLTmp->MenuItem); |
| 2041 | InputBootArgs->AtClick = ActionEnter; |
| 2042 | InputBootArgs->AtRightClick = ActionDetails; |
| 2043 | SubScreen->AddMenuEntry(InputBootArgs, true); |
| 2044 | ACPIPatchedAMLTmp = ACPIPatchedAMLTmp->Next; |
| 2045 | } |
| 2046 | } |
| 2047 | |
| 2048 | SubScreen->AddMenuEntry(&MenuEntryReturn, false); |
| 2049 | return Entry; |
| 2050 | } |
| 2051 | |
| 2052 | REFIT_ABSTRACT_MENU_ENTRY* SubMenuSmbios() |
no test coverage detected