VGA(3)
NAME
vga − vgasize, vgatype, vgaport
SYNOPSIS
bind #v /dev
/dev/vgasize
/dev/vgatype
/dev/vgaport
DESCRIPTION
The vga device allows configuration of a graphics controller on a pc.
Writing a string to the file vgasize of the form: xmaxXymaxXbits, where xmax, ymax and bits are numbers, tells the kernel the width and height of the screen in pixels and the number of bits per pixel. Reading vgasize returns the current setting.
Writing a string to vgatype tells the kernel what kind of controller is being used. The possibilities are currently generic and tseng.
Vgaport provides user level access to the byte port space. Reads and writes to offsets in this file perform 386 inb and outb operations on ports equal to the offset. Offsets below 0x300 are illegal. This device is used by the command vga(8) to configure a VGA controller chip.
Plan 9 — January 03, 1993