Cosmos/source/FrodeTest/Test/TransmitStatusDescriptorTest.cs
Scalpel_cp 05b23b6ba8 RTL driver changes.
Initializes buffers earlier, begin IRQ to detect incoming packet
Added Recieve Configuration Register. 
Loopback.
2008-03-22 02:38:08 +00:00

30 lines
994 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Cosmos.Driver.RTL8139.Register;
using Cosmos.Hardware.PC.Bus;
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
/*PCIDevice card = PCIBus.GetPCIDevice(0, 3, 0);
TransmitStatusDescriptor tsd = TransmitStatusDescriptor.Load(card);
Console.WriteLine("Before bit is cleared: " + tsd.TSD());
tsd.ClearOWNBit();
Console.WriteLine("After bit cleared: " + tsd.TSD());
*/
}
}
}