Merge pull request #856 from valentinbreiz/patch-1

Little fix on PCI VendorID.
This commit is contained in:
fanoI 2018-01-11 09:53:18 +01:00 committed by GitHub
commit 5378447924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -135,7 +135,7 @@ namespace Cosmos.HAL.Drivers.PCI.Network
public static void FindAll() public static void FindAll()
{ {
Console.WriteLine("Scanning for AMD PCNetII cards..."); Console.WriteLine("Scanning for AMD PCNetII cards...");
// PCIDevice device = Cosmos.HAL.PCI.GetDevice(0x1022, 0x2000); // PCIDevice device = Cosmos.HAL.PCI.GetDevice(VendorID.AMD, DeviceID.PCNETII);
// if (device != null) // if (device != null)
// { // {
// AMDPCNetII nic = new AMDPCNetII((PCIDeviceNormal) device); // AMDPCNetII nic = new AMDPCNetII((PCIDeviceNormal) device);

View file

@ -61,13 +61,14 @@ namespace Cosmos.HAL
public enum VendorID public enum VendorID
{ {
Intel = 0x8086, Intel = 0x8086,
AMD = 0x0438, AMD = 0x1022,
VMWare = 0x15AD VMWare = 0x15AD
} }
public enum DeviceID public enum DeviceID
{ {
SVGAIIAdapter = 0x0405 SVGAIIAdapter = 0x0405,
PCNETII = 0x2000
} }
public class PCI public class PCI