mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
Merge pull request #856 from valentinbreiz/patch-1
Little fix on PCI VendorID.
This commit is contained in:
commit
5378447924
2 changed files with 5 additions and 4 deletions
|
|
@ -135,7 +135,7 @@ namespace Cosmos.HAL.Drivers.PCI.Network
|
|||
public static void FindAll()
|
||||
{
|
||||
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)
|
||||
// {
|
||||
// AMDPCNetII nic = new AMDPCNetII((PCIDeviceNormal) device);
|
||||
|
|
@ -345,4 +345,4 @@ namespace Cosmos.HAL.Drivers.PCI.Network
|
|||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,13 +61,14 @@ namespace Cosmos.HAL
|
|||
public enum VendorID
|
||||
{
|
||||
Intel = 0x8086,
|
||||
AMD = 0x0438,
|
||||
AMD = 0x1022,
|
||||
VMWare = 0x15AD
|
||||
}
|
||||
|
||||
public enum DeviceID
|
||||
{
|
||||
SVGAIIAdapter = 0x0405
|
||||
SVGAIIAdapter = 0x0405,
|
||||
PCNETII = 0x2000
|
||||
}
|
||||
|
||||
public class PCI
|
||||
|
|
|
|||
Loading…
Reference in a new issue