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
e33e8761
Commit
e33e8761
authored
Jan 08, 2004
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Duh, is_r200 is a function, not a variable.
Spotted by Andreas Henriksson <andreas@scream.fjortis.info>
parent
3115b708
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/char/agp/ati-agp.c
drivers/char/agp/ati-agp.c
+4
-4
No files found.
drivers/char/agp/ati-agp.c
View file @
e33e8761
...
@@ -151,7 +151,7 @@ static int ati_fetch_size(void)
...
@@ -151,7 +151,7 @@ static int ati_fetch_size(void)
u32
temp
;
u32
temp
;
struct
aper_size_info_lvl2
*
values
;
struct
aper_size_info_lvl2
*
values
;
if
(
is_r200
)
if
(
is_r200
()
)
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
else
else
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS300_APSIZE
,
&
temp
);
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS300_APSIZE
,
&
temp
);
...
@@ -184,7 +184,7 @@ static void ati_cleanup(void)
...
@@ -184,7 +184,7 @@ static void ati_cleanup(void)
previous_size
=
A_SIZE_LVL2
(
agp_bridge
->
previous_size
);
previous_size
=
A_SIZE_LVL2
(
agp_bridge
->
previous_size
);
/* Write back the previous size and disable gart translation */
/* Write back the previous size and disable gart translation */
if
(
is_r200
)
{
if
(
is_r200
()
)
{
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
temp
=
((
temp
&
~
(
0x0000000f
))
|
previous_size
->
size_value
);
temp
=
((
temp
&
~
(
0x0000000f
))
|
previous_size
->
size_value
);
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
temp
);
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
temp
);
...
@@ -206,7 +206,7 @@ static int ati_configure(void)
...
@@ -206,7 +206,7 @@ static int ati_configure(void)
temp
=
(
temp
&
0xfffff000
);
temp
=
(
temp
&
0xfffff000
);
ati_generic_private
.
registers
=
(
volatile
u8
*
)
ioremap
(
temp
,
4096
);
ati_generic_private
.
registers
=
(
volatile
u8
*
)
ioremap
(
temp
,
4096
);
if
(
is_r200
)
if
(
is_r200
()
)
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_IG_AGPMODE
,
0x20000
);
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_IG_AGPMODE
,
0x20000
);
else
else
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS300_IG_AGPMODE
,
0x20000
);
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS300_IG_AGPMODE
,
0x20000
);
...
@@ -333,7 +333,7 @@ static int ati_create_gatt_table(void)
...
@@ -333,7 +333,7 @@ static int ati_create_gatt_table(void)
/* Write out the size register */
/* Write out the size register */
current_size
=
A_SIZE_LVL2
(
agp_bridge
->
current_size
);
current_size
=
A_SIZE_LVL2
(
agp_bridge
->
current_size
);
if
(
is_r200
)
{
if
(
is_r200
()
)
{
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
pci_read_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_APSIZE
,
&
temp
);
temp
=
(((
temp
&
~
(
0x0000000e
))
|
current_size
->
size_value
)
temp
=
(((
temp
&
~
(
0x0000000e
))
|
current_size
->
size_value
)
|
0x00000001
);
|
0x00000001
);
...
...
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