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
f0aed196
Commit
f0aed196
authored
Aug 13, 2003
by
Dave Jones
Committed by
Dave Jones
Aug 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Disable calibration cycle when not in AGP3 mode of operation on AGP3 chipset.
parent
e5aeea20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+1
-0
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+8
-2
No files found.
drivers/char/agp/agp.h
View file @
f0aed196
...
@@ -395,6 +395,7 @@ unsigned long agp_generic_mask_memory(unsigned long addr, int type);
...
@@ -395,6 +395,7 @@ unsigned long agp_generic_mask_memory(unsigned long addr, int type);
#define AGPSTAT 0x4
#define AGPSTAT 0x4
#define AGPCMD 0x8
#define AGPCMD 0x8
#define AGPNISTAT 0xc
#define AGPNISTAT 0xc
#define AGPCTRL 0x10
#define AGPNEPG 0x16
#define AGPNEPG 0x16
#define AGPNICMD 0x20
#define AGPNICMD 0x20
...
...
drivers/char/agp/generic.c
View file @
f0aed196
...
@@ -545,7 +545,7 @@ EXPORT_SYMBOL(get_agp_version);
...
@@ -545,7 +545,7 @@ EXPORT_SYMBOL(get_agp_version);
void
agp_generic_enable
(
u32
mode
)
void
agp_generic_enable
(
u32
mode
)
{
{
u32
command
;
u32
command
,
temp
;
u32
agp3
;
u32
agp3
;
get_agp_version
(
agp_bridge
);
get_agp_version
(
agp_bridge
);
...
@@ -577,7 +577,13 @@ void agp_generic_enable(u32 mode)
...
@@ -577,7 +577,13 @@ void agp_generic_enable(u32 mode)
agp_device_command
(
command
,
TRUE
);
agp_device_command
(
command
,
TRUE
);
return
;
return
;
}
else
{
}
else
{
printk
(
KERN_INFO
PFX
"Device is in legacy mode,"
/* Disable calibration cycle in RX91<1> when not in AGP3.0 mode of operation.*/
command
&=
~
(
7
<<
10
)
;
pci_read_config_dword
(
agp_bridge
->
dev
,
agp_bridge
->
capndx
+
AGPCTRL
,
&
temp
);
temp
|=
(
1
<<
9
);
pci_write_config_dword
(
agp_bridge
->
dev
,
agp_bridge
->
capndx
+
AGPCTRL
,
temp
);
printk
(
KERN_INFO
PFX
"Device is in legacy mode,"
" falling back to 2.x
\n
"
);
" falling back to 2.x
\n
"
);
}
}
}
}
...
...
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