Cosmos/source/FrodeTest/Test/SwitchTest.cs
Scalpel_cp 05b71e7825 RTL8139 driver now identifies its hardware revision.
Added EarlyRxStatusRegister, TransmitConfigurationRegister and a BinaryHelper class.
Added network settings to Qemu.exe startup
2008-03-15 01:00:44 +00:00

34 lines
844 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace FrodeTest.Test
{
public class SwitchTest
{
public static void RunTest()
{
Console.WriteLine(GetSwitchError());
}
public static string GetSwitchError()
{
byte hwverid = 255;
switch (hwverid)
{
case 192:
return "RTL8139";
case 224:
return "RTL8139A";
case 225:
return "RTL8139A-G";
case 232:
return "RTL8139C";
case 235:
return "RTL8139B";
default:
return "Unknown RTL813xxx revision";
}
}
}
}