Skip to content

Commit

Permalink
Merge pull request CosmosOS#856 from valentinbreiz/patch-1
Browse files Browse the repository at this point in the history
Little fix on PCI VendorID.
  • Loading branch information
fanoI authored Jan 11, 2018
2 parents 40d54b2 + ac3a392 commit 5378447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/Cosmos.HAL2/Drivers/PCI/Network/AMDPCNetII.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected void HandleNetworkInterrupt(ref INTs.IRQContext aContext)
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);
Expand Down Expand Up @@ -345,4 +345,4 @@ private void ReadRawData()

#endregion
}
}
}
5 changes: 3 additions & 2 deletions source/Cosmos.HAL2/PCI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ public enum ProgramIF
public enum VendorID
{
Intel = 0x8086,
AMD = 0x0438,
AMD = 0x1022,
VMWare = 0x15AD
}

public enum DeviceID
{
SVGAIIAdapter = 0x0405
SVGAIIAdapter = 0x0405,
PCNETII = 0x2000
}

public class PCI
Expand Down

0 comments on commit 5378447

Please sign in to comment.