/// <summary> /// Retrieve all AMD PCNet network cards found on computer. /// </summary> /// <returns>List of all AMD PCNet cards</returns> public static void FindAll() { Console.WriteLine("Scanning for AMD PCNet cards..."); foreach (PCIDevice device in Cosmos.Hardware2.PCIBus.Devices) { if ((device.VendorID == 0x1022) && (device.DeviceID == 0x2000) && (device.Claimed == false)) { AMDPCNet nic = new AMDPCNet(device); Console.WriteLine("Found AMD PCNet NIC on PCI " + device.Bus + ":" + device.Slot + ":" + device.Function); Console.WriteLine("NIC IRQ: " + device.InterruptLine); Console.WriteLine("NIC MAC Address: " + nic.MACAddress.ToString()); NetworkDevice.Add(nic); } } }