/// <summary> /// Reads the scan code from the device /// </summary> protected void ReadScanCode() { spinLock.Enter(); byte v = commandPort.Read8(); AddToFIFO(v); HAL.DebugWrite(" scancode: " + v.ToString() + " "); spinLock.Exit(); }
/// <summary> /// Setups this hardware device driver /// </summary> /// <returns></returns> public override bool Setup(IHardwareResources hardwareResources) { this.hardwareResources = hardwareResources; base.name = "VMWARE_SVGA_0x" + hardwareResources.GetIOPortRegion(0).BaseIOPort.ToString("X"); indexPort = hardwareResources.GetIOPort(0, 0); valuePort = hardwareResources.GetIOPort(0, 1); HAL.DebugWrite("**G**"); memory = base.hardwareResources.GetMemory(0); HAL.DebugWrite("**I**"); fifo = base.hardwareResources.GetMemory(1); HAL.DebugWrite("**J**"); return(true); }