@@ -435,6 +435,8 @@ void FillInputs(XBool New)
435435 InputItems[InputItemsCount].ItemType = Hex; // 131
436436 InputItems[InputItemsCount++].SValue .SWPrintf (" 0x%08X" , gSettings .Smbios .SFakeCPU );
437437
438+ InputItems[InputItemsCount].ItemType = BoolValue; // 132
439+ InputItems[InputItemsCount++].BValue = gSettings .Quirks .OcKernelQuirks .XhciPortLimit ;
438440
439441 // menu for drop table
440442 if (GlobalConfig.ACPIDropTables .notEmpty ()) {
@@ -1110,6 +1112,11 @@ void ApplyInputs(void)
11101112 gSettings .Smbios .SFakeCPU = (UINT32)StrHexToUint64 (InputItems[i].SValue .wc_str ());
11111113 DBG (" set FakeCPUID=%X\n " , gSettings .Smbios .SFakeCPU );
11121114 }
1115+ i++; // 132
1116+ if (InputItems[i].Valid ) {
1117+ gSettings .Quirks .OcKernelQuirks .XhciPortLimit = InputItems[i].BValue != 0 ;
1118+ DBG (" applied XhciPortLimit=%s\n " , gSettings .Quirks .OcKernelQuirks .XhciPortLimit ? " Y" : " N" );
1119+ }
11131120
11141121 if (NeedSave) {
11151122 ApplySettings ();
@@ -1960,6 +1967,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuBinaries()
19601967// SubScreen->AddMenuItemInput(45, "No 8 Apples Patch", false);
19611968 SubScreen->AddMenuItemInput (61 , " Dell SMBIOS Patch" , false );
19621969 SubScreen->AddMenuItemInput (115 , " Block SkywalkFamily" , false );
1970+ SubScreen->AddMenuItemInput (132 , " Unlimit Xhci Ports" , false );
19631971// SubScreen->AddMenuItemInput(115, "No Caches", false);
19641972// SubScreen->AddMenuItemInput(44, "Kext patching allowed", false);
19651973 SubScreen->AddMenuEntry (SubMenuKextPatches (), true );
0 commit comments