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
nexedi
linux
Commits
a1d640f2
Commit
a1d640f2
authored
Feb 10, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] VIA KT400 Aperture size is 12 bit in AGP3 mode.
parent
2b9f9c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/char/agp/via-kt400.c
drivers/char/agp/via-kt400.c
+5
-3
No files found.
drivers/char/agp/via-kt400.c
View file @
a1d640f2
...
...
@@ -17,15 +17,17 @@
static
int
via_fetch_size
(
void
)
{
int
i
;
u
8
temp
;
u
16
temp
;
struct
aper_size_info_16
*
values
;
values
=
A_SIZE_16
(
agp_bridge
.
aperture_sizes
);
pci_read_config_byte
(
agp_bridge
.
dev
,
VIA_AGP3_APSIZE
,
&
temp
);
pci_read_config_word
(
agp_bridge
.
dev
,
VIA_AGP3_APSIZE
,
&
temp
);
temp
&=
0xfff
;
for
(
i
=
0
;
i
<
agp_bridge
.
num_aperture_sizes
;
i
++
)
{
if
(
temp
==
values
[
i
].
size_value
)
{
agp_bridge
.
previous_size
=
agp_bridge
.
current_size
=
(
void
*
)
(
values
+
i
);
agp_bridge
.
current_size
=
(
void
*
)
(
values
+
i
);
agp_bridge
.
aperture_size_idx
=
i
;
return
values
[
i
].
size
;
}
...
...
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