Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
eaebfcc3
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
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看板
提交
eaebfcc3
编写于
4月 08, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/core: add top plumbing
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
2e9a43f9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
22 addition
and
0 deletion
+22
-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/subdev/top.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
+8
-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/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/subdev/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/Kbuild
+1
-0
drivers/gpu/drm/nouveau/nvkm/subdev/top/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/top/Kbuild
+1
-0
drivers/gpu/drm/nouveau/nvkm/subdev/top/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/top/priv.h
+5
-0
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
浏览文件 @
eaebfcc3
...
...
@@ -7,6 +7,7 @@ enum nvkm_devidx {
NVKM_SUBDEV_PCI
,
NVKM_SUBDEV_VBIOS
,
NVKM_SUBDEV_DEVINIT
,
NVKM_SUBDEV_TOP
,
NVKM_SUBDEV_IBUS
,
NVKM_SUBDEV_GPIO
,
NVKM_SUBDEV_I2C
,
...
...
@@ -131,6 +132,7 @@ struct nvkm_device {
struct
nvkm_secboot
*
secboot
;
struct
nvkm_therm
*
therm
;
struct
nvkm_timer
*
timer
;
struct
nvkm_top
*
top
;
struct
nvkm_volt
*
volt
;
struct
nvkm_engine
*
bsp
;
...
...
@@ -200,6 +202,7 @@ struct nvkm_device_chip {
int
(
*
secboot
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_secboot
**
);
int
(
*
therm
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_therm
**
);
int
(
*
timer
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_timer
**
);
int
(
*
top
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_top
**
);
int
(
*
volt
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_volt
**
);
int
(
*
bsp
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
...
...
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
0 → 100644
浏览文件 @
eaebfcc3
#ifndef __NVKM_TOP_H__
#define __NVKM_TOP_H__
#include <core/subdev.h>
struct
nvkm_top
{
struct
nvkm_subdev
subdev
;
};
#endif
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
浏览文件 @
eaebfcc3
...
...
@@ -50,6 +50,7 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = {
[
NVKM_SUBDEV_SECBOOT
]
=
"secboot"
,
[
NVKM_SUBDEV_THERM
]
=
"therm"
,
[
NVKM_SUBDEV_TIMER
]
=
"tmr"
,
[
NVKM_SUBDEV_TOP
]
=
"top"
,
[
NVKM_SUBDEV_VOLT
]
=
"volt"
,
[
NVKM_ENGINE_BSP
]
=
"bsp"
,
[
NVKM_ENGINE_CE0
]
=
"ce0"
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
浏览文件 @
eaebfcc3
...
...
@@ -2150,6 +2150,7 @@ nvkm_device_subdev(struct nvkm_device *device, int index)
_
(
SECBOOT
,
device
->
secboot
,
&
device
->
secboot
->
subdev
);
_
(
THERM
,
device
->
therm
,
&
device
->
therm
->
subdev
);
_
(
TIMER
,
device
->
timer
,
&
device
->
timer
->
subdev
);
_
(
TOP
,
device
->
top
,
&
device
->
top
->
subdev
);
_
(
VOLT
,
device
->
volt
,
&
device
->
volt
->
subdev
);
#undef _
default:
...
...
@@ -2604,6 +2605,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
_
(
NVKM_SUBDEV_SECBOOT
,
secboot
);
_
(
NVKM_SUBDEV_THERM
,
therm
);
_
(
NVKM_SUBDEV_TIMER
,
timer
);
_
(
NVKM_SUBDEV_TOP
,
top
);
_
(
NVKM_SUBDEV_VOLT
,
volt
);
_
(
NVKM_ENGINE_BSP
,
bsp
);
_
(
NVKM_ENGINE_CE0
,
ce
[
0
]);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h
浏览文件 @
eaebfcc3
...
...
@@ -22,6 +22,7 @@
#include <subdev/pmu.h>
#include <subdev/therm.h>
#include <subdev/timer.h>
#include <subdev/top.h>
#include <subdev/volt.h>
#include <subdev/secboot.h>
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/Kbuild
浏览文件 @
eaebfcc3
...
...
@@ -19,4 +19,5 @@ include $(src)/nvkm/subdev/pmu/Kbuild
include $(src)/nvkm/subdev/secboot/Kbuild
include $(src)/nvkm/subdev/therm/Kbuild
include $(src)/nvkm/subdev/timer/Kbuild
include $(src)/nvkm/subdev/top/Kbuild
include $(src)/nvkm/subdev/volt/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/top/Kbuild
0 → 100644
浏览文件 @
eaebfcc3
#nvkm-y += nvkm/subdev/top/base.o
drivers/gpu/drm/nouveau/nvkm/subdev/top/priv.h
0 → 100644
浏览文件 @
eaebfcc3
#ifndef __NVKM_TOP_PRIV_H__
#define __NVKM_TOP_PRIV_H__
#define nvkm_top(p) container_of((p), struct nvkm_top, subdev)
#include <subdev/top.h>
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录