Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
2332b311
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2332b311
编写于
1月 22, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: create base display from common code
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
ea7dce90
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
31 addition
and
31 deletion
+31
-31
drivers/gpu/drm/nouveau/dispnv04/disp.c
drivers/gpu/drm/nouveau/dispnv04/disp.c
+0
-5
drivers/gpu/drm/nouveau/dispnv04/disp.h
drivers/gpu/drm/nouveau/dispnv04/disp.h
+0
-1
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.c
+28
-4
drivers/gpu/drm/nouveau/nouveau_display.h
drivers/gpu/drm/nouveau/nouveau_display.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_drm.h
drivers/gpu/drm/nouveau/nouveau_drm.h
+1
-0
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+1
-21
未找到文件。
drivers/gpu/drm/nouveau/dispnv04/disp.c
浏览文件 @
2332b311
...
...
@@ -77,11 +77,6 @@ nv04_display_create(struct drm_device *dev)
nouveau_hw_save_vga_fonts
(
dev
,
1
);
ret
=
nouveau_object_new
(
nv_object
(
drm
),
NVDRM_DEVICE
,
0xd1500000
,
NV04_DISP_CLASS
,
NULL
,
0
,
&
disp
->
core
);
if
(
ret
)
return
ret
;
nv04_crtc_create
(
dev
,
0
);
if
(
nv_two_heads
(
dev
))
nv04_crtc_create
(
dev
,
1
);
...
...
drivers/gpu/drm/nouveau/dispnv04/disp.h
浏览文件 @
2332b311
...
...
@@ -80,7 +80,6 @@ struct nv04_display {
struct
nv04_mode_state
saved_reg
;
uint32_t
saved_vga_font
[
4
][
16384
];
uint32_t
dac_users
[
4
];
struct
nouveau_object
*
core
;
struct
nouveau_bo
*
image
[
2
];
};
...
...
drivers/gpu/drm/nouveau/nouveau_display.c
浏览文件 @
2332b311
...
...
@@ -407,10 +407,31 @@ nouveau_display_create(struct drm_device *dev)
drm_kms_helper_poll_disable
(
dev
);
if
(
drm
->
vbios
.
dcb
.
entries
)
{
if
(
nv_device
(
drm
->
device
)
->
card_type
<
NV_50
)
ret
=
nv04_display_create
(
dev
);
else
ret
=
nv50_display_create
(
dev
);
static
const
u16
oclass
[]
=
{
NVF0_DISP_CLASS
,
NVE0_DISP_CLASS
,
NVD0_DISP_CLASS
,
NVA3_DISP_CLASS
,
NV94_DISP_CLASS
,
NVA0_DISP_CLASS
,
NV84_DISP_CLASS
,
NV50_DISP_CLASS
,
NV04_DISP_CLASS
,
};
int
i
;
for
(
i
=
0
,
ret
=
-
ENODEV
;
ret
&&
i
<
ARRAY_SIZE
(
oclass
);
i
++
)
{
ret
=
nouveau_object_new
(
nv_object
(
drm
),
NVDRM_DEVICE
,
NVDRM_DISPLAY
,
oclass
[
i
],
NULL
,
0
,
&
disp
->
core
);
}
if
(
ret
==
0
)
{
if
(
nv_mclass
(
disp
->
core
)
<
NV50_DISP_CLASS
)
ret
=
nv04_display_create
(
dev
);
else
ret
=
nv50_display_create
(
dev
);
}
}
else
{
ret
=
0
;
}
...
...
@@ -439,6 +460,7 @@ void
nouveau_display_destroy
(
struct
drm_device
*
dev
)
{
struct
nouveau_display
*
disp
=
nouveau_display
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
nouveau_backlight_exit
(
dev
);
nouveau_display_vblank_fini
(
dev
);
...
...
@@ -449,6 +471,8 @@ nouveau_display_destroy(struct drm_device *dev)
if
(
disp
->
dtor
)
disp
->
dtor
(
dev
);
nouveau_object_del
(
nv_object
(
drm
),
NVDRM_DEVICE
,
NVDRM_DISPLAY
);
nouveau_drm
(
dev
)
->
display
=
NULL
;
kfree
(
disp
);
}
...
...
drivers/gpu/drm/nouveau/nouveau_display.h
浏览文件 @
2332b311
...
...
@@ -36,6 +36,7 @@ struct nouveau_display {
int
(
*
init
)(
struct
drm_device
*
);
void
(
*
fini
)(
struct
drm_device
*
);
struct
nouveau_object
*
core
;
struct
nouveau_eventh
**
vblank
;
struct
drm_property
*
dithering_mode
;
...
...
drivers/gpu/drm/nouveau/nouveau_drm.h
浏览文件 @
2332b311
...
...
@@ -54,6 +54,7 @@ enum nouveau_drm_handle {
NVDRM_CLIENT
=
0xffffffff
,
NVDRM_DEVICE
=
0xdddddddd
,
NVDRM_CONTROL
=
0xdddddddc
,
NVDRM_DISPLAY
=
0xd1500000
,
NVDRM_PUSH
=
0xbbbb0000
,
/* |= client chid */
NVDRM_CHAN
=
0xcccc0000
,
/* |= client chid */
NVDRM_NVSW
=
0x55550000
,
...
...
drivers/gpu/drm/nouveau/nv50_display.c
浏览文件 @
2332b311
...
...
@@ -2199,16 +2199,6 @@ nv50_display_destroy(struct drm_device *dev)
int
nv50_display_create
(
struct
drm_device
*
dev
)
{
static
const
u16
oclass
[]
=
{
NVF0_DISP_CLASS
,
NVE0_DISP_CLASS
,
NVD0_DISP_CLASS
,
NVA3_DISP_CLASS
,
NV94_DISP_CLASS
,
NVA0_DISP_CLASS
,
NV84_DISP_CLASS
,
NV50_DISP_CLASS
,
};
struct
nouveau_device
*
device
=
nouveau_dev
(
dev
);
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
dcb_table
*
dcb
=
&
drm
->
vbios
.
dcb
;
...
...
@@ -2225,6 +2215,7 @@ nv50_display_create(struct drm_device *dev)
nouveau_display
(
dev
)
->
dtor
=
nv50_display_destroy
;
nouveau_display
(
dev
)
->
init
=
nv50_display_init
;
nouveau_display
(
dev
)
->
fini
=
nv50_display_fini
;
disp
->
core
=
nouveau_display
(
dev
)
->
core
;
/* small shared memory area we use for notifiers and semaphores */
ret
=
nouveau_bo_new
(
dev
,
4096
,
0x1000
,
TTM_PL_FLAG_VRAM
,
...
...
@@ -2240,17 +2231,6 @@ nv50_display_create(struct drm_device *dev)
nouveau_bo_ref
(
NULL
,
&
disp
->
sync
);
}
if
(
ret
)
goto
out
;
/* attempt to allocate a supported evo display class */
ret
=
-
ENODEV
;
for
(
i
=
0
;
ret
&&
i
<
ARRAY_SIZE
(
oclass
);
i
++
)
{
ret
=
nouveau_object_new
(
nv_object
(
drm
),
NVDRM_DEVICE
,
0xd1500000
,
oclass
[
i
],
NULL
,
0
,
&
disp
->
core
);
}
if
(
ret
)
goto
out
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录