Add support for Aquantia AQtion Ethernet Controllers

This commit is contained in:
Hoang Hong Quan
2025-01-14 14:15:13 +07:00
parent e2001a8553
commit 86725b28fb
6 changed files with 52 additions and 33 deletions
+24 -14
View File
@@ -225,32 +225,42 @@ class CompatibilityChecker:
for device_name, device_props in self.hardware_report.get("Network", {}).items():
bus_type = device_props.get("Bus Type")
device_id = device_props.get("Device ID")
is_device_supported = device_id in pci_data.NetworkIDs
try:
device_index = pci_data.NetworkIDs.index(device_id)
max_version = os_data.get_latest_darwin_version()
min_version = os_data.get_lowest_darwin_version()
ocl_patched_max_version = max_version
ocl_patched_min_version = "23.0.0"
max_version = os_data.get_latest_darwin_version()
min_version = os_data.get_lowest_darwin_version()
ocl_patched_max_version = max_version
ocl_patched_min_version = "20.0.0"
if device_id in ("8086-15F2", "8086-15F3", "8086-15F8", "8086-125B", "8086-125C", "8086-125D", "8086-3102"):
min_version = "19.0.0"
if 109 < device_index < 115:
min_version = "19.0.0"
if 262 < device_index < 270:
min_version = "21.0.0"
if not is_device_supported:
if bus_type.startswith("PCI"):
device_props["Compatibility"] = (None, None)
else:
if pci_data.NetworkIDs.index(device_id) < 108:
if device_id == primary_wifi_device:
if device_id in ("14E4-43A0", "14E4-43A3", "14E4-43BA"):
if device_index == 13 or 17 < device_index < 21:
max_version = "22.99.99"
ocl_patched_min_version = "23.0.0"
elif device_index < 12:
max_version = "17.99.99"
if device_index < 21:
device_props["OCLP Compatibility"] = (ocl_patched_max_version, ocl_patched_min_version)
self.ocl_patched_macos_version = (ocl_patched_max_version, self.ocl_patched_macos_version[-1] if self.ocl_patched_macos_version and self.utils.parse_darwin_version(self.ocl_patched_macos_version[-1]) < self.utils.parse_darwin_version(device_props.get("OCLP Compatibility")[-1]) else device_props.get("OCLP Compatibility")[-1])
device_props["Compatibility"] = (max_version, min_version)
primary_wifi_device = None
else:
device_props["Compatibility"] = (None, None)
else:
device_props["Compatibility"] = (max_version, min_version)
except:
pass
if bus_type.startswith("PCI") and not device_props.get("Compatibility"):
device_props["Compatibility"] = (None, None)
print("{}- {}: {}".format(" "*3, device_name, self.show_macos_compatibility(device_props.get("Compatibility"))))
def check_storage_compatibility(self):