mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
embedded DataHubDxe and default for ARTFrequency
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
d5f0ca741c
commit
5d75cb7c69
@ -629,7 +629,7 @@
|
||||
#DataHub
|
||||
#VBoxAppleSim/VBoxAppleSim.inf
|
||||
#IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
|
||||
Protocols/DataHubDxe/DataHubDxe.inf
|
||||
#Protocols/DataHubDxe/DataHubDxe.inf
|
||||
#Protocols/DataHubStdErrDxe/DataHubStdErrDxe.inf
|
||||
|
||||
# foreign file system support
|
||||
|
@ -117,7 +117,7 @@ INF CloverEFI/CpuDxe/Cpu.inf
|
||||
|
||||
# DataHub
|
||||
#INF VBoxAppleSim/VBoxAppleSim.inf
|
||||
INF Protocols/DataHubDxe/DataHubDxe.inf
|
||||
#INF Protocols/DataHubDxe/DataHubDxe.inf
|
||||
#INF Protocols/DataHubStdErrDxe/DataHubStdErrDxe.inf
|
||||
#INF EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/PiSmbiosRecordOnDataHubSmbiosRecordThunk.inf
|
||||
# foreign file system support
|
||||
|
@ -29,6 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||
#include "DataHubExt.h"
|
||||
|
||||
#define DATA_HUB_INSTANCE_SIGNATURE SIGNATURE_32 ('D', 'H', 'u', 'b')
|
||||
typedef struct {
|
||||
@ -126,4 +127,11 @@ typedef struct {
|
||||
|
||||
#define FILTER_ENTRY_FROM_LINK(link) CR (link, DATA_HUB_FILTER_DRIVER, Link, EFI_DATA_HUB_FILTER_DRIVER_SIGNATURE)
|
||||
|
||||
extern
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
DataHubInstall (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
);
|
||||
#endif
|
||||
|
@ -133,6 +133,7 @@
|
||||
A5D12C38243A0C4D00DFA98A /* abort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5D12C37243A0C4D00DFA98A /* abort.cpp */; };
|
||||
A5D12C3B243A0C9E00DFA98A /* stdio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5D12C39243A0C9D00DFA98A /* stdio.cpp */; };
|
||||
A5D12C3F243A0CBB00DFA98A /* wchar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5D12C3D243A0CBA00DFA98A /* wchar.cpp */; };
|
||||
A5F9AF9225D024C200706BC0 /* DataHub.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5F9AF9125D024C200706BC0 /* DataHub.cpp */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@ -7707,6 +7708,9 @@
|
||||
A5E284352347AE900068ED34 /* AIM.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = AIM.c; sourceTree = "<group>"; };
|
||||
A5E284362347AE900068ED34 /* AIM.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AIM.h; sourceTree = "<group>"; };
|
||||
A5E284372347AE900068ED34 /* AptioInputFix.inf */ = {isa = PBXFileReference; lastKnownFileType = text; path = AptioInputFix.inf; sourceTree = "<group>"; };
|
||||
A5F9AF8D25D024C100706BC0 /* DataHub.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataHub.h; sourceTree = "<group>"; };
|
||||
A5F9AF9125D024C200706BC0 /* DataHub.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataHub.cpp; sourceTree = "<group>"; };
|
||||
A5F9AF9325D025B600706BC0 /* DataHubExt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DataHubExt.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -7868,6 +7872,9 @@
|
||||
A52313252448B2BE00421FB2 /* Console.h */,
|
||||
A5456D0D23FC5AEF000BF18C /* cpu.cpp */,
|
||||
A52313262448B2CA00421FB2 /* cpu.h */,
|
||||
A5F9AF9125D024C200706BC0 /* DataHub.cpp */,
|
||||
A5F9AF8D25D024C100706BC0 /* DataHub.h */,
|
||||
A5F9AF9325D025B600706BC0 /* DataHubExt.h */,
|
||||
A5456D4623FC5B07000BF18C /* DataHubCpu.cpp */,
|
||||
A52313272448B2D200421FB2 /* DataHubCpu.h */,
|
||||
A5456D4523FC5B07000BF18C /* device_inject.cpp */,
|
||||
@ -23726,6 +23733,7 @@
|
||||
A57CF7D4241BE0FC006DE51E /* strcmp_test.cpp in Sources */,
|
||||
A5456D4A23FC5B08000BF18C /* FixBiosDsdt.cpp in Sources */,
|
||||
A5456CDB23FC5A88000BF18C /* legacy.cpp in Sources */,
|
||||
A5F9AF9225D024C200706BC0 /* DataHub.cpp in Sources */,
|
||||
A5D12C3B243A0C9E00DFA98A /* stdio.cpp in Sources */,
|
||||
12A60F5C1DB610500068BF8B /* load_icns.c in Sources */,
|
||||
12A60F5D1DB610500068BF8B /* picopng.c in Sources */,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Nvram.h
|
||||
* DataHubCpu.h
|
||||
*
|
||||
* Created on: 16 Apr 2020
|
||||
* Author: jief
|
||||
@ -9,6 +9,7 @@
|
||||
#define PLATFORM_DATAHUBCPU_H_
|
||||
|
||||
#include "../gui/menu_items/menu_items.h"
|
||||
#include "DataHubExt.h"
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
|
@ -3783,20 +3783,28 @@ static void getACPISettings(const TagDict *CfgDict)
|
||||
gSettings.EnableISS = IsPropertyNotNullAndTrue(Prop);
|
||||
|
||||
Prop = SSDTDict->propertyForKey("EnableC7");
|
||||
if (Prop) {
|
||||
gSettings.EnableC7 = IsPropertyNotNullAndTrue(Prop);
|
||||
DBG("EnableC7: %s\n", gSettings.EnableC7 ? "yes" : "no");
|
||||
}
|
||||
|
||||
Prop = SSDTDict->propertyForKey("EnableC6");
|
||||
if (Prop) {
|
||||
gSettings.EnableC6 = IsPropertyNotNullAndTrue(Prop);
|
||||
DBG("EnableC6: %s\n", gSettings.EnableC6 ? "yes" : "no");
|
||||
}
|
||||
|
||||
Prop = SSDTDict->propertyForKey("EnableC4");
|
||||
if (Prop) {
|
||||
gSettings.EnableC4 = IsPropertyNotNullAndTrue(Prop);
|
||||
DBG("EnableC4: %s\n", gSettings.EnableC4 ? "yes" : "no");
|
||||
}
|
||||
|
||||
Prop = SSDTDict->propertyForKey("EnableC2");
|
||||
if (Prop) {
|
||||
gSettings.EnableC2 = IsPropertyNotNullAndTrue(Prop);
|
||||
DBG("EnableC2: %s\n", gSettings.EnableC2 ? "yes" : "no");
|
||||
}
|
||||
|
||||
Prop = SSDTDict->propertyForKey("C3Latency");
|
||||
gSettings.C3Latency = (UINT16)GetPropertyAsInteger(Prop, gSettings.C3Latency);
|
||||
@ -3861,8 +3869,10 @@ static void getACPISettings(const TagDict *CfgDict)
|
||||
gSettings.NoASPM = IsPropertyNotNullAndTrue(Prop);
|
||||
|
||||
Prop = ACPIDict->propertyForKey("smartUPS");
|
||||
if (Prop) {
|
||||
gSettings.smartUPS = IsPropertyNotNullAndTrue(Prop);
|
||||
DBG("smartUPS: present\n");
|
||||
}
|
||||
|
||||
Prop = ACPIDict->propertyForKey("PatchAPIC");
|
||||
gSettings.PatchNMI = IsPropertyNotNullAndTrue(Prop);
|
||||
@ -4831,7 +4841,9 @@ GetUserSettings(const TagDict* CfgDict, SETTINGS_DATA& settingsData)
|
||||
}
|
||||
|
||||
Prop = CPUDict->propertyForKey("UseARTFrequency");
|
||||
settingsData.UseARTFreq = IsPropertyNotNullAndTrue(Prop);
|
||||
if (Prop != NULL) {
|
||||
settingsData.UseARTFreq = IsPropertyNotNullAndTrue(Prop);
|
||||
}
|
||||
|
||||
settingsData.UserChange = FALSE;
|
||||
Prop = CPUDict->propertyForKey("BusSpeedkHz");
|
||||
|
@ -1470,4 +1470,8 @@ void GetDefaultCpuSettings()
|
||||
}
|
||||
gSettings.Turbo = gCPUStructure.Turbo;
|
||||
gSettings.SavingMode = 0xFF; //means not set
|
||||
|
||||
if (gCPUStructure.Model >= CPU_MODEL_SKYLAKE_D) {
|
||||
gSettings.UseARTFreq = true;
|
||||
}
|
||||
}
|
||||
|
@ -273,6 +273,9 @@
|
||||
Platform/VersionString.h
|
||||
Platform/Volumes.cpp
|
||||
Platform/Volumes.h
|
||||
Platform/DataHub.cpp
|
||||
Platform/DataHub.h
|
||||
Platform/DataHubExt.h
|
||||
../Version.h
|
||||
cpp_util/globals_ctor.cpp
|
||||
cpp_util/globals_ctor.h
|
||||
|
@ -2609,6 +2609,7 @@ RefitMain (IN EFI_HANDLE ImageHandle,
|
||||
if (!gFirmwareRevision) {
|
||||
// gFirmwareRevision = P__oolPrint(L"%d", gST->FirmwareRevision);
|
||||
}
|
||||
DataHubInstall (ImageHandle, SystemTable);
|
||||
InitializeConsoleSim();
|
||||
InitBooterLog();
|
||||
ZeroMem((void*)&gGraphics[0], sizeof(GFX_PROPERTIES) * 4);
|
||||
|
Loading…
Reference in New Issue
Block a user