aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tridentfb.c19
-rw-r--r--include/video/trident.h19
2 files changed, 19 insertions, 19 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c
index 604b10a590da..e87f77093ec1 100644
--- a/drivers/video/tridentfb.c
+++ b/drivers/video/tridentfb.c
@@ -78,6 +78,25 @@ MODULE_PARM_DESC(fp, "Define if flatpanel is connected");
78module_param(crt, int, 0); 78module_param(crt, int, 0);
79MODULE_PARM_DESC(crt, "Define if CRT is connected"); 79MODULE_PARM_DESC(crt, "Define if CRT is connected");
80 80
81static int is_blade(int id)
82{
83 return (id == BLADE3D) ||
84 (id == CYBERBLADEE4) ||
85 (id == CYBERBLADEi7) ||
86 (id == CYBERBLADEi7D) ||
87 (id == CYBERBLADEi1) ||
88 (id == CYBERBLADEi1D) ||
89 (id == CYBERBLADEAi1) ||
90 (id == CYBERBLADEAi1D);
91}
92
93static int is_xp(int id)
94{
95 return (id == CYBERBLADEXPAi1) ||
96 (id == CYBERBLADEXPm8) ||
97 (id == CYBERBLADEXPm16);
98}
99
81static int is3Dchip(int id) 100static int is3Dchip(int id)
82{ 101{
83 return ((id == BLADE3D) || (id == CYBERBLADEE4) || 102 return ((id == BLADE3D) || (id == CYBERBLADEE4) ||
diff --git a/include/video/trident.h b/include/video/trident.h
index d3dd737a1ba8..9c3670b28906 100644
--- a/include/video/trident.h
+++ b/include/video/trident.h
@@ -39,25 +39,6 @@
39#define CYBERBLADEXPm8 0x9910 39#define CYBERBLADEXPm8 0x9910
40#define CYBERBLADEXPm16 0x9930 40#define CYBERBLADEXPm16 0x9930
41 41
42/* acceleration families */
43#define IMAGE 0
44#define BLADE 1
45#define XP 2
46
47#define is_image(id)
48#define is_xp(id) ((id == CYBERBLADEXPAi1) ||\
49 (id == CYBERBLADEXPm8) ||\
50 (id == CYBERBLADEXPm16))
51
52#define is_blade(id) ((id == BLADE3D) ||\
53 (id == CYBERBLADEE4) ||\
54 (id == CYBERBLADEi7) ||\
55 (id == CYBERBLADEi7D) ||\
56 (id == CYBERBLADEi1) ||\
57 (id == CYBERBLADEi1D) ||\
58 (id == CYBERBLADEAi1) ||\
59 (id == CYBERBLADEAi1D))
60
61/* these defines are for 'lcd' variable */ 42/* these defines are for 'lcd' variable */
62#define LCD_STRETCH 0 43#define LCD_STRETCH 0
63#define LCD_CENTER 1 44#define LCD_CENTER 1