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
a63a97eb
Commit
a63a97eb
authored
Nov 16, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: rename sync channel to flip channel
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
84e052e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+9
-9
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
a63a97eb
...
...
@@ -38,7 +38,7 @@
#define EVO_DMA_NR 9
#define EVO_MASTER (0x00)
#define EVO_
SYNC
(c) (0x01 + (c))
#define EVO_
FLIP
(c) (0x01 + (c))
#define EVO_OVLY(c) (0x05 + (c))
#define EVO_OIMM(c) (0x09 + (c))
#define EVO_CURS(c) (0x0d + (c))
...
...
@@ -240,13 +240,13 @@ evo_sync(struct drm_device *dev, int ch)
}
/******************************************************************************
*
Sync channel (aka. page flipping)
*
Page flipping channel
*****************************************************************************/
struct
nouveau_bo
*
nvd0_display_crtc_sema
(
struct
drm_device
*
dev
,
int
crtc
)
{
struct
nvd0_display
*
disp
=
nvd0_display
(
dev
);
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
SYNC
(
crtc
)];
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
FLIP
(
crtc
)];
return
evo
->
sem
.
bo
;
}
...
...
@@ -255,7 +255,7 @@ nvd0_display_flip_stop(struct drm_crtc *crtc)
{
struct
nvd0_display
*
disp
=
nvd0_display
(
crtc
->
dev
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
SYNC
(
nv_crtc
->
index
)];
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
FLIP
(
nv_crtc
->
index
)];
u32
*
push
;
push
=
evo_wait
(
crtc
->
dev
,
evo
->
idx
,
8
);
...
...
@@ -279,7 +279,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
struct
nouveau_framebuffer
*
nv_fb
=
nouveau_framebuffer
(
fb
);
struct
nvd0_display
*
disp
=
nvd0_display
(
crtc
->
dev
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
SYNC
(
nv_crtc
->
index
)];
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_
FLIP
(
nv_crtc
->
index
)];
u64
offset
;
u32
*
push
;
int
ret
;
...
...
@@ -1652,12 +1652,12 @@ nvd0_display_fini(struct drm_device *dev)
{
int
i
;
/* fini cursors + overlays +
sync
s */
/* fini cursors + overlays +
flip
s */
for
(
i
=
1
;
i
>=
0
;
i
--
)
{
evo_fini_pio
(
dev
,
EVO_CURS
(
i
));
evo_fini_pio
(
dev
,
EVO_OIMM
(
i
));
evo_fini_dma
(
dev
,
EVO_OVLY
(
i
));
evo_fini_dma
(
dev
,
EVO_
SYNC
(
i
));
evo_fini_dma
(
dev
,
EVO_
FLIP
(
i
));
}
/* fini master */
...
...
@@ -1712,9 +1712,9 @@ nvd0_display_init(struct drm_device *dev)
if
(
ret
)
goto
error
;
/* init
sync
s + overlays + cursors */
/* init
flip
s + overlays + cursors */
for
(
i
=
0
;
i
<
dev
->
mode_config
.
num_crtc
;
i
++
)
{
if
((
ret
=
evo_init_dma
(
dev
,
EVO_
SYNC
(
i
)))
||
if
((
ret
=
evo_init_dma
(
dev
,
EVO_
FLIP
(
i
)))
||
(
ret
=
evo_init_dma
(
dev
,
EVO_OVLY
(
i
)))
||
(
ret
=
evo_init_pio
(
dev
,
EVO_OIMM
(
i
)))
||
(
ret
=
evo_init_pio
(
dev
,
EVO_CURS
(
i
))))
...
...
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