mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
Add ForceAquantiaEthernet quirk.
This commit is contained in:
parent
0094e0c5ff
commit
bd46eeffe9
@ -2016,6 +2016,7 @@ printf("%s", "");
|
||||
XBool ExtendBTFeatureFlags = false;
|
||||
XBool ExternalDiskIcons = false;
|
||||
XBool IncreasePciBarSize = false;
|
||||
XBool ForceAquantiaEthernet = false;
|
||||
// XBool LapicKernelPanic = false;
|
||||
// XBool PanicNoKextDump = false;
|
||||
XBool PowerTimeoutKernelPanic = false;
|
||||
@ -2036,6 +2037,7 @@ printf("%s", "");
|
||||
if ( !(ExtendBTFeatureFlags == other.ExtendBTFeatureFlags) ) return false;
|
||||
if ( !(ExternalDiskIcons == other.ExternalDiskIcons) ) return false;
|
||||
if ( !(IncreasePciBarSize == other.IncreasePciBarSize) ) return false;
|
||||
if ( !(ForceAquantiaEthernet == other.ForceAquantiaEthernet) ) return false;
|
||||
if ( !(PowerTimeoutKernelPanic == other.PowerTimeoutKernelPanic) ) return false;
|
||||
if ( !(ThirdPartyDrives == other.ThirdPartyDrives) ) return false;
|
||||
if ( !(XhciPortLimit == other.XhciPortLimit) ) return false;
|
||||
@ -2053,6 +2055,7 @@ printf("%s", "");
|
||||
ExtendBTFeatureFlags = other.dgetExtendBTFeatureFlags();
|
||||
ExternalDiskIcons = other.dgetExternalDiskIcons();
|
||||
IncreasePciBarSize = other.dgetIncreasePciBarSize();
|
||||
ForceAquantiaEthernet = other.dgetForceAquantiaEthernet();
|
||||
PowerTimeoutKernelPanic = other.dgetPowerTimeoutKernelPanic();
|
||||
ThirdPartyDrives = other.dgetThirdPartyDrives();
|
||||
XhciPortLimit = other.dgetXhciPortLimit();
|
||||
|
@ -61,6 +61,7 @@ public:
|
||||
XmlBool ExtendBTFeatureFlags = XmlBool();
|
||||
XmlBool ExternalDiskIcons = XmlBool();
|
||||
XmlBool IncreasePciBarSize = XmlBool();
|
||||
XmlBool ForceAquantiaEthernet = XmlBool();
|
||||
XmlBool PowerTimeoutKernelPanic = XmlBool();
|
||||
XmlBool ThirdPartyDrives = XmlBool();
|
||||
XmlBool XhciPortLimit = XmlBool();
|
||||
@ -74,6 +75,7 @@ public:
|
||||
XBool dgetExtendBTFeatureFlags() const { return ExtendBTFeatureFlags.isDefined() ? ExtendBTFeatureFlags.value() : ExtendBTFeatureFlags.nullValue; };
|
||||
XBool dgetExternalDiskIcons() const { return ExternalDiskIcons.isDefined() ? ExternalDiskIcons.value() : ExternalDiskIcons.nullValue; };
|
||||
XBool dgetIncreasePciBarSize() const { return IncreasePciBarSize.isDefined() ? IncreasePciBarSize.value() : IncreasePciBarSize.nullValue; };
|
||||
XBool dgetForceAquantiaEthernet() const { return ForceAquantiaEthernet.isDefined() ? ForceAquantiaEthernet.value() : ForceAquantiaEthernet.nullValue; };
|
||||
XBool dgetPowerTimeoutKernelPanic() const { return PowerTimeoutKernelPanic.isDefined() ? PowerTimeoutKernelPanic.value() : PowerTimeoutKernelPanic.nullValue; };
|
||||
XBool dgetThirdPartyDrives() const { return ThirdPartyDrives.isDefined() ? ThirdPartyDrives.value() : ThirdPartyDrives.nullValue; };
|
||||
XBool dgetXhciPortLimit() const { return XhciPortLimit.isDefined() ? XhciPortLimit.value() : XhciPortLimit.nullValue; };
|
||||
@ -138,7 +140,7 @@ public:
|
||||
OcKernelQuirks_Class OcKernelQuirks;
|
||||
OcBooterQuirks_Class OcBooterQuirks;
|
||||
|
||||
XmlDictField m_fields[35] = {
|
||||
XmlDictField m_fields[36] = {
|
||||
{"AvoidRuntimeDefrag", OcBooterQuirks.AvoidRuntimeDefrag},
|
||||
{"DevirtualiseMmio", OcBooterQuirks.DevirtualiseMmio},
|
||||
{"DisableSingleUser", OcBooterQuirks.DisableSingleUser},
|
||||
@ -170,6 +172,7 @@ public:
|
||||
{"ExtendBTFeatureFlags", OcKernelQuirks.ExtendBTFeatureFlags},
|
||||
{"ExternalDiskIcons", OcKernelQuirks.ExternalDiskIcons},
|
||||
{"IncreasePciBarSize", OcKernelQuirks.IncreasePciBarSize},
|
||||
{"ForceAquantiaEthernet", OcKernelQuirks.ForceAquantiaEthernet},
|
||||
{"PowerTimeoutKernelPanic", OcKernelQuirks.PowerTimeoutKernelPanic},
|
||||
{"ThirdPartyDrives", OcKernelQuirks.ThirdPartyDrives},
|
||||
{"XhciPortLimit", OcKernelQuirks.XhciPortLimit},
|
||||
|
@ -1175,6 +1175,7 @@ void LOADER_ENTRY::StartLoader()
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ExtendBTFeatureFlags = gSettings.Quirks.OcKernelQuirks.ExtendBTFeatureFlags;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ExternalDiskIcons = gSettings.Quirks.OcKernelQuirks.ExternalDiskIcons;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.IncreasePciBarSize = gSettings.Quirks.OcKernelQuirks.IncreasePciBarSize;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ForceAquantiaEthernet = gSettings.Quirks.OcKernelQuirks.ForceAquantiaEthernet;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.LapicKernelPanic = gSettings.KernelAndKextPatches.KPKernelLapic;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.PanicNoKextDump = gSettings.KernelAndKextPatches.KPPanicNoKextDump;
|
||||
mOpenCoreConfiguration.Kernel.Quirks.PowerTimeoutKernelPanic = gSettings.Quirks.OcKernelQuirks.PowerTimeoutKernelPanic;
|
||||
@ -1830,7 +1831,7 @@ void LOADER_ENTRY::StartLoader()
|
||||
LoadedImage->LoadOptionsSize = (UINT32)LoadOptionsAsXStringW.sizeInBytesIncludingTerminator();
|
||||
|
||||
DBG("Kernel quirks\n");
|
||||
DBG("ACPCL %d AXCL %d AXEM %d AXFB %d CSG %d DIM %d DLJ %d DRC %d DPM %d EBTFF %d EDI %d IPBS %d LKP %d PNKD %d PTKP %d TPD %d XPL %d PCC %d\n",
|
||||
DBG("ACPCL %d AXCL %d AXEM %d AXFB %d CSG %d DIM %d DLJ %d DRC %d DPM %d EBTFF %d EDI %d FAI %d IPBS %d LKP %d PNKD %d PTKP %d TPD %d XPL %d PCC %d\n",
|
||||
mOpenCoreConfiguration.Kernel.Quirks.AppleCpuPmCfgLock,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.AppleXcpmCfgLock,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.AppleXcpmExtraMsrs,
|
||||
@ -1843,6 +1844,7 @@ void LOADER_ENTRY::StartLoader()
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ExtendBTFeatureFlags,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ExternalDiskIcons,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.IncreasePciBarSize,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.ForceAquantiaEthernet,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.LapicKernelPanic,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.PanicNoKextDump,
|
||||
mOpenCoreConfiguration.Kernel.Quirks.PowerTimeoutKernelPanic,
|
||||
|
Loading…
Reference in New Issue
Block a user