Add support for Aquantia AQtion AQC100 Ethernet controllers

This commit is contained in:
Hoang Hong Quan
2025-02-06 20:55:41 +07:00
parent cf25b6d3d1
commit 4916fe2ff9
5 changed files with 21 additions and 6 deletions

View File

@@ -3052,7 +3052,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "UsbReset", 0x00001000)
else:
selected_patches.append("PLUG")
if not any(network_props.get("Device ID") in pci_data.NetworkIDs[108:270] for network_props in hardware_report.get("Network", {}).values()):
if not any(network_props.get("Device ID") in pci_data.NetworkIDs[108:280] for network_props in hardware_report.get("Network", {}).values()):
selected_patches.append("RMNE")
if hardware_report.get("Motherboard").get("Chipset") in ("C610/X99", "Wellsburg", "X299"):

View File

@@ -237,7 +237,7 @@ class CompatibilityChecker:
if 109 < device_index < 115:
min_version = "19.0.0"
if 262 < device_index < 270:
if 262 < device_index < 280:
min_version = "21.0.0"
if pci_data.NetworkIDs.index(device_id) < 108:

View File

@@ -313,6 +313,10 @@ class ConfigProdigy:
"IOName": "pci14e4,16b4",
"device-id": self.utils.hex_to_bytes("B4160000")
})
elif 277 < device_index < 280:
add_device_property(network_props.get("PCI Path"), {
"IOName": "1D6A-91B1"
})
storage_controllers_items = hardware_report.get("Storage Controllers", {}).items()
@@ -376,7 +380,7 @@ class ConfigProdigy:
if "AMD" in cpu_manufacturer:
kernel_patch.extend(self.g.get_kernel_patches("AMD Vanilla Patches", self.g.amd_vanilla_patches_url))
if any(network_props.get("Device ID") in pci_data.NetworkIDs[263:270] for network_props in networks.values()):
if any(network_props.get("Device ID") in pci_data.NetworkIDs[263:280] for network_props in networks.values()):
kernel_patch.extend(self.g.get_kernel_patches("Aquantia macOS Patches", self.g.aquantia_macos_patches_url))
for kext in kexts:
@@ -581,7 +585,7 @@ class ConfigProdigy:
config["Kernel"]["Quirks"]["CustomSMBIOSGuid"] = True
config["Kernel"]["Quirks"]["DisableIoMapper"] = not "AMD" in hardware_report.get("CPU").get("Manufacturer")
config["Kernel"]["Quirks"]["DisableRtcChecksum"] = "ASUS" in hardware_report.get("Motherboard").get("Name") or "HP " in hardware_report.get("Motherboard").get("Name")
config["Kernel"]["Quirks"]["ForceAquantiaEthernet"] = any(network_props.get("Device ID") in pci_data.NetworkIDs[263:270] for network_props in hardware_report.get("Network", {}).values())
config["Kernel"]["Quirks"]["ForceAquantiaEthernet"] = any(network_props.get("Device ID") in pci_data.NetworkIDs[263:280] for network_props in hardware_report.get("Network", {}).values())
config["Kernel"]["Quirks"]["LapicKernelPanic"] = "HP " in hardware_report.get("Motherboard").get("Name")
config["Kernel"]["Quirks"]["PanicNoKextDump"] = config["Kernel"]["Quirks"]["PowerTimeoutKernelPanic"] = True
config["Kernel"]["Quirks"]["ProvideCurrentCpuInfo"] = "AMD" in hardware_report.get("CPU").get("Manufacturer") or hardware_report.get("CPU").get("Codename") in cpu_data.IntelCPUGenerations[:2]

View File

@@ -502,11 +502,22 @@ NetworkIDs = [
"1D6A-0001",
"1D6A-07B1",
"1D6A-D107",
"1D6A-80B1",
"1D6A-87B1",
"1D6A-88B1",
"1D6A-89B1",
"1D6A-91B1",
"1D6A-92B1",
# Aquantia AQC113
"1D6A-14C0",
"1D6A-00C0",
"1D6A-04C0",
"1D6A-14C0",
"1D6A-34C0",
"1D6A-93C0",
"1D6A-94C0",
# Aquantia AQC100
"1D6A-00B1",
"1D6A-80B1",
# RtWlanU.kext, RtWlanU1827.kext and RT2870USBWirelessDriver.kext
"0409-0408",
"0411-0242",

View File

@@ -159,7 +159,7 @@ class KextMaestro:
except:
continue
ethernet_device = ethernet_device or 107 < device_index < 270
ethernet_device = ethernet_device or 107 < device_index < 280
if device_index < 21 and self.utils.parse_darwin_version(macos_version) >= self.utils.parse_darwin_version("23.0.0"):
selected_kexts.append("IOSkywalkFamily")