C# Class Mosa.DeviceDriver.PCI.S3.S3Trio64V2

Inheritance: HardwareDevice, IDevice, IPixelPaletteGraphicsDevice
Exibir arquivo Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
crtcControllerData IReadWriteIOPort
crtcControllerIndex IReadWriteIOPort
enhMapControllerIndex IReadWriteIOPort
frameBuffer IFrameBuffer
lfbControllerIndex IReadWriteIOPort
memory IMemory
miscOutputReader IReadWriteIOPort
miscOutputWriter IReadWriteIOPort
outportWrite IWriteOnlyIOPort
seqControllerData IReadWriteIOPort
seqControllerIndex IReadWriteIOPort
vgaEnableController IReadWriteIOPort

Public Methods

Method Description
Clear ( byte colorIndex ) : void

Clears device with the specified color index.

GetPalette ( byte colorIndex ) : Color

Gets the palette.

OnInterrupt ( ) : bool

Called when an interrupt is received.

ReadPixel ( ushort x, ushort y ) : byte

Reads the pixel.

S3Trio64V2 ( ) : Mosa.DeviceSystem

SetPalette ( byte colorIndex, Color color ) : void

Sets the palette.

Setup ( HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

WritePixel ( byte colorIndex, ushort x, ushort y ) : void

Writes the pixel.

Private Methods

Method Description
GetDisplayModeState ( ) : DisplayModeState

ReadCrtcRegister ( byte index ) : byte

ReadSequenceRegister ( byte index ) : byte

Reads in the sequence register's current value. The register is chosen by the given index.

SetDisplayModeState ( DisplayModeState dpmsMode ) : bool

WriteCrtcRegister ( byte index, byte value ) : void

WriteCrtcRegister ( byte index, byte value, byte mask ) : void

WriteSequenceRegister ( byte index, byte value ) : void

Write a value to the indexed sequence register.

WriteSequenceRegister ( byte index, byte value, byte mask ) : void

Write a masked value to the indexed sequence register.

Method Details

Clear() public method

Clears device with the specified color index.
public Clear ( byte colorIndex ) : void
colorIndex byte Index of the color.
return void

GetPalette() public method

Gets the palette.
public GetPalette ( byte colorIndex ) : Color
colorIndex byte Index of the color.
return Mosa.DeviceSystem.Color

OnInterrupt() public method

Called when an interrupt is received.
public OnInterrupt ( ) : bool
return bool

ReadPixel() public method

Reads the pixel.
public ReadPixel ( ushort x, ushort y ) : byte
x ushort The x.
y ushort The y.
return byte

S3Trio64V2() public method

public S3Trio64V2 ( ) : Mosa.DeviceSystem
return Mosa.DeviceSystem

SetPalette() public method

Sets the palette.
public SetPalette ( byte colorIndex, Color color ) : void
colorIndex byte Index of the color.
color Mosa.DeviceSystem.Color The color.
return void

Setup() public method

Setups this hardware device driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources HardwareResources
return bool

Start() public method

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
return DeviceDriverStartStatus

WritePixel() public method

Writes the pixel.
public WritePixel ( byte colorIndex, ushort x, ushort y ) : void
colorIndex byte Index of the color.
x ushort The x.
y ushort The y.
return void

Property Details

crtcControllerData protected_oe property

protected IReadWriteIOPort crtcControllerData
return IReadWriteIOPort

crtcControllerIndex protected_oe property

protected IReadWriteIOPort crtcControllerIndex
return IReadWriteIOPort

enhMapControllerIndex protected_oe property

protected IReadWriteIOPort enhMapControllerIndex
return IReadWriteIOPort

frameBuffer protected_oe property

protected IFrameBuffer frameBuffer
return IFrameBuffer

lfbControllerIndex protected_oe property

protected IReadWriteIOPort lfbControllerIndex
return IReadWriteIOPort

memory protected_oe property

protected IMemory memory
return IMemory

miscOutputReader protected_oe property

protected IReadWriteIOPort miscOutputReader
return IReadWriteIOPort

miscOutputWriter protected_oe property

protected IReadWriteIOPort miscOutputWriter
return IReadWriteIOPort

outportWrite protected_oe property

protected IWriteOnlyIOPort outportWrite
return IWriteOnlyIOPort

seqControllerData protected_oe property

IOPort to write data to the sequence registers
protected IReadWriteIOPort seqControllerData
return IReadWriteIOPort

seqControllerIndex protected_oe property

IOPort to index sequence registers
protected IReadWriteIOPort seqControllerIndex
return IReadWriteIOPort

vgaEnableController protected_oe property

protected IReadWriteIOPort vgaEnableController
return IReadWriteIOPort