Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
209d0f77
Commit
209d0f77
authored
May 29, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a nasty bug in the 3Dfx driver and added the ahrdware routines for the NeoMagic chipset.
parent
63fbf532
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
185 additions
and
156 deletions
+185
-156
drivers/video/anakinfb.c
drivers/video/anakinfb.c
+0
-1
drivers/video/neofb.c
drivers/video/neofb.c
+156
-144
drivers/video/tdfxfb.c
drivers/video/tdfxfb.c
+29
-11
include/video/neomagic.h
include/video/neomagic.h
+0
-0
No files found.
drivers/video/anakinfb.c
View file @
209d0f77
...
...
@@ -21,7 +21,6 @@
#include <asm/io.h>
#include <video/fbcon.h>
#include <video/fbcon-cfb16.h>
static
u32
colreg
[
16
];
static
struct
fb_info
fb_info
;
...
...
drivers/video/neofb.c
View file @
209d0f77
This diff is collapsed.
Click to expand it.
drivers/video/tdfxfb.c
View file @
209d0f77
...
...
@@ -95,18 +95,36 @@
#define VOODOO5_MAX_PIXCLOCK 350000.0
static
struct
fb_fix_screeninfo
tdfx_fix
__initdata
=
{
"3Dfx"
,
(
unsigned
long
)
NULL
,
0
,
FB_TYPE_PACKED_PIXELS
,
0
,
FB_VISUAL_PSEUDOCOLOR
,
0
,
1
,
1
,
0
,
(
unsigned
long
)
NULL
,
0
,
FB_ACCEL_3DFX_BANSHEE
id:
"3Dfx"
,
type:
FB_TYPE_PACKED_PIXELS
,
visual:
FB_VISUAL_PSEUDOCOLOR
,
ypanstep:
1
,
ywrapstep:
1
,
accel:
FB_ACCEL_3DFX_BANSHEE
};
static
struct
fb_var_screeninfo
tdfx_var
__initdata
=
{
/* "640x480, 8 bpp @ 60 Hz */
640
,
480
,
640
,
1024
,
0
,
0
,
8
,
0
,
{
0
,
8
,
0
},
{
0
,
8
,
0
},
{
0
,
8
,
0
},
{
0
,
0
,
0
},
0
,
FB_ACTIVATE_NOW
,
-
1
,
-
1
,
FB_ACCELF_TEXT
,
39722
,
40
,
24
,
32
,
11
,
96
,
2
,
0
,
FB_VMODE_NONINTERLACED
xres:
640
,
yres:
480
,
xres_virtual:
640
,
yres_virtual:
1024
,
bits_per_pixel:
8
,
red:
{
0
,
8
,
0
},
blue:
{
0
,
8
,
0
},
green:
{
0
,
8
,
0
},
activate:
FB_ACTIVATE_NOW
,
height:
-
1
,
width:
-
1
,
accel_flags:
FB_ACCELF_TEXT
,
pixclock:
39722
,
left_margin:
40
,
right_margin:
24
,
upper_margin:
32
,
lower_margin:
11
,
hsync_len:
96
,
vsync_len:
2
,
vmode:
FB_VMODE_NONINTERLACED
};
/*
...
...
@@ -927,7 +945,7 @@ static void tdfxfb_imageblit(struct fb_info *info, struct fb_image *pixmap)
srcfmt
=
0x400000
;
}
else
{
banshee_make_room
(
6
+
((
size
+
3
)
>>
2
));
srcfmt
=
0xBEEFDEAD
;
srcfmt
=
stride
|
((
bpp
+
((
bpp
==
8
)
?
0
:
8
))
<<
13
)
|
0x400000
;
}
tdfx_outl
(
SRCXY
,
0
);
...
...
@@ -1062,13 +1080,13 @@ static int __devinit tdfxfb_probe(struct pci_dev *pdev,
info
->
fbops
=
&
tdfxfb_ops
;
info
->
fix
=
tdfx_fix
;
info
->
par
=
&
default_par
;
info
->
disp
=
(
struct
display
*
)(
info
+
1
);
info
->
pseudo_palette
=
(
void
*
)(
info
->
disp
+
1
);
info
->
flags
=
FBINFO_FLAG_DEFAULT
;
/* The below feilds will go away !!!! */
info
->
currcon
=
-
1
;
strcpy
(
info
->
modename
,
info
->
fix
.
id
);
info
->
disp
=
(
struct
display
*
)(
info
+
1
);
info
->
currcon
=
-
1
;
info
->
switch_con
=
gen_switch
;
info
->
updatevar
=
gen_update_var
;
...
...
include/video/neo
_reg
.h
→
include/video/neo
magic
.h
View file @
209d0f77
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment