Permalink
Browse files

- Working on device driver system

  • Loading branch information...
tgiphil committed Oct 19, 2017
1 parent a2e670a commit 8599bd79b2be81d8dc282ce7d5e937fe524de745
View
@@ -1 +1 @@
start bin\Mosa.Tool.Launcher.exe -qemu bin\Mosa.HelloWorld.x86.exe
start bin\Mosa.Tool.Launcher.exe --qemu bin\Mosa.HelloWorld.x86.exe
@@ -8,7 +8,7 @@ namespace Mosa.DeviceDriver.ISA
/// CMOS Device Driver
/// </summary>
//[ISADeviceDriver(AutoLoad = true, BasePort = 0x0070, PortRange = 2, Platforms = PlatformArchitecture.X86)]
public class CMOSX : HardwareDeviceX
public class CMOSX : DeviceDriverX
{
/// <summary>
/// The command port
@@ -25,6 +25,9 @@ public class CMOSX : HardwareDeviceX
/// </summary>
protected SpinLock spinLock;
/// <summary>
/// Initializes this device.
/// </summary>
protected override void Initialize()
{
Device.Name = "CMOS";
@@ -37,10 +40,10 @@ protected override void Initialize()
public override void Start()
{
if (Device.Status == DeviceStatus.Available)
{
Device.Status = DeviceStatus.Online;
}
if (Device.Status != DeviceStatus.Available)
return;
Device.Status = DeviceStatus.Online;
}
/// <summary>
Oops, something went wrong.

0 comments on commit 8599bd7

Please sign in to comment.