mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
manual set _UID for PNLS device
Signed-off-by: SergeySlice <isakov-sl@bk.ru>
This commit is contained in:
parent
916b9cf2d2
commit
8e5bfb6a61
@ -245,6 +245,8 @@
|
||||
</dict>
|
||||
<key>#SuspendOverride</key>
|
||||
<false/>
|
||||
<key>PNLF_UID</key>
|
||||
<string>0x0A</string>
|
||||
<key>Name</key>
|
||||
<string>DSDT.aml</string>
|
||||
<key>ReuseFFFF</key>
|
||||
@ -527,21 +529,21 @@
|
||||
<key>Replace</key>
|
||||
<data>SEQgNjQ1MA==</data>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Comment</key>
|
||||
<string>Patch 8 apples</string>
|
||||
<key>Disabled</key>
|
||||
<true/>
|
||||
<key>Find</key>
|
||||
<data>AQAAdSI=</data>
|
||||
<key>MatchOS</key>
|
||||
<string>10.13</string>
|
||||
<key>Name</key>
|
||||
<string>IOGraphicsFamily</string>
|
||||
<key>Replace</key>
|
||||
<data>AQAA6yI=</data>
|
||||
</dict>
|
||||
</array>
|
||||
<dict>
|
||||
<key>Comment</key>
|
||||
<string>Patch 8 apples</string>
|
||||
<key>Disabled</key>
|
||||
<true/>
|
||||
<key>Find</key>
|
||||
<data>AQAAdSI=</data>
|
||||
<key>MatchOS</key>
|
||||
<string>10.13</string>
|
||||
<key>Name</key>
|
||||
<string>IOGraphicsFamily</string>
|
||||
<key>Replace</key>
|
||||
<data>AQAA6yI=</data>
|
||||
</dict>
|
||||
</array>
|
||||
<key>KernelXCPM</key>
|
||||
<false/>
|
||||
<key>PanicNoKextDump</key>
|
||||
|
@ -1909,7 +1909,14 @@ UINT32 AddPNLF (UINT8 *dsdt, UINT32 len)
|
||||
return len;
|
||||
}
|
||||
|
||||
//Slice - add custom UID
|
||||
if (gSettings.PNLF_UID != 0xFF) {
|
||||
((CHAR8*)pnlf)[39] = gSettings.PNLF_UID;
|
||||
}
|
||||
|
||||
// _UID reworked by Sherlocks. 2018.10.08
|
||||
//Slice - it can't depends on video DeviceID. It is hardware ID of LCD screen.
|
||||
#if 0
|
||||
Status = gBS->LocateHandleBuffer (
|
||||
ByProtocol,
|
||||
&gEfiPciIoProtocolGuid,
|
||||
@ -2024,6 +2031,7 @@ UINT32 AddPNLF (UINT8 *dsdt, UINT32 len)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
i = adr - 2;
|
||||
len = move_data(i, dsdt, len, sizeof(pnlf));
|
||||
|
@ -1173,6 +1173,7 @@ typedef struct {
|
||||
BOOLEAN SlpWak;
|
||||
BOOLEAN UseIntelHDMI;
|
||||
UINT8 AFGLowPowerState;
|
||||
UINT8 PNLF_UID;
|
||||
// UINT8 pad83[4];
|
||||
|
||||
|
||||
|
@ -5582,6 +5582,9 @@ GetUserSettings(
|
||||
Prop = GetProperty (Dict2, "Rtc8Allowed");
|
||||
gSettings.Rtc8Allowed = IsPropertyTrue (Prop);
|
||||
|
||||
Prop = GetProperty (Dict2, "PNLF_UID");
|
||||
gSettings.PNLF_UID = (UINT8)GetPropertyInteger (Prop, 0x0A);
|
||||
|
||||
Prop = GetProperty (Dict2, "FixMask");
|
||||
gSettings.FixDsdt = (UINT32)GetPropertyInteger (Prop, gSettings.FixDsdt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user