Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
94e5c39b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
94e5c39b
编写于
10月 29, 2012
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/drm/nvd0/disp: display->disp
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
dd0e3d53
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+15
-15
未找到文件。
drivers/gpu/drm/nouveau/nvd0_display.c
浏览文件 @
94e5c39b
...
...
@@ -66,7 +66,7 @@ struct evo {
}
sem
;
};
struct
nvd0_disp
lay
{
struct
nvd0_disp
{
struct
nouveau_gpuobj
*
mem
;
struct
nouveau_bo
*
sync
;
struct
evo
evo
[
9
];
...
...
@@ -79,8 +79,8 @@ struct nvd0_head {
struct
nouveau_crtc
base
;
};
static
struct
nvd0_disp
lay
*
nvd0_disp
lay
(
struct
drm_device
*
dev
)
static
struct
nvd0_disp
*
nvd0_disp
(
struct
drm_device
*
dev
)
{
return
nouveau_display
(
dev
)
->
priv
;
}
...
...
@@ -113,7 +113,7 @@ evo_wait(struct drm_device *dev, int id, int nr)
{
struct
nouveau_device
*
device
=
nouveau_dev
(
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
;
if
(
put
+
nr
>=
(
PAGE_SIZE
/
4
))
{
...
...
@@ -135,7 +135,7 @@ static void
evo_kick
(
u32
*
push
,
struct
drm_device
*
dev
,
int
id
)
{
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
);
}
...
...
@@ -148,7 +148,7 @@ evo_init_dma(struct drm_device *dev, int ch)
{
struct
nouveau_device
*
device
=
nouveau_dev
(
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
;
flags
=
0x00000000
;
...
...
@@ -237,7 +237,7 @@ static int
evo_sync
(
struct
drm_device
*
dev
,
int
ch
)
{
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
);
if
(
push
)
{
nouveau_bo_wr32
(
disp
->
sync
,
EVO_MAST_NTFY
,
0x00000000
);
...
...
@@ -260,13 +260,13 @@ evo_sync(struct drm_device *dev, int ch)
struct
nouveau_bo
*
nvd0_display_crtc_sema
(
struct
drm_device
*
dev
,
int
crtc
)
{
return
nvd0_disp
lay
(
dev
)
->
sync
;
return
nvd0_disp
(
dev
)
->
sync
;
}
void
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
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
u32
*
push
;
...
...
@@ -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_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
evo
*
evo
=
&
disp
->
evo
[
EVO_FLIP
(
nv_crtc
->
index
)];
u64
offset
;
...
...
@@ -1784,7 +1784,7 @@ nvd0_display_bh(unsigned long data)
struct
drm_device
*
dev
=
(
struct
drm_device
*
)
data
;
struct
nouveau_device
*
device
=
nouveau_dev
(
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
;
int
i
;
...
...
@@ -1815,7 +1815,7 @@ nvd0_display_bh(unsigned long data)
void
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_drm
*
drm
=
nouveau_drm
(
dev
);
u32
intr
=
nv_rd32
(
device
,
0x610088
);
...
...
@@ -1891,7 +1891,7 @@ nvd0_display_fini(struct drm_device *dev)
int
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_drm
*
drm
=
nouveau_drm
(
dev
);
int
ret
,
i
;
...
...
@@ -1971,7 +1971,7 @@ nvd0_display_init(struct drm_device *dev)
void
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
;
int
i
;
...
...
@@ -1998,7 +1998,7 @@ nvd0_display_create(struct drm_device *dev)
struct
dcb_table
*
dcb
=
&
drm
->
vbios
.
dcb
;
struct
drm_connector
*
connector
,
*
tmp
;
struct
pci_dev
*
pdev
=
dev
->
pdev
;
struct
nvd0_disp
lay
*
disp
;
struct
nvd0_disp
*
disp
;
struct
dcb_output
*
dcbe
;
int
crtcs
,
ret
,
i
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录