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
94e5c39b
Commit
94e5c39b
authored
Oct 29, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/drm/nvd0/disp: display->disp
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
dd0e3d53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+15
-15
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
94e5c39b
...
@@ -66,7 +66,7 @@ struct evo {
...
@@ -66,7 +66,7 @@ struct evo {
}
sem
;
}
sem
;
};
};
struct
nvd0_disp
lay
{
struct
nvd0_disp
{
struct
nouveau_gpuobj
*
mem
;
struct
nouveau_gpuobj
*
mem
;
struct
nouveau_bo
*
sync
;
struct
nouveau_bo
*
sync
;
struct
evo
evo
[
9
];
struct
evo
evo
[
9
];
...
@@ -79,8 +79,8 @@ struct nvd0_head {
...
@@ -79,8 +79,8 @@ struct nvd0_head {
struct
nouveau_crtc
base
;
struct
nouveau_crtc
base
;
};
};
static
struct
nvd0_disp
lay
*
static
struct
nvd0_disp
*
nvd0_disp
lay
(
struct
drm_device
*
dev
)
nvd0_disp
(
struct
drm_device
*
dev
)
{
{
return
nouveau_display
(
dev
)
->
priv
;
return
nouveau_display
(
dev
)
->
priv
;
}
}
...
@@ -113,7 +113,7 @@ evo_wait(struct drm_device *dev, int id, int nr)
...
@@ -113,7 +113,7 @@ evo_wait(struct drm_device *dev, int id, int nr)
{
{
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
u32
put
=
nv_rd32
(
device
,
0x640000
+
(
id
*
0x1000
))
/
4
;
u32
put
=
nv_rd32
(
device
,
0x640000
+
(
id
*
0x1000
))
/
4
;
if
(
put
+
nr
>=
(
PAGE_SIZE
/
4
))
{
if
(
put
+
nr
>=
(
PAGE_SIZE
/
4
))
{
...
@@ -135,7 +135,7 @@ static void
...
@@ -135,7 +135,7 @@ static void
evo_kick
(
u32
*
push
,
struct
drm_device
*
dev
,
int
id
)
evo_kick
(
u32
*
push
,
struct
drm_device
*
dev
,
int
id
)
{
{
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
nv_wr32
(
device
,
0x640000
+
(
id
*
0x1000
),
(
push
-
disp
->
evo
[
id
].
ptr
)
<<
2
);
nv_wr32
(
device
,
0x640000
+
(
id
*
0x1000
),
(
push
-
disp
->
evo
[
id
].
ptr
)
<<
2
);
}
}
...
@@ -148,7 +148,7 @@ evo_init_dma(struct drm_device *dev, int ch)
...
@@ -148,7 +148,7 @@ evo_init_dma(struct drm_device *dev, int ch)
{
{
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
u32
flags
;
u32
flags
;
flags
=
0x00000000
;
flags
=
0x00000000
;
...
@@ -237,7 +237,7 @@ static int
...
@@ -237,7 +237,7 @@ static int
evo_sync
(
struct
drm_device
*
dev
,
int
ch
)
evo_sync
(
struct
drm_device
*
dev
,
int
ch
)
{
{
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
u32
*
push
=
evo_wait
(
dev
,
ch
,
8
);
u32
*
push
=
evo_wait
(
dev
,
ch
,
8
);
if
(
push
)
{
if
(
push
)
{
nouveau_bo_wr32
(
disp
->
sync
,
EVO_MAST_NTFY
,
0x00000000
);
nouveau_bo_wr32
(
disp
->
sync
,
EVO_MAST_NTFY
,
0x00000000
);
...
@@ -260,13 +260,13 @@ evo_sync(struct drm_device *dev, int ch)
...
@@ -260,13 +260,13 @@ evo_sync(struct drm_device *dev, int ch)
struct
nouveau_bo
*
struct
nouveau_bo
*
nvd0_display_crtc_sema
(
struct
drm_device
*
dev
,
int
crtc
)
nvd0_display_crtc_sema
(
struct
drm_device
*
dev
,
int
crtc
)
{
{
return
nvd0_disp
lay
(
dev
)
->
sync
;
return
nvd0_disp
(
dev
)
->
sync
;
}
}
void
void
nvd0_display_flip_stop
(
struct
drm_crtc
*
crtc
)
nvd0_display_flip_stop
(
struct
drm_crtc
*
crtc
)
{
{
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
crtc
->
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
crtc
->
dev
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
u32
*
push
;
u32
*
push
;
...
@@ -290,7 +290,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
...
@@ -290,7 +290,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
struct
nouveau_channel
*
chan
,
u32
swap_interval
)
struct
nouveau_channel
*
chan
,
u32
swap_interval
)
{
{
struct
nouveau_framebuffer
*
nv_fb
=
nouveau_framebuffer
(
fb
);
struct
nouveau_framebuffer
*
nv_fb
=
nouveau_framebuffer
(
fb
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
crtc
->
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
crtc
->
dev
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
struct
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
u64
offset
;
u64
offset
;
...
@@ -1784,7 +1784,7 @@ nvd0_display_bh(unsigned long data)
...
@@ -1784,7 +1784,7 @@ nvd0_display_bh(unsigned long data)
struct
drm_device
*
dev
=
(
struct
drm_device
*
)
data
;
struct
drm_device
*
dev
=
(
struct
drm_device
*
)
data
;
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
u32
mask
=
0
,
crtc
=
~
0
;
u32
mask
=
0
,
crtc
=
~
0
;
int
i
;
int
i
;
...
@@ -1815,7 +1815,7 @@ nvd0_display_bh(unsigned long data)
...
@@ -1815,7 +1815,7 @@ nvd0_display_bh(unsigned long data)
void
void
nvd0_display_intr
(
struct
drm_device
*
dev
)
nvd0_display_intr
(
struct
drm_device
*
dev
)
{
{
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
u32
intr
=
nv_rd32
(
device
,
0x610088
);
u32
intr
=
nv_rd32
(
device
,
0x610088
);
...
@@ -1891,7 +1891,7 @@ nvd0_display_fini(struct drm_device *dev)
...
@@ -1891,7 +1891,7 @@ nvd0_display_fini(struct drm_device *dev)
int
int
nvd0_display_init
(
struct
drm_device
*
dev
)
nvd0_display_init
(
struct
drm_device
*
dev
)
{
{
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
int
ret
,
i
;
int
ret
,
i
;
...
@@ -1971,7 +1971,7 @@ nvd0_display_init(struct drm_device *dev)
...
@@ -1971,7 +1971,7 @@ nvd0_display_init(struct drm_device *dev)
void
void
nvd0_display_destroy
(
struct
drm_device
*
dev
)
nvd0_display_destroy
(
struct
drm_device
*
dev
)
{
{
struct
nvd0_disp
lay
*
disp
=
nvd0_display
(
dev
);
struct
nvd0_disp
*
disp
=
nvd0_disp
(
dev
);
struct
pci_dev
*
pdev
=
dev
->
pdev
;
struct
pci_dev
*
pdev
=
dev
->
pdev
;
int
i
;
int
i
;
...
@@ -1998,7 +1998,7 @@ nvd0_display_create(struct drm_device *dev)
...
@@ -1998,7 +1998,7 @@ nvd0_display_create(struct drm_device *dev)
struct
dcb_table
*
dcb
=
&
drm
->
vbios
.
dcb
;
struct
dcb_table
*
dcb
=
&
drm
->
vbios
.
dcb
;
struct
drm_connector
*
connector
,
*
tmp
;
struct
drm_connector
*
connector
,
*
tmp
;
struct
pci_dev
*
pdev
=
dev
->
pdev
;
struct
pci_dev
*
pdev
=
dev
->
pdev
;
struct
nvd0_disp
lay
*
disp
;
struct
nvd0_disp
*
disp
;
struct
dcb_output
*
dcbe
;
struct
dcb_output
*
dcbe
;
int
crtcs
,
ret
,
i
;
int
crtcs
,
ret
,
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