mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-05 07:42:45 +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()
|
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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue