Add support for Broadcom BCM57XX Ethernet series

This commit is contained in:
Hoang Hong Quan
2024-11-20 09:49:59 +07:00
parent 6516859e4e
commit d81ff30da6
4 changed files with 82 additions and 1 deletions
+10 -1
View File
@@ -241,7 +241,7 @@ class ConfigProdigy:
for network_name, network_props in hardware_report.get("Network", {}).items():
device_id = network_props.get("Device ID")
if self.utils.contains_any(pci_data.NetworkIDs, device_id, start=21, end=108) and network_props.get("PCI Path"):
if device_id in pci_data.NetworkIDs[21:108] and network_props.get("PCI Path"):
deviceproperties_add[network_props.get("PCI Path")] = {
"IOName": "pci14e4,43a0",
"compatible": "pci106b,117",
@@ -286,6 +286,15 @@ class ConfigProdigy:
"model": gpu_name
}
for network_name, network_props in hardware_report.get("Network", {}).items():
device_id = network_props.get("Device ID")
if device_id in pci_data.NetworkIDs[219:248] and network_props.get("PCI Path"):
deviceproperties_add[network_props.get("PCI Path")] = {
"IOName": "pci14e4,16b4",
"device-id": self.utils.hex_to_bytes("B4160000")
}
network_items = hardware_report.get("Network", {}).items()
storage_controllers_items = hardware_report.get("Storage Controllers", {}).items()