1vga_getcardinfo(3)            Svgalib User Manual           vga_getcardinfo(3)
2
3
4

NAME

6       vga_getcardinfo - returns pointer to information about the video card.
7

SYNOPSIS

9       #include <vga.h>
10
11       vga_cardinfo *vga_getcardinfo(void);
12
13

DESCRIPTION

15       The function returns a pointer to a card information structure which is
16       filled out with details about the video card in use.
17
18       #include <vga.h> defines vga_cardinfo as
19
20       typedef struct {
21            int version;
22            int size;
23            int chipset;
24            int physmem;
25            int physmemsize;
26            int linearmem;
27       } vga_cardinfo;
28
29       The fields meaning in detail:
30
31
32   Basic mode details
33       version
34              Version of the information structure. Application can  use  this
35              field to make sure the data it needs is really there.
36
37       size   Size of the cardinfo structure. The structure is malloc()ed, and
38              the program should free it when no longer needed.
39
40       chipset
41              Number of the chispet driver used to drive the card.  Same  list
42              as is used in the vga_setchipset function.
43
44       physmem
45              Physical address of the linear memory aperture of the card. This
46              is needed for example for  setting  the  video  overlay  of  v4l
47              devices.
48
49       physmemsize
50              Amount of physical memory in bytes. (Version >= 0x0200)
51
52       linearmem
53              Virtual  address of the linear memory aperture. Please note that
54              currently it is mapped at vga_init, but in  future  versions  of
55              svgalib this might change.  (Version >= 0x0200)
56
57

SEE ALSO

59       svgalib(7), libvga.config(5),
60
61

AUTHOR

63       This manual page written by Matan Ziv-Av <matan@svgalib.org>.
64
65
66
67
68Svgalib (>= 1.9.10)              23 June 2001               vga_getcardinfo(3)
Impressum