Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vga(3) [plan9 man page]

VGA(3)							     Library Functions Manual							    VGA(3)

NAME
vga - VGA controller device SYNOPSIS
bind #v /dev /dev/vgactl /dev/vgaiob /dev/vgaiow /dev/vgaiol DESCRIPTION
The VGA device allows configuration of a graphics controller on a PC. Vgactl allows control over higher-level settings such as display height, width, depth, controller and hardware-cursor type. Vgaiob, vgaiow and vgaiol allow control over individual 8-bit, 16-bit and 32-bit x86 I/O-ports respectively, such as those used to implement configuration and setup registers on a VGA controller card. These func- tions are normally carried out by vga(8). Writes to vgactl are of the form `attribute value'. Valid attributes are size value is 'XxYxZ' , where X, Y and Z are numbers that tell the kernel the width and height of the screen in pixels and the number of bits per pixel. type tells the kernel which type of controller is being used, mainly to enable the correct code for display-memory bank switching at res- olutions greater than 640x480x1. The names vga, clgd542x, et4000, mach32, and s3 are supported for value. Note that this list does not indicate the full set of VGA chips supported. For example, s3 includes the 86C801/5, 86C928, Vision864, and Vision964. It is the job of vga(8) to recognize which particular chip is being used and to initialize it appropriately. hwgc tells the kernel to use a particular type of hardware graphics cursor. Bt485hwgc, et4000hwgc, s3hwgc and tvp3020hwgc, are currently recognized values. A value of off reverts to using the software cursor. Reading vgactl returns the current settings, one per line. EXAMPLES
The following reverts to using the software graphics cursor echo -n 'hwgc off' >/dev/vgactl Sample code to read an x86 8-bit I/O port uchar inportb(long port) { uchar data; if(iobfd == -1) iobfd = open("#v/vgaiob", ORDWR); seek(iobfd, port, 0); if(read(iobfd, &data, sizeof(data)) != sizeof(data)) error("inportb(0x%4.4x): %r0, port); return data; } SOURCE
/sys/src/9/pc/devvga.c SEE ALSO
vga(8) BUGS
There should be some restriction on the range of valid ports. There should be support for the hardware graphics cursor on the clgd54[23]x VGA controller chips. The hardware graphics cursor on the et4000 does not work in 2x8-bit mode. VGA(3)

Check Out this Related Man Page

VGA(4x) 																   VGA(4x)

NAME
vga - Generic VGA video driver SYNOPSIS
Section "Device" Identifier "devname" Driver "vga" ... EndSection DESCRIPTION
vga is an XFree86 driver for generic VGA video cards. It can drive most VGA-compatible video cards, but only makes use of the basic stan- dard VGA core that is common to these cards. The driver supports depths 1, 4 and 8. All relevant visual types are supported at each depth. Multi-head configurations are supported in combination with some other drivers, but only when the vga driver is driving the primary head. SUPPORTED HARDWARE
The vga driver supports most VGA-compatible video cards. There are some known exceptions, and those should be listed here. CONFIGURATION DETAILS
Please refer to XF86Config(5x) for general configuration details. This section only covers configuration details specific to this driver. The driver auto-detects the presence of VGA-compatible hardware. The ChipSet name may optionally be specified in the config file "Device" section, and will override the auto-detection: "generic" The driver will only use 64k of video memory for depth 1 and depth 8 operation, and 256k of video memory for depth 4 (this is the standard VGA limit). When operating at depth 8, only a single built-in 320x200 video mode is available. At other depths there is more flexibility regarding mode choice. The following driver Options are supported: Option "ShadowFB" "boolean" Enable or disable use of the shadow framebuffer layer. Default: off. This option is recommended for performance reasons when running at depths 1 and 4, especially when using modern PCI-based hardware. It is required when using those depths in a multi-head configuration where one or more of the other screens is operating at a dif- ferent depth. SEE ALSO
XFree86(1), XF86Config(5x), xf86config(1), Xserver(1), X(7x) AUTHORS
Authors include: Marc La France, David Dawes, and Dirk Hohndel. XFree86 Version Version 4.3.0 VGA(4x)
Man Page