vga_getcardinfo man page

vga_getcardinfo — returns pointer to information about the video card.

Synopsis

#include <vga.h>

vga_cardinfo *vga_getcardinfo(void);

Description

The function returns a pointer to a card information structure which is filled out with details about the video card in use.

#include <vga.h> defines vga_cardinfo as

typedef struct {
int version;
int size;
int chipset;
int physmem;
int physmemsize;
int linearmem;
} vga_cardinfo;

The fields meaning in detail:

Basic mode details

version
Version of the information structure. Application can use this field to make sure the data it needs is really there.
size
Size of the cardinfo structure. The structure is malloc()ed, and the program should free it when no longer needed.
chipset
Number of the chispet driver used to drive the card. Same list as is used in the vga_setchipset function.
physmem
Physical address of the linear memory aperture of the card. This is needed for example for setting the video overlay of v4l devices.
physmemsize
Amount of physical memory in bytes. (Version >= 0x0200)
linearmem
Virtual address of the linear memory aperture. Please note that currently it is mapped at vga_init, but in future versions of svgalib this might change. (Version >= 0x0200)

See Also

svgalib(7), libvga.config(5),

Author

This manual page written by Matan Ziv-Av <matan@svgalib.org>.

Info

23 June 2001 Svgalib (>= 1.9.10) Svgalib User Manual