@@ -24831,61 +24831,67 @@ const size_t vendorModSize {10};
24831
24831
24832
24832
// ControllerMod section
24833
24833
24834
- static const uint8_t patchBuf840[] { 0x20, 0x8C , };
24835
- static const uint8_t patchBuf841[] { 0xA0, 0x8C , };
24834
+ static const uint8_t patchBuf840[] { 0x56, 0x3B , };
24835
+ static const uint8_t patchBuf841[] { 0x04, 0x0F , };
24836
24836
static const KextPatch patches64[] {
24837
24837
{ { &kextList[0], patchBuf840, patchBuf841, 2, 4 }, 13, KernelPatcher::KernelAny },
24838
24838
};
24839
- static const uint8_t patchBuf842[] { 0x0C, 0x0A, 0x00, 0x00, };
24840
- static const uint8_t patchBuf843[] { 0x0C, 0x0C, 0x00, 0x00, };
24841
- static const uint8_t patchBuf844[] { 0x0B, 0x0C, 0x00, 0x00, };
24839
+ static const uint8_t patchBuf842[] { 0x20, 0x8C, };
24840
+ static const uint8_t patchBuf843[] { 0xA0, 0x8C, };
24841
+ static const KextPatch patches65[] {
24842
+ { { &kextList[0], patchBuf842, patchBuf843, 2, 4 }, 13, KernelPatcher::KernelAny },
24843
+ };
24844
+ static const uint8_t patchBuf844[] { 0x0C, 0x0A, 0x00, 0x00, };
24842
24845
static const uint8_t patchBuf845[] { 0x0C, 0x0C, 0x00, 0x00, };
24843
- static const uint8_t patchBuf846[] { 0x3D , 0x0C, 0x0A , 0x00, 0x00, };
24844
- static const uint8_t patchBuf847[] { 0x3D, 0x0C, 0x0C, 0x00, 0x00, };
24845
- static const uint8_t patchBuf848[] { 0x3D, 0x0B, 0x0C , 0x00, 0x00, };
24846
+ static const uint8_t patchBuf846[] { 0x0B , 0x0C, 0x00, 0x00, };
24847
+ static const uint8_t patchBuf847[] { 0x0C, 0x0C, 0x00, 0x00, };
24848
+ static const uint8_t patchBuf848[] { 0x3D, 0x0C, 0x0A , 0x00, 0x00, };
24846
24849
static const uint8_t patchBuf849[] { 0x3D, 0x0C, 0x0C, 0x00, 0x00, };
24847
- static const uint8_t patchBuf850[] { 0x3D, 0x0C, 0x0A , 0x00, 0x00, };
24850
+ static const uint8_t patchBuf850[] { 0x3D, 0x0B, 0x0C , 0x00, 0x00, };
24848
24851
static const uint8_t patchBuf851[] { 0x3D, 0x0C, 0x0C, 0x00, 0x00, };
24849
- static const KextPatch patches65[] {
24850
- { { &kextList[0], patchBuf842, patchBuf843, 4, 4 }, 13, 13 },
24851
- { { &kextList[0], patchBuf844, patchBuf845, 4, 2 }, 13, 13 },
24852
- { { &kextList[0], patchBuf846, patchBuf847, 5, 3 }, 14, 14 },
24853
- { { &kextList[0], patchBuf848, patchBuf849, 5, 1 }, 14, 14 },
24854
- { { &kextList[0], patchBuf850, patchBuf851, 5, 5 }, 15, KernelPatcher::KernelAny },
24855
- };
24856
- static const uint8_t patchBuf852[] { 0x20, 0x8C, };
24857
- static const uint8_t patchBuf853[] { 0x20, 0x8D, };
24852
+ static const uint8_t patchBuf852[] { 0x3D, 0x0C, 0x0A, 0x00, 0x00, };
24853
+ static const uint8_t patchBuf853[] { 0x3D, 0x0C, 0x0C, 0x00, 0x00, };
24858
24854
static const KextPatch patches66[] {
24859
- { { &kextList[0], patchBuf852, patchBuf853, 2, 4 }, 13, KernelPatcher::KernelAny },
24860
- };
24861
- static const uint8_t patchBuf854[] { 0x01, 0x05, 0x09, 0x00, 0x00, 0x04, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x02, 0x04, 0x0A, 0x00, 0x00, 0x04, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x03, 0x06, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, };
24862
- static const uint8_t patchBuf855[] { 0x01, 0x05, 0x09, 0x00, 0x00, 0x08, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x02, 0x04, 0x0A, 0x00, 0x00, 0x08, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x03, 0x06, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, };
24855
+ { { &kextList[0], patchBuf844, patchBuf845, 4, 4 }, 13, 13 },
24856
+ { { &kextList[0], patchBuf846, patchBuf847, 4, 2 }, 13, 13 },
24857
+ { { &kextList[0], patchBuf848, patchBuf849, 5, 3 }, 14, 14 },
24858
+ { { &kextList[0], patchBuf850, patchBuf851, 5, 1 }, 14, 14 },
24859
+ { { &kextList[0], patchBuf852, patchBuf853, 5, 5 }, 15, KernelPatcher::KernelAny },
24860
+ };
24861
+ static const uint8_t patchBuf854[] { 0x20, 0x8C, };
24862
+ static const uint8_t patchBuf855[] { 0x20, 0x8D, };
24863
24863
static const KextPatch patches67[] {
24864
- { { &kextList[1 ], patchBuf854, patchBuf855, 36, 1 }, 14 , KernelPatcher::KernelAny },
24864
+ { { &kextList[0 ], patchBuf854, patchBuf855, 2, 4 }, 13 , KernelPatcher::KernelAny },
24865
24865
};
24866
- static const uint8_t patchBuf856[] { 0x02 , 0x05, 0x00 , 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x04 , 0x00, 0x00, 0x03 , 0x04, 0x00 , 0x00, 0x00, 0x04, 0x00, 0x00, 0x81 , 0x00, 0x00, 0x00, 0x04 , 0x06, 0x00 , 0x00, 0x00, 0x04, 0x00, 0x00, 0x81 , 0x00, 0x00, 0x00, };
24867
- static const uint8_t patchBuf857[] { 0x02 , 0x05, 0x00 , 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x04 , 0x00, 0x00, 0x03 , 0x04, 0x00 , 0x00, 0x00, 0x08, 0x00, 0x00, 0x81 , 0x00, 0x00, 0x00, 0x04 , 0x06, 0x00 , 0x00, 0x00, 0x08, 0x00, 0x00, 0x81 , 0x00, 0x00, 0x00, };
24866
+ static const uint8_t patchBuf856[] { 0x01 , 0x05, 0x09 , 0x00, 0x00, 0x04, 0x00, 0x00, 0x87, 0x00 , 0x00, 0x00, 0x02 , 0x04, 0x0A , 0x00, 0x00, 0x04, 0x00, 0x00, 0x87 , 0x00, 0x00, 0x00, 0x03 , 0x06, 0x08 , 0x00, 0x00, 0x04, 0x00, 0x00, 0x11 , 0x00, 0x00, 0x00, };
24867
+ static const uint8_t patchBuf857[] { 0x01 , 0x05, 0x09 , 0x00, 0x00, 0x08, 0x00, 0x00, 0x87, 0x00 , 0x00, 0x00, 0x02 , 0x04, 0x0A , 0x00, 0x00, 0x08, 0x00, 0x00, 0x87 , 0x00, 0x00, 0x00, 0x03 , 0x06, 0x08 , 0x00, 0x00, 0x08, 0x00, 0x00, 0x11 , 0x00, 0x00, 0x00, };
24868
24868
static const KextPatch patches68[] {
24869
- { { &kextList[3 ], patchBuf856, patchBuf857, 36, 1 }, 13 , KernelPatcher::KernelAny },
24869
+ { { &kextList[1 ], patchBuf856, patchBuf857, 36, 1 }, 14 , KernelPatcher::KernelAny },
24870
24870
};
24871
- static const uint8_t patchBuf858[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01 , 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01 , 0x00, 0x00, };
24872
- static const uint8_t patchBuf859[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01 , 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01 , 0x00, 0x00, };
24871
+ static const uint8_t patchBuf858[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x04 , 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x81, 0x00 , 0x00, 0x00, };
24872
+ static const uint8_t patchBuf859[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x04 , 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x81, 0x00 , 0x00, 0x00, };
24873
24873
static const KextPatch patches69[] {
24874
- { { &kextList[3], patchBuf858, patchBuf859, 24, 4 }, 13, KernelPatcher::KernelAny },
24874
+ { { &kextList[3], patchBuf858, patchBuf859, 36, 1 }, 13, KernelPatcher::KernelAny },
24875
24875
};
24876
24876
static const uint8_t patchBuf860[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, };
24877
24877
static const uint8_t patchBuf861[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, };
24878
24878
static const KextPatch patches70[] {
24879
24879
{ { &kextList[3], patchBuf860, patchBuf861, 24, 4 }, 13, KernelPatcher::KernelAny },
24880
24880
};
24881
+ static const uint8_t patchBuf862[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, };
24882
+ static const uint8_t patchBuf863[] { 0x02, 0x05, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x07, 0x01, 0x00, 0x00, };
24883
+ static const KextPatch patches71[] {
24884
+ { { &kextList[3], patchBuf862, patchBuf863, 24, 4 }, 13, KernelPatcher::KernelAny },
24885
+ };
24881
24886
ControllerModInfo controllerMod[] {
24882
- { "Z97 HDEF controller", 0x8086, 0x8CA0, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches64, 1 },
24883
- { "HD4600 controller", 0x8086, 0xC0C, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches65, 5 },
24884
- { "X99 HDEF controller", 0x8086, 0x8D20, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches66, 1 },
24885
- { "Intel HD4600 HDMI (ig-platform-id 0x0d220003)", 0x8086, 0x412, nullptr, 0, 220332035, IOUtil::ComputerModel::ComputerDesktop, patches67, 1 },
24886
- { "Intel HD4000 HDMI (ig-platform-id 0x01660003)", 0x8086, 0x166, nullptr, 0, 23461891, IOUtil::ComputerModel::ComputerLaptop, patches68, 1 },
24887
- { "Intel HD4000 HDMI (ig-platform-id 0x01660009)", 0x8086, 0x166, nullptr, 0, 23461897, IOUtil::ComputerModel::ComputerLaptop, patches69, 1 },
24888
- { "Intel HD4000 HDMI (ig-platform-id 0x0166000A) Desktop only", 0x8086, 0x166, nullptr, 0, 23461898, IOUtil::ComputerModel::ComputerDesktop, patches70, 1 },
24887
+ { "Atom Z36xxx/Z37xxx Audio Controller", 0x8086, 0xF04, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches64, 1 },
24888
+ { "Z97 HDEF controller", 0x8086, 0x8CA0, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches65, 1 },
24889
+ { "HD4600 controller", 0x8086, 0xC0C, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches66, 5 },
24890
+ { "X99 HDEF controller", 0x8086, 0x8D20, nullptr, 0, ControllerModInfo::PlatformAny, IOUtil::ComputerModel::ComputerAny, patches67, 1 },
24891
+ { "Intel HD4600 HDMI (ig-platform-id 0x0d220003)", 0x8086, 0x412, nullptr, 0, 220332035, IOUtil::ComputerModel::ComputerDesktop, patches68, 1 },
24892
+ { "Intel HD4000 HDMI (ig-platform-id 0x01660003)", 0x8086, 0x166, nullptr, 0, 23461891, IOUtil::ComputerModel::ComputerLaptop, patches69, 1 },
24893
+ { "Intel HD4000 HDMI (ig-platform-id 0x01660009)", 0x8086, 0x166, nullptr, 0, 23461897, IOUtil::ComputerModel::ComputerLaptop, patches70, 1 },
24894
+ { "Intel HD4000 HDMI (ig-platform-id 0x0166000A) Desktop only", 0x8086, 0x166, nullptr, 0, 23461898, IOUtil::ComputerModel::ComputerDesktop, patches71, 1 },
24889
24895
};
24890
24896
24891
- const size_t controllerModSize {7 };
24897
+ const size_t controllerModSize {8 };
0 commit comments