mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
Added EarlyRxStatusRegister, TransmitConfigurationRegister and a BinaryHelper class. Added network settings to Qemu.exe startup
34 lines
844 B
C#
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";
|
|
}
|
|
}
|
|
}
|
|
}
|