VIRTUTECH CONFIDENTIAL Previous - Up - Next
vga
- Provided by
-
vga
- Class Hierarchy
-
conf-object → log-object → vga
- Interfaces Implemented
-
log_object, event_poster, io_memory
- Description
-
The VGA device implements a standard VGA graphics adapter. Most graphics modes are supported, but non-standard graphics settings may not work as on a real adapter. Modes known to work fairly well are: 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13 and modeX. Limitations: Not all possible video modes are tested. 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.
- 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.
- 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.
- 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.
- 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.
Command List
- Commands defined by interface log_object
-
log, log-group, log-level, log-size, log-type
- Commands
-
Command Descriptions
-
<vga>.info
- Synopsis
-
<vga>.info
- Description
-
Print information about the device registers.
-
<vga>.redraw
- Synopsis
-
<vga>.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>.refresh-rate
- Synopsis
-
<vga>.refresh-rate [rate]
- Description
-
Set the rate at which the vga device updates the display.
The default is 1000 Hz (simulated). NOTE: The rate is currently
the same for all vga devices.
-
<vga>.status
- Synopsis
-
<vga>.status
- Description
-
Print detailed information about the current status of the device.
-
<vga>.text-dump
- Synopsis
-
<vga>.text-dump
- Description
-
Print the contents of the display in text mode.
VIRTUTECH CONFIDENTIAL Previous - Up - Next