Cosmos/source/FrodeTest/Test/TransmitStatusDescriptorTest.cs
2008-03-16 01:10:32 +00:00

28 lines
949 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Cosmos.Driver.RTL8139.Register;
namespace FrodeTest.Test
{
class TransmitStatusDescriptorTest
{
public static void RunTest()
{
//Testing that the TSD is rotating between the four Descriptors
/*for (int i = 0; i < 10; i++)
{
Console.WriteLine(TransmitStatusDescriptor.GetCurrentTSDescriptor());
TransmitStatusDescriptor.IncrementTSDescriptor();
}*/
//Testing that OWN bit is cleared
TransmitStatusDescriptor tsd = TransmitStatusDescriptor.Load(Cosmos.Hardware.PC.Bus.PCIDevice.GetPCIDevice(0, 3, 0));
Console.WriteLine("Before bit is cleared: " + tsd.TSD());
tsd.ClearOWNBit();
Console.WriteLine("After bit cleared: " + tsd.TSD());
}
}
}