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
4acd4293
Commit
4acd4293
authored
Nov 12, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: make it clearer that the cursor regs are pio evo channels
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
2eac77b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+9
-3
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
4acd4293
...
...
@@ -163,6 +163,12 @@ evo_fini_dma(struct drm_device *dev, int ch)
nv_mask
(
dev
,
0x6100a0
,
(
1
<<
ch
),
0x00000000
);
}
static
inline
void
evo_piow
(
struct
drm_device
*
dev
,
int
ch
,
u16
mthd
,
u32
data
)
{
nv_wr32
(
dev
,
0x640000
+
(
ch
*
0x1000
)
+
mthd
,
data
);
}
static
int
evo_init_pio
(
struct
drm_device
*
dev
,
int
ch
)
{
...
...
@@ -616,10 +622,10 @@ static int
nvd0_crtc_cursor_move
(
struct
drm_crtc
*
crtc
,
int
x
,
int
y
)
{
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
const
u32
data
=
(
y
<<
16
)
|
x
;
int
ch
=
EVO_CURS
(
nv_crtc
->
index
)
;
nv_wr32
(
crtc
->
dev
,
0x64d084
+
(
nv_crtc
->
index
*
0x1000
),
data
);
nv_wr32
(
crtc
->
dev
,
0x64d080
+
(
nv_crtc
->
index
*
0x1000
)
,
0x00000000
);
evo_piow
(
crtc
->
dev
,
ch
,
0x0084
,
(
y
<<
16
)
|
x
);
evo_piow
(
crtc
->
dev
,
ch
,
0x0080
,
0x00000000
);
return
0
;
}
...
...
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