1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
Index: xorg-server-1.3.0.0/hw/kdrive/glamo/glamo.c
===================================================================
--- xorg-server-1.3.0.0.orig/hw/kdrive/glamo/glamo.c 2007-11-30 10:18:43.000000000 +0100
+++ xorg-server-1.3.0.0/hw/kdrive/glamo/glamo.c 2007-11-30 10:35:27.000000000 +0100
@@ -38,9 +38,7 @@
if (glamoc == NULL)
return FALSE;
-#ifdef KDRIVEFBDEV
if (!initialized && fbdevInitialize(card, &glamoc->backend_priv.fbdev)) {
- glamoc->use_fbdev = TRUE;
initialized = TRUE;
glamoc->backend_funcs.cardfini = fbdevCardFini;
glamoc->backend_funcs.scrfini = fbdevScreenFini;
@@ -58,29 +56,6 @@
glamoc->backend_funcs.randrSetConfig = fbdevRandRSetConfig;
#endif
}
-#endif
-#ifdef KDRIVEVESA
- if (!initialized && vesaInitialize(card, &glamoc->backend_priv.vesa)) {
- glamoc->use_vesa = TRUE;
- initialized = TRUE;
- glamoc->backend_funcs.cardfini = vesaCardFini;
- glamoc->backend_funcs.scrfini = vesaScreenFini;
- glamoc->backend_funcs.initScreen = vesaInitScreen;
- glamoc->backend_funcs.finishInitScreen = vesaFinishInitScreen;
- glamoc->backend_funcs.createRes = vesaCreateResources;
- glamoc->backend_funcs.preserve = vesaPreserve;
- glamoc->backend_funcs.restore = vesaRestore;
- glamoc->backend_funcs.dpms = vesaDPMS;
- glamoc->backend_funcs.enable = vesaEnable;
- glamoc->backend_funcs.disable = vesaDisable;
- glamoc->backend_funcs.getColors = vesaGetColors;
- glamoc->backend_funcs.putColors = vesaPutColors;
-#ifdef RANDR
- glamoc->backend_funcs.randrSetConfig = vesaRandRSetConfig;
-#endif
- }
-#endif
-
if (!initialized || !GLAMOMapReg(card, glamoc)) {
xfree(glamoc);
return FALSE;
@@ -158,18 +133,8 @@
if (screen->fb[0].depth == 0)
screen->fb[0].depth = 16;
-#ifdef KDRIVEFBDEV
- if (glamoc->use_fbdev) {
- success = fbdevScreenInitialize(screen,
- &glamos->backend_priv.fbdev);
- }
-#endif
-#ifdef KDRIVEVESA
- if (glamoc->use_vesa) {
- success = vesaScreenInitialize(screen,
- &glamos->backend_priv.vesa);
- }
-#endif
+
+ success = fbdevScreenInitialize(screen, &glamos->backend_priv.fbdev);
if (!success) {
screen->driver = NULL;
Index: xorg-server-1.3.0.0/hw/kdrive/glamo/glamo.h
===================================================================
--- xorg-server-1.3.0.0.orig/hw/kdrive/glamo/glamo.h 2007-11-30 10:25:06.000000000 +0100
+++ xorg-server-1.3.0.0/hw/kdrive/glamo/glamo.h 2007-11-30 10:35:17.000000000 +0100
@@ -30,13 +30,7 @@
#include <kdrive-config.h>
#endif
-#ifdef KDRIVEFBDEV
#include <fbdev.h>
-#endif
-#ifdef KDRIVEVESA
-#include <vesa.h>
-#endif
-
#include "kxv.h"
#define GLAMO_REG_BASE(c) ((c)->attr.address[0])
@@ -99,12 +93,7 @@
typedef struct _GLAMOCardInfo {
union {
-#ifdef KDRIVEFBDEV
FbdevPriv fbdev;
-#endif
-#ifdef KDRIVEVESA
- VesaCardPrivRec vesa;
-#endif
} backend_priv;
struct backend_funcs backend_funcs;
@@ -112,7 +101,6 @@
Bool is_3362;
CARD32 crtc_pitch;
CARD32 crtc2_pitch;
- Bool use_fbdev, use_vesa;
} GLAMOCardInfo;
#define getGLAMOCardInfo(kd) ((GLAMOCardInfo *) ((kd)->card->driver))
@@ -155,12 +143,7 @@
typedef struct _GLAMOScreenInfo {
union {
-#ifdef KDRIVEFBDEV
FbdevScrPriv fbdev;
-#endif
-#ifdef KDRIVEVESA
- VesaScreenPrivRec vesa;
-#endif
} backend_priv;
KaaScreenInfoRec kaa;
Index: xorg-server-1.3.0.0/hw/kdrive/glamo/glamo_stub.c
===================================================================
--- xorg-server-1.3.0.0.orig/hw/kdrive/glamo/glamo_stub.c 2007-11-28 18:44:27.000000000 +0100
+++ xorg-server-1.3.0.0/hw/kdrive/glamo/glamo_stub.c 2007-11-30 10:34:10.000000000 +0100
@@ -59,9 +59,6 @@
ddxUseMsg (void)
{
KdUseMsg();
-#ifdef KDRIVEVESA
- vesaUseMsg();
-#endif
}
int
@@ -69,9 +66,6 @@
{
int ret;
-#ifdef KDRIVEVESA
- if (!(ret = vesaProcessArgument (argc, argv, i)))
-#endif
ret = KdProcessArgument(argc, argv, i);
return ret;
|