Merge branch 'mesa_7_7_branch'
[mesa.git] / src / mesa / drivers / dri / sis / sis_screen.h
1 /**************************************************************************
2
3 Copyright 2003 Eric Anholt
4 All Rights Reserved.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 on the rights to use, copy, modify, merge, publish, distribute, sub
10 license, and/or sell copies of the Software, and to permit persons to whom
11 the Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice (including the next
14 paragraph) shall be included in all copies or substantial portions of the
15 Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
20 ERIC ANHOLT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 **************************************************************************/
25
26 /*
27 * Authors:
28 * Eric Anholt <anholt@FreeBSD.org>
29 */
30
31 #ifndef __SIS_SCREEN_H
32 #define __SIS_SCREEN_H
33
34 typedef struct {
35 drm_handle_t handle; /* Handle to the DRM region */
36 drmSize size; /* Size of the DRM region */
37 drmAddress map; /* Mapping of the DRM region */
38 } sisRegionRec2, *sisRegionPtr2;
39
40 typedef struct {
41 sisRegionRec2 mmio;
42 sisRegionRec2 agp;
43 unsigned long agpBaseOffset;
44
45 unsigned int AGPCmdBufOffset;
46 unsigned int AGPCmdBufSize;
47
48 int deviceID;
49
50 int cpp;
51 unsigned int screenX, screenY;
52
53 __DRIscreen *driScreen;
54 unsigned int sarea_priv_offset;
55
56 /* Configuration cache with default values for all contexts */
57 driOptionCache optionCache;
58
59 } sisScreenRec, *sisScreenPtr;
60
61 #endif