Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3545b425
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看板
提交
3545b425
编写于
3月 11, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/core: add nvdec plumbing
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
294af04b
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
13 addition
and
0 deletion
+13
-0
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
+3
-0
drivers/gpu/drm/nouveau/include/nvkm/engine/nvdec.h
drivers/gpu/drm/nouveau/include/nvkm/engine/nvdec.h
+4
-0
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/Kbuild
drivers/gpu/drm/nouveau/nvkm/engine/Kbuild
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/nvdec/Kbuild
drivers/gpu/drm/nouveau/nvkm/engine/nvdec/Kbuild
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
浏览文件 @
3545b425
...
@@ -51,6 +51,7 @@ enum nvkm_devidx {
...
@@ -51,6 +51,7 @@ enum nvkm_devidx {
NVKM_ENGINE_NVENC1
,
NVKM_ENGINE_NVENC1
,
NVKM_ENGINE_NVENC_LAST
=
NVKM_ENGINE_NVENC1
,
NVKM_ENGINE_NVENC_LAST
=
NVKM_ENGINE_NVENC1
,
NVKM_ENGINE_NVDEC
,
NVKM_ENGINE_PM
,
NVKM_ENGINE_PM
,
NVKM_ENGINE_SEC
,
NVKM_ENGINE_SEC
,
NVKM_ENGINE_SW
,
NVKM_ENGINE_SW
,
...
@@ -147,6 +148,7 @@ struct nvkm_device {
...
@@ -147,6 +148,7 @@ struct nvkm_device {
struct
nvkm_engine
*
msppp
;
struct
nvkm_engine
*
msppp
;
struct
nvkm_engine
*
msvld
;
struct
nvkm_engine
*
msvld
;
struct
nvkm_engine
*
nvenc
[
2
];
struct
nvkm_engine
*
nvenc
[
2
];
struct
nvkm_engine
*
nvdec
;
struct
nvkm_pm
*
pm
;
struct
nvkm_pm
*
pm
;
struct
nvkm_engine
*
sec
;
struct
nvkm_engine
*
sec
;
struct
nvkm_sw
*
sw
;
struct
nvkm_sw
*
sw
;
...
@@ -215,6 +217,7 @@ struct nvkm_device_chip {
...
@@ -215,6 +217,7 @@ struct nvkm_device_chip {
int
(
*
msppp
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
msppp
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
msvld
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
msvld
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
nvenc
[
2
])(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
nvenc
[
2
])(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
nvdec
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
pm
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_pm
**
);
int
(
*
pm
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_pm
**
);
int
(
*
sec
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
sec
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
sw
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_sw
**
);
int
(
*
sw
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_sw
**
);
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/nvdec.h
0 → 100644
浏览文件 @
3545b425
#ifndef __NVKM_NVDEC_H__
#define __NVKM_NVDEC_H__
#include <core/engine.h>
#endif
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
浏览文件 @
3545b425
...
@@ -69,6 +69,7 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = {
...
@@ -69,6 +69,7 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = {
[
NVKM_ENGINE_MSVLD
]
=
"msvld"
,
[
NVKM_ENGINE_MSVLD
]
=
"msvld"
,
[
NVKM_ENGINE_NVENC0
]
=
"nvenc0"
,
[
NVKM_ENGINE_NVENC0
]
=
"nvenc0"
,
[
NVKM_ENGINE_NVENC1
]
=
"nvenc1"
,
[
NVKM_ENGINE_NVENC1
]
=
"nvenc1"
,
[
NVKM_ENGINE_NVDEC
]
=
"nvdec"
,
[
NVKM_ENGINE_PM
]
=
"pm"
,
[
NVKM_ENGINE_PM
]
=
"pm"
,
[
NVKM_ENGINE_SEC
]
=
"sec"
,
[
NVKM_ENGINE_SEC
]
=
"sec"
,
[
NVKM_ENGINE_SW
]
=
"sw"
,
[
NVKM_ENGINE_SW
]
=
"sw"
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/Kbuild
浏览文件 @
3545b425
...
@@ -15,6 +15,7 @@ include $(src)/nvkm/engine/mspdec/Kbuild
...
@@ -15,6 +15,7 @@ include $(src)/nvkm/engine/mspdec/Kbuild
include $(src)/nvkm/engine/msppp/Kbuild
include $(src)/nvkm/engine/msppp/Kbuild
include $(src)/nvkm/engine/msvld/Kbuild
include $(src)/nvkm/engine/msvld/Kbuild
include $(src)/nvkm/engine/nvenc/Kbuild
include $(src)/nvkm/engine/nvenc/Kbuild
include $(src)/nvkm/engine/nvdec/Kbuild
include $(src)/nvkm/engine/pm/Kbuild
include $(src)/nvkm/engine/pm/Kbuild
include $(src)/nvkm/engine/sec/Kbuild
include $(src)/nvkm/engine/sec/Kbuild
include $(src)/nvkm/engine/sw/Kbuild
include $(src)/nvkm/engine/sw/Kbuild
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
浏览文件 @
3545b425
...
@@ -2185,6 +2185,7 @@ nvkm_device_engine(struct nvkm_device *device, int index)
...
@@ -2185,6 +2185,7 @@ nvkm_device_engine(struct nvkm_device *device, int index)
_
(
MSVLD
,
device
->
msvld
,
device
->
msvld
);
_
(
MSVLD
,
device
->
msvld
,
device
->
msvld
);
_
(
NVENC0
,
device
->
nvenc
[
0
],
device
->
nvenc
[
0
]);
_
(
NVENC0
,
device
->
nvenc
[
0
],
device
->
nvenc
[
0
]);
_
(
NVENC1
,
device
->
nvenc
[
1
],
device
->
nvenc
[
1
]);
_
(
NVENC1
,
device
->
nvenc
[
1
],
device
->
nvenc
[
1
]);
_
(
NVDEC
,
device
->
nvdec
,
device
->
nvdec
);
_
(
PM
,
device
->
pm
,
&
device
->
pm
->
engine
);
_
(
PM
,
device
->
pm
,
&
device
->
pm
->
engine
);
_
(
SEC
,
device
->
sec
,
device
->
sec
);
_
(
SEC
,
device
->
sec
,
device
->
sec
);
_
(
SW
,
device
->
sw
,
&
device
->
sw
->
engine
);
_
(
SW
,
device
->
sw
,
&
device
->
sw
->
engine
);
...
@@ -2620,6 +2621,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
...
@@ -2620,6 +2621,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
_
(
NVKM_ENGINE_MSVLD
,
msvld
);
_
(
NVKM_ENGINE_MSVLD
,
msvld
);
_
(
NVKM_ENGINE_NVENC0
,
nvenc
[
0
]);
_
(
NVKM_ENGINE_NVENC0
,
nvenc
[
0
]);
_
(
NVKM_ENGINE_NVENC1
,
nvenc
[
1
]);
_
(
NVKM_ENGINE_NVENC1
,
nvenc
[
1
]);
_
(
NVKM_ENGINE_NVDEC
,
nvdec
);
_
(
NVKM_ENGINE_PM
,
pm
);
_
(
NVKM_ENGINE_PM
,
pm
);
_
(
NVKM_ENGINE_SEC
,
sec
);
_
(
NVKM_ENGINE_SEC
,
sec
);
_
(
NVKM_ENGINE_SW
,
sw
);
_
(
NVKM_ENGINE_SW
,
sw
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h
浏览文件 @
3545b425
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <engine/msppp.h>
#include <engine/msppp.h>
#include <engine/msvld.h>
#include <engine/msvld.h>
#include <engine/nvenc.h>
#include <engine/nvenc.h>
#include <engine/nvdec.h>
#include <engine/pm.h>
#include <engine/pm.h>
#include <engine/sec.h>
#include <engine/sec.h>
#include <engine/sw.h>
#include <engine/sw.h>
...
...
drivers/gpu/drm/nouveau/nvkm/engine/nvdec/Kbuild
0 → 100644
浏览文件 @
3545b425
#nvkm-y += nvkm/engine/nvdec/base.o
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录