 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Bottom of page |
|
install_vga_console(9r)
NAME
install_vga_console - Graphics: Installs a VGA console as the system
console
SYNOPSIS
int install_vga_console(
struct controller *ctlr );
ARGUMENTS
ctlr
Specifies a pointer to the driver's controller structure.
DATA STRUCTURES
The install_vga_console routine accesses the driver's controller structure
defined in /usr/sys/include/io/common/devdriver.h.
DESCRIPTION
The install_vga_console routine lets you register the VGA console with the
Workstation Subsystem. If you are implementing a VGA-class card or a
compound card that uses a VGA chip for the console, you can call this
routine instead of writing your own VGA graphics console driver. You call
the install_vga_console routine from the device driver's console_attach
routine.
RETURN VALUES
If successful, the install_vga_console routine returns 0 (zero) or a
positive integer. If unsuccessful, it returns -1.
EXAMPLES
The myvga_console_attach routine calls install_vga_console as follows to
install the VGA console as the system console:
int
myvga_console_attach(struct controller *ctlr)
{
.
.
.
status = install_vga_console(ctlr);
.
.
.
}
FILES
/usr/sys/include/io/common/devdriver.h
/usr/sys/include/io/dec/ws/vga_support.h
 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Top of page |
|