Beispiel #1
0
 public static void FindAll()
 {
     Console.WriteLine("Scanning for Realtek 8139 cards...");
     for (int i = 0; i < PCIBus.Devices.Length; i++)
     {
         var xDevice = PCIBus.Devices[i];
         //DebugWriteLine("VendorID: " + device.VendorID + " - DeviceID: " + device.DeviceID);
         if ((xDevice.VendorID == 0x10EC) && (xDevice.DeviceID == 0x8139) && (xDevice.Claimed == false))
         {
             RTL8139 nic = new RTL8139(xDevice);
             NetworkDevice.Add(nic);
         }
     }
 }
Beispiel #2
0
 public static void FindAll()
 {
     Console.WriteLine("Scanning for Realtek 8139 cards...");
     for(int i = 0; i < PCIBus.Devices.Length; i++)
     {
         var xDevice = PCIBus.Devices[i];
         //DebugWriteLine("VendorID: " + device.VendorID + " - DeviceID: " + device.DeviceID);
         if ((xDevice.VendorID == 0x10EC) && (xDevice.DeviceID == 0x8139) && (xDevice.Claimed == false))
         {
             RTL8139 nic = new RTL8139(xDevice);
             NetworkDevice.Add(nic);
         }
     }
 }