C# Class Mosa.DeviceDriver.PCI.VideoCard.GenericVGA

Generic VGA Device Driver
Inheritance: HardwareDevice, IPixelPaletteGraphicsDevice
ファイルを表示 Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
activeControllerData IReadWriteIOPort
activeControllerIndex IReadWriteIOPort
attributeAddress IReadWriteIOPort
attributeData IReadWriteIOPort
colors ushort
crtControllerData IReadWriteIOPort
crtControllerDataColor IReadWriteIOPort
crtControllerIndex IReadWriteIOPort
crtControllerIndexColor IReadWriteIOPort
dacData IReadWriteIOPort
dacIndexRead IReadWriteIOPort
dacIndexWrite IReadWriteIOPort
dacPaletteMask IReadWriteIOPort
graphicsControllerAddress IReadWriteIOPort
graphicsControllerData IReadWriteIOPort
height ushort
inputStatus1 IReadOnlyIOPort
inputStatus1ReadB IReadWriteIOPort
memory IMemory
miscellaneousOutputRead IReadOnlyIOPort
miscellaneousOutputWrite IWriteOnlyIOPort
offset uint
sequencerAddress IReadWriteIOPort
sequencerData IReadWriteIOPort
width ushort

Public Methods

Method Description
Clear ( byte colorIndex ) : void

Clears device with the specified color index.

GenericVGA ( ) : Mosa.DeviceSystem

Initializes a new instance of the GenericVGA class.

GetPalette ( byte colorIndex ) : Color

Gets the palette.

OnInterrupt ( ) : bool

Called when an interrupt is received.

ReadPixel ( ushort x, ushort y ) : byte

Reads the pixel.

SetMode ( byte mode ) : bool

Sets the mode.

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.

Protected Methods

Method Description
GetValue ( byte command ) : byte

Gets the value.

SendCommand ( byte command, byte value ) : void

Sends the command.

WriteSettings ( byte settings ) : void

Writes the settings.

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

GenericVGA() public method

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

GetPalette() public method

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

GetValue() protected method

Gets the value.
protected GetValue ( byte command ) : byte
command byte The command.
return byte

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

SendCommand() protected method

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

SetMode() public method

Sets the mode.
public SetMode ( byte mode ) : bool
mode byte The mode.
return bool

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

WriteSettings() protected method

Writes the settings.
protected WriteSettings ( byte settings ) : void
settings byte The settings.
return void

Property Details

activeControllerData protected_oe property

protected IReadWriteIOPort activeControllerData
return IReadWriteIOPort

activeControllerIndex protected_oe property

protected IReadWriteIOPort activeControllerIndex
return IReadWriteIOPort

attributeAddress protected_oe property

protected IReadWriteIOPort attributeAddress
return IReadWriteIOPort

attributeData protected_oe property

protected IReadWriteIOPort attributeData
return IReadWriteIOPort

colors protected_oe property

protected ushort colors
return ushort

crtControllerData protected_oe property

protected IReadWriteIOPort crtControllerData
return IReadWriteIOPort

crtControllerDataColor protected_oe property

protected IReadWriteIOPort crtControllerDataColor
return IReadWriteIOPort

crtControllerIndex protected_oe property

protected IReadWriteIOPort crtControllerIndex
return IReadWriteIOPort

crtControllerIndexColor protected_oe property

protected IReadWriteIOPort crtControllerIndexColor
return IReadWriteIOPort

dacData protected_oe property

protected IReadWriteIOPort dacData
return IReadWriteIOPort

dacIndexRead protected_oe property

protected IReadWriteIOPort dacIndexRead
return IReadWriteIOPort

dacIndexWrite protected_oe property

protected IReadWriteIOPort dacIndexWrite
return IReadWriteIOPort

dacPaletteMask protected_oe property

protected IReadWriteIOPort dacPaletteMask
return IReadWriteIOPort

graphicsControllerAddress protected_oe property

protected IReadWriteIOPort graphicsControllerAddress
return IReadWriteIOPort

graphicsControllerData protected_oe property

protected IReadWriteIOPort graphicsControllerData
return IReadWriteIOPort

height protected_oe property

protected ushort height
return ushort

inputStatus1 protected_oe property

protected IReadOnlyIOPort inputStatus1
return IReadOnlyIOPort

inputStatus1ReadB protected_oe property

protected IReadWriteIOPort inputStatus1ReadB
return IReadWriteIOPort

memory protected_oe property

protected IMemory memory
return IMemory

miscellaneousOutputRead protected_oe property

protected IReadOnlyIOPort miscellaneousOutputRead
return IReadOnlyIOPort

miscellaneousOutputWrite protected_oe property

protected IWriteOnlyIOPort miscellaneousOutputWrite
return IWriteOnlyIOPort

offset protected_oe property

protected uint offset
return uint

sequencerAddress protected_oe property

protected IReadWriteIOPort sequencerAddress
return IReadWriteIOPort

sequencerData protected_oe property

protected IReadWriteIOPort sequencerData
return IReadWriteIOPort

width protected_oe property

protected ushort width
return ushort