C# Class Mosa.DeviceDriver.PCI.VMware.VMwareSVGAII

VMware SVGA II Device Driver
Inheritance: HardwareDevice, IPixelGraphicsDevice
ファイルを表示 Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
alphaMask uint
alphaMaskShift byte
bitsPerPixel uint
blueMask uint
blueMaskShift byte
bytesPerLine uint
capabilities uint
fifo IMemory
fifoSize uint
frameBuffer IFrameBuffer
frameBufferSize uint
greenMask uint
greenMaskShift byte
height ushort
indexPort IReadWriteIOPort
maxHeight uint
maxWidth uint
memory IMemory
offset uint
redMask uint
redMaskShift byte
spinLock SpinLock
valuePort IReadWriteIOPort
version uint
videoRamSize uint
width ushort

Private Properties

Property Type Description
IPixelGraphicsDevice Mosa.DeviceSystem.Color

Public Methods

Method Description
OnInterrupt ( ) : bool

Called when an interrupt is received.

SetMode ( ushort width, ushort height ) : bool

Sets the mode.

Setup ( HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

VMwareSVGAII ( ) : Mosa.DeviceSystem

Initializes a new instance of the VMwareSVGAII class.

Protected Methods

Method Description
ConvertColor ( Color color ) : uint

Converts the color to the frame-buffer color

GetFifo ( uint index ) : uint

Gets the fifo.

GetMaskShift ( uint mask ) : byte

Gets the mask shift.

GetVersion ( ) : uint

Gets the version.

IPixelGraphicsDevice ( Color color ) : void

Clears the specified color.

IPixelGraphicsDevice ( Color color, ushort x, ushort y ) : void

Writes the pixel.

InitializeFifo ( ) : void

Initializes the fifo.

ReadRegister ( uint command ) : uint

Gets the value.

SendCommand ( uint command, uint value ) : void

Sends the command.

SetFifo ( uint index, uint value ) : void

Sets the fifo.

UpdateFrame ( ) : void

Updates the frame.

UpdateFrame ( ushort x, ushort y, ushort width, ushort height ) : void

Updates the frame.

WaitForFifo ( ) : void

Waits for fifo.

WriteToFifo ( uint value ) : void

Writes to fifo.

Private Methods

Method Description
IPixelGraphicsDevice ( ushort x, ushort y ) : Color

Reads the pixel.

Method Details

ConvertColor() protected method

Converts the color to the frame-buffer color
protected ConvertColor ( Color color ) : uint
color Mosa.DeviceSystem.Color The color.
return uint

GetFifo() protected method

Gets the fifo.
protected GetFifo ( uint index ) : uint
index uint The index.
return uint

GetMaskShift() protected method

Gets the mask shift.
protected GetMaskShift ( uint mask ) : byte
mask uint The mask.
return byte

GetVersion() protected method

Gets the version.
protected GetVersion ( ) : uint
return uint

IPixelGraphicsDevice() protected method

Clears the specified color.
protected IPixelGraphicsDevice ( Color color ) : void
color Mosa.DeviceSystem.Color The color.
return void

IPixelGraphicsDevice() protected method

Writes the pixel.
protected IPixelGraphicsDevice ( Color color, ushort x, ushort y ) : void
color Mosa.DeviceSystem.Color The color.
x ushort The x.
y ushort The y.
return void

InitializeFifo() protected method

Initializes the fifo.
protected InitializeFifo ( ) : void
return void

OnInterrupt() public method

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

ReadRegister() protected method

Gets the value.
protected ReadRegister ( uint command ) : uint
command uint The command.
return uint

SendCommand() protected method

Sends the command.
protected SendCommand ( uint command, uint value ) : void
command uint The command.
value uint The value.
return void

SetFifo() protected method

Sets the fifo.
protected SetFifo ( uint index, uint value ) : void
index uint The index.
value uint The value.
return void

SetMode() public method

Sets the mode.
public SetMode ( ushort width, ushort height ) : bool
width ushort The width.
height ushort The height.
return bool

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

UpdateFrame() protected method

Updates the frame.
protected UpdateFrame ( ) : void
return void

UpdateFrame() protected method

Updates the frame.
protected UpdateFrame ( ushort x, ushort y, ushort width, ushort height ) : void
x ushort The x.
y ushort The y.
width ushort The width.
height ushort The height.
return void

VMwareSVGAII() public method

Initializes a new instance of the VMwareSVGAII class.
public VMwareSVGAII ( ) : Mosa.DeviceSystem
return Mosa.DeviceSystem

WaitForFifo() protected method

Waits for fifo.
protected WaitForFifo ( ) : void
return void

WriteToFifo() protected method

Writes to fifo.
protected WriteToFifo ( uint value ) : void
value uint The value.
return void

Property Details

alphaMask protected_oe property

The alpha mask
protected uint alphaMask
return uint

alphaMaskShift protected_oe property

The alpha mask shift
protected byte alphaMaskShift
return byte

bitsPerPixel protected_oe property

The bits per pixel
protected uint bitsPerPixel
return uint

blueMask protected_oe property

The blue mask
protected uint blueMask
return uint

blueMaskShift protected_oe property

The blue mask shift
protected byte blueMaskShift
return byte

bytesPerLine protected_oe property

The bytes per line
protected uint bytesPerLine
return uint

capabilities protected_oe property

The capabilities
protected uint capabilities
return uint

fifo protected_oe property

protected IMemory fifo
return IMemory

fifoSize protected_oe property

The fifo size
protected uint fifoSize
return uint

frameBuffer protected_oe property

protected IFrameBuffer frameBuffer
return IFrameBuffer

frameBufferSize protected_oe property

The frame buffer size
protected uint frameBufferSize
return uint

greenMask protected_oe property

The green mask
protected uint greenMask
return uint

greenMaskShift protected_oe property

The green mask shift
protected byte greenMaskShift
return byte

height protected_oe property

The height
protected ushort height
return ushort

indexPort protected_oe property

protected IReadWriteIOPort indexPort
return IReadWriteIOPort

maxHeight protected_oe property

The maximum height
protected uint maxHeight
return uint

maxWidth protected_oe property

The maximum width
protected uint maxWidth
return uint

memory protected_oe property

protected IMemory memory
return IMemory

offset protected_oe property

The offset
protected uint offset
return uint

redMask protected_oe property

The red mask
protected uint redMask
return uint

redMaskShift protected_oe property

The red mask shift
protected byte redMaskShift
return byte

spinLock protected_oe property

protected SpinLock spinLock
return SpinLock

valuePort protected_oe property

protected IReadWriteIOPort valuePort
return IReadWriteIOPort

version protected_oe property

The version
protected uint version
return uint

videoRamSize protected_oe property

The video ram size
protected uint videoRamSize
return uint

width protected_oe property

The width
protected ushort width
return ushort