VIRTUTECH CONFIDENTIAL    Previous - Up - Next

vga_pci

Provided by
vga-pci
Class Hierarchy
conf-objectlog-objectvga_pci
Interfaces Implemented
log_object, event_poster, io_memory, pci_device
Description
The VGA-PCI device is identical to the VGA device except it connects to the PCI bus instead of the ISA bus. This functionality of this device can also be inherited by more advanced graphic devices such as the Voodoo3 device. Limitations: Not all possible video modes are tested. The CGA Compatibility modes are not yet supported. Different character maps are not yet supported. Read Mode 1 is not yet implemented. Panning is not supported. Spilt Screen is not supported. Blinking text is not supported. Blinking color in video mode 0xf is not supported. Underlining in MDA compatibility mode is not supported. Extend ninth bit in text mode is not implemented.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
attrib_next_index
Optional attribute; read/write access; type: unknown type.

Decides whether the next next access to an attribute controller register (through port 0x3C0) will contain an address or data.

attrib_next_reg
Optional attribute; read/write access; type: unknown type.

The address of the attribute controller register designated for the next access.

attrib_regs
Optional attribute; read/write access; type: unknown type.

(Register-0 ... Register-20) is a list of attribute registers.

attrib_video_enable
Optional attribute; read/write access; type: unknown type.

Decides whether video is enabled or not.

config_register_info
Pseudo attribute; read-only access; type: [[isii]*].

Register info for all registered configuration registers. The format for each entry is (offset, name, size, write-mask).

config_registers
Optional attribute; read/write access; type: [i{64}]; integer indexed; indexed type: Integer.

The 64 PCI configuration registers, each 32 bits in size.

console
Optional attribute; read/write access; type: unknown type.

Console object that must implement either gfx-console or both the serial-device and extended-serial interfaces.

crtc_next
Optional attribute; read/write access; type: unknown type.

Integer register representing the next CRTC address.

crtc_regs
Optional attribute; read/write access; type: unknown type.

(Register-0 ... Register-24) is a list of CRTC registers.

dump_charset
Pseudo attribute; read/write access; type: unknown type.

Write-only pseudo attribute. A write operation will print the current character map to the console if the vga device is in alpha-numeric mode.

expansion_rom
Optional attribute; read/write access; type: [oii].

ROM object, map size, and map function number for the Expansion ROM.

gfx_latch
Optional attribute; read/write access; type: unknown type.

(Latch-0 ... Latch-4) List of four graphics data controller latches.

gfx_next
Optional attribute; read/write access; type: unknown type.

Represents the address of the graphics controller register designated for the next read/write access.

gfx_regs
Optional attribute; read/write access; type: unknown type.

(Register-0 ... Register-8) is a list of the nine graphics controller registers found in an VGA adapter.

h_cnt
Optional attribute; read/write access; type: unknown type.

Horizontal counter (used for generating retrace signals).

image
Required attribute; read/write access; type: Object.

Image object containing the VRAM.

interrupt_pin
Optional attribute; read/write access; type: [iiii].

State of the interrupt pin.

mappings
Optional attribute; read/write access; type: [[i{5:8}]|[iiiiiiiio|nii]*].

List of all current PCI IO and memory mappings.

memory_space
Required attribute; read/write access; type: unknown type.

Memory space to which the device is mapped. Needed for dynamic remapping.

misc_reg
Optional attribute; read/write access; type: unknown type.

Miscellaneous output register.

pci_bus
Optional attribute; read/write access; type: Object or Nil.

The PCI bus this device is connected to, implementing the pci-bus interface.

pel_addr
Optional attribute; read/write access; type: unknown type.

PEL address register.

pel_mask
Optional attribute; read/write access; type: unknown type.

PEL mask register.

pel_next_color
Optional attribute; read/write access; type: unknown type.

Next color in access to PEL data register (read, green, or blue).

pel_pal
Optional attribute; read/write access; type: unknown type.

((red, green, blue) ... (red, green, blue)) List of 256 colors, each a tuple of red, green, and blue.

ramdac_rw_state
Optional attribute; read/write access; type: unknown type.

RAMDAC read/write state.

redraw
Pseudo attribute; write-only access; type: a.

Forces a complete update when set.

refresh_rate
Optional attribute; read/write access; type: unknown type.

Refresh rate (in Hertz).

seq_next
Optional attribute; read/write access; type: unknown type.

Represents the address of the sequence register designated for the next read/write access.

seq_regs
Optional attribute; read/write access; type: unknown type.

(Register-0 ... Register-4) is a list of sequence registers found in the VGA adapter.

text_page
Pseudo attribute; read-only access; type: [s*].

A list representation (one line per element) of the text mode contents.

v_cnt
Optional attribute; read/write access; type: unknown type.

Vertical counter (used for generating retrace signals).

vga_memory
Pseudo attribute; write-only access; type: unknown type.

Contains the VGA memory (256 KB of data).

view_size_x
Pseudo attribute; read-only access; type: Integer.

With of the internal cache.

view_size_y
Pseudo attribute; read-only access; type: Integer.

Height of the internal cache.

write_masks
Optional attribute; read/write access; type: [[ii]*].

Write masks for all registered configuration registers. The format for each entry is (offset, mask).

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
infoPrint device status
redrawRedraw display
refresh-rateSet rate at which vga_pci updated display
text-dumpPrint text contents of display

Command Descriptions

<vga_pci>.info
Synopsis
<vga_pci>.info
Description
Print information about the device registers.
<vga_pci>.redraw
Synopsis
<vga_pci>.redraw
Description
This command sends the current frame buffer contents of the simulated video device to the graphics console. If a simulated cursor is active, it is updated as well.
<vga_pci>.refresh-rate
Synopsis
<vga_pci>.refresh-rate [rate]
Description
Set the rate at which the vga_pci device updates the display.
The default is 1000 Hz (simulated). NOTE: The rate is currently the same for all vga_pci devices.
<vga_pci>.text-dump
Synopsis
<vga_pci>.text-dump
Description
Print the contents of the display in text mode.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next