Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
538b269b
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看板
提交
538b269b
编写于
11月 08, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/nvif: split out nvsw interface definitons
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
53a6df77
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
30 addition
and
22 deletion
+30
-22
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+4
-18
drivers/gpu/drm/nouveau/include/nvif/if0004.h
drivers/gpu/drm/nouveau/include/nvif/if0004.h
+13
-0
drivers/gpu/drm/nouveau/include/nvif/if0005.h
drivers/gpu/drm/nouveau/include/nvif/if0005.h
+4
-0
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.c
+4
-2
drivers/gpu/drm/nouveau/nv04_fence.c
drivers/gpu/drm/nouveau/nv04_fence.c
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/sw/nvsw.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nvsw.c
+2
-2
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
538b269b
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
#define NVIF_CLASS_CONTROL -1
#define NVIF_CLASS_CONTROL -1
#define NVIF_CLASS_PERFMON -2
#define NVIF_CLASS_PERFMON -2
#define NVIF_CLASS_PERFDOM -3
#define NVIF_CLASS_PERFDOM -3
#define NVIF_CLASS_SW_NV04
-4
#define NVIF_CLASS_SW_NV04
/* if0004.h */
-4
#define NVIF_CLASS_SW_NV10
-5
#define NVIF_CLASS_SW_NV10
/* if0005.h */
-5
#define NVIF_CLASS_SW_NV50
-6
#define NVIF_CLASS_SW_NV50
/* if0005.h */
-6
#define NVIF_CLASS_SW_GF100
-7
#define NVIF_CLASS_SW_GF100
/* if0005.h */
-7
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
#define NV_DEVICE 0x00000080
#define NV_DEVICE 0x00000080
...
@@ -614,18 +614,4 @@ struct nv50_disp_overlay_v0 {
...
@@ -614,18 +614,4 @@ struct nv50_disp_overlay_v0 {
};
};
#define NV50_DISP_OVERLAY_V0_NTFY_UEVENT 0x00
#define NV50_DISP_OVERLAY_V0_NTFY_UEVENT 0x00
/*******************************************************************************
* software
******************************************************************************/
#define NVSW_NTFY_UEVENT 0x00
#define NV04_NVSW_GET_REF 0x00
struct
nv04_nvsw_get_ref_v0
{
__u8
version
;
__u8
pad01
[
3
];
__u32
ref
;
};
#endif
#endif
drivers/gpu/drm/nouveau/include/nvif/if0004.h
0 → 100644
浏览文件 @
538b269b
#ifndef __NVIF_IF0004_H__
#define __NVIF_IF0004_H__
#define NV04_NVSW_NTFY_UEVENT 0x00
#define NV04_NVSW_GET_REF 0x00
struct
nv04_nvsw_get_ref_v0
{
__u8
version
;
__u8
pad01
[
3
];
__u32
ref
;
};
#endif
drivers/gpu/drm/nouveau/include/nvif/if0005.h
0 → 100644
浏览文件 @
538b269b
#ifndef __NVIF_IF0005_H__
#define __NVIF_IF0005_H__
#define NV10_NVSW_NTFY_UEVENT 0x00
#endif
drivers/gpu/drm/nouveau/nouveau_drm.c
浏览文件 @
538b269b
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
#include <core/pci.h>
#include <core/pci.h>
#include <core/tegra.h>
#include <core/tegra.h>
#include <nvif/if0004.h>
#include "nouveau_drm.h"
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_dma.h"
#include "nouveau_ttm.h"
#include "nouveau_ttm.h"
...
@@ -256,8 +258,8 @@ nouveau_accel_init(struct nouveau_drm *drm)
...
@@ -256,8 +258,8 @@ nouveau_accel_init(struct nouveau_drm *drm)
}
}
ret
=
nvif_notify_init
(
&
drm
->
nvsw
,
nouveau_flip_complete
,
ret
=
nvif_notify_init
(
&
drm
->
nvsw
,
nouveau_flip_complete
,
false
,
NV
SW_NTFY_UEVENT
,
NULL
,
0
,
0
,
false
,
NV
04_NVSW_NTFY_UEVENT
,
&
drm
->
flip
);
NULL
,
0
,
0
,
&
drm
->
flip
);
if
(
ret
==
0
)
if
(
ret
==
0
)
ret
=
nvif_notify_get
(
&
drm
->
flip
);
ret
=
nvif_notify_get
(
&
drm
->
flip
);
if
(
ret
)
{
if
(
ret
)
{
...
...
drivers/gpu/drm/nouveau/nv04_fence.c
浏览文件 @
538b269b
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include "nouveau_dma.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
#include "nouveau_fence.h"
#include <nvif/if0004.h>
struct
nv04_fence_chan
{
struct
nv04_fence_chan
{
struct
nouveau_fence_chan
base
;
struct
nouveau_fence_chan
base
;
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
浏览文件 @
538b269b
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "nvsw.h"
#include "nvsw.h"
#include <nvif/class.h>
#include <nvif/class.h>
#include <nvif/if0004.h>
#include <nvif/ioctl.h>
#include <nvif/ioctl.h>
#include <nvif/unpack.h>
#include <nvif/unpack.h>
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nvsw.c
浏览文件 @
538b269b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "nvsw.h"
#include "nvsw.h"
#include "chan.h"
#include "chan.h"
#include <nvif/
class
.h>
#include <nvif/
if0004
.h>
static
int
static
int
nvkm_nvsw_mthd_
(
struct
nvkm_object
*
object
,
u32
mthd
,
void
*
data
,
u32
size
)
nvkm_nvsw_mthd_
(
struct
nvkm_object
*
object
,
u32
mthd
,
void
*
data
,
u32
size
)
...
@@ -41,7 +41,7 @@ nvkm_nvsw_ntfy_(struct nvkm_object *object, u32 mthd,
...
@@ -41,7 +41,7 @@ nvkm_nvsw_ntfy_(struct nvkm_object *object, u32 mthd,
{
{
struct
nvkm_nvsw
*
nvsw
=
nvkm_nvsw
(
object
);
struct
nvkm_nvsw
*
nvsw
=
nvkm_nvsw
(
object
);
switch
(
mthd
)
{
switch
(
mthd
)
{
case
NVSW_NTFY_UEVENT
:
case
NV
04_NV
SW_NTFY_UEVENT
:
*
pevent
=
&
nvsw
->
chan
->
event
;
*
pevent
=
&
nvsw
->
chan
->
event
;
return
0
;
return
0
;
default:
default:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录