Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b0bc5304
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b0bc5304
编写于
4月 29, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nve0/ce: create engine object for ce2
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
d53635a9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
0 deletion
+36
-0
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
+31
-0
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
+3
-0
drivers/gpu/drm/nouveau/core/include/core/device.h
drivers/gpu/drm/nouveau/core/include/core/device.h
+1
-0
drivers/gpu/drm/nouveau/core/include/engine/copy.h
drivers/gpu/drm/nouveau/core/include/engine/copy.h
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/core/engine/copy/nve0.c
浏览文件 @
b0bc5304
...
...
@@ -113,6 +113,26 @@ nve0_copy1_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
0
;
}
static
int
nve0_copy2_ctor
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nouveau_object
**
pobject
)
{
struct
nve0_copy_priv
*
priv
;
int
ret
;
ret
=
nouveau_engine_create
(
parent
,
engine
,
oclass
,
true
,
"PCE2"
,
"copy2"
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
if
(
ret
)
return
ret
;
nv_subdev
(
priv
)
->
unit
=
0x00200000
;
nv_engine
(
priv
)
->
cclass
=
&
nve0_copy_cclass
;
nv_engine
(
priv
)
->
sclass
=
nve0_copy_sclass
;
return
0
;
}
struct
nouveau_oclass
nve0_copy0_oclass
=
{
.
handle
=
NV_ENGINE
(
COPY0
,
0xe0
),
...
...
@@ -134,3 +154,14 @@ nve0_copy1_oclass = {
.
fini
=
_nouveau_engine_fini
,
},
};
struct
nouveau_oclass
nve0_copy2_oclass
=
{
.
handle
=
NV_ENGINE
(
COPY2
,
0xe0
),
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
.
ctor
=
nve0_copy2_ctor
,
.
dtor
=
_nouveau_engine_dtor
,
.
init
=
_nouveau_engine_init
,
.
fini
=
_nouveau_engine_fini
,
},
};
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
浏览文件 @
b0bc5304
...
...
@@ -79,6 +79,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY1
]
=
&
nve0_copy1_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY2
]
=
&
nve0_copy2_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nve0_bsp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nve0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_PPP
]
=
&
nvc0_ppp_oclass
;
...
...
@@ -108,6 +109,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY1
]
=
&
nve0_copy1_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY2
]
=
&
nve0_copy2_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nve0_bsp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nve0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_PPP
]
=
&
nvc0_ppp_oclass
;
...
...
@@ -137,6 +139,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY1
]
=
&
nve0_copy1_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY2
]
=
&
nve0_copy2_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nve0_bsp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nve0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_PPP
]
=
&
nvc0_ppp_oclass
;
...
...
drivers/gpu/drm/nouveau/core/include/core/device.h
浏览文件 @
b0bc5304
...
...
@@ -49,6 +49,7 @@ enum nv_subdev_type {
NVDEV_ENGINE_PPP
,
NVDEV_ENGINE_COPY0
,
NVDEV_ENGINE_COPY1
,
NVDEV_ENGINE_COPY2
,
NVDEV_ENGINE_UNK1C1
,
NVDEV_ENGINE_VENC
,
NVDEV_ENGINE_DISP
,
...
...
drivers/gpu/drm/nouveau/core/include/engine/copy.h
浏览文件 @
b0bc5304
...
...
@@ -8,5 +8,6 @@ extern struct nouveau_oclass nvc0_copy0_oclass;
extern
struct
nouveau_oclass
nvc0_copy1_oclass
;
extern
struct
nouveau_oclass
nve0_copy0_oclass
;
extern
struct
nouveau_oclass
nve0_copy1_oclass
;
extern
struct
nouveau_oclass
nve0_copy2_oclass
;
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录