Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
110 giacomo 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
23
 CVS :        $Id: comp.h,v 1.1 2003-03-24 13:26:13 giacomo Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1 $
27
 Last update: $Date: 2003-03-24 13:26:13 $
28
 ------------
29
**/
30
 
31
/*
32
 * Copyright (C) 2000 Luca Abeni
33
 *
34
 * This program is free software; you can redistribute it and/or modify
35
 * it under the terms of the GNU General Public License as published by
36
 * the Free Software Foundation; either version 2 of the License, or
37
 * (at your option) any later version.
38
 *
39
 * This program is distributed in the hope that it will be useful,
40
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42
 * GNU General Public License for more details.
43
 *
44
 * You should have received a copy of the GNU General Public License
45
 * along with this program; if not, write to the Free Software
46
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
47
 *
48
 */
49
 
50
 
51
#ifndef VGA_COMP
52
#define VGA_COMP
53
 
54
#ifdef __cplusplus
55
extern "C"
56
{
57
#endif
58
 
59
typedef struct {
60
    int width;
61
    int height;
62
    int bytesperpixel;
63
    int colors;
64
    int linewidth;              /* scanline width in bytes */
65
    int maxlogicalwidth;        /* maximum logical scanline width */
66
    int startaddressrange;      /* changeable bits set */
67
    int maxpixels;              /* video memory / bytesperpixel */
68
    int haveblit;               /* mask of blit functions available */
69
    int flags;          /* other flags */
70
 
71
    /* Extended fields: */
72
    int chiptype;               /* Chiptype detected */
73
    int memory;         /* videomemory in KB */
74
    int linewidth_unit; /* Use only a multiple of this as parameter for
75
                                set_logicalwidth and set_displaystart */
76
    LIN_ADDR linear_aperture;   /* points to mmap secondary mem aperture
77
                                of card (NULL if unavailable) */
78
    int aperture_size;  /* size of aperture in KB if size>=videomemory.
79
 
80
    void (*set_aperture_page) (int page); /* if aperture_size<videomemory
81
                                select a memory page */
82
    void *extensions;   /* points to copy of eeprom for mach32 */
83
        /* depends from actual driver/chiptype.. etc. */
84
} grx_vga_modeinfo;
85
 
86
#ifdef __cplusplus
87
}
88
 
89
#endif
90
#endif                          /* VGA_H */
91