Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
1dee7a93
Commit
1dee7a93
authored
Jan 07, 2010
by
Ben Skeggs
Browse files
drm/nv04: differentiate between nv04/nv05
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
234896a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
1dee7a93
...
...
@@ -642,7 +642,10 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
dev_priv
->
chipset
=
(
reg0
&
0xff00000
)
>>
20
;
/* NV04 or NV05 */
}
else
if
((
reg0
&
0xff00fff0
)
==
0x20004000
)
{
dev_priv
->
chipset
=
0x04
;
if
(
reg0
&
0x00f00000
)
dev_priv
->
chipset
=
0x05
;
else
dev_priv
->
chipset
=
0x04
;
}
else
dev_priv
->
chipset
=
0xff
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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