Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
08f7633c
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看板
提交
08f7633c
编写于
11月 08, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/nvif: move internal class identifiers to class.h
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
21f560e9
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
28 addition
and
31 deletion
+28
-31
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+8
-3
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
+0
-8
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_abi16.c
+8
-8
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_chan.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_sysfs.c
drivers/gpu/drm/nouveau/nouveau_sysfs.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
+2
-2
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
08f7633c
#ifndef __NVIF_CLASS_H__
#define __NVIF_CLASS_H__
/*******************************************************************************
* class identifiers
******************************************************************************/
/* these class numbers are made up by us, and not nvidia-assigned */
#define NVIF_CLASS_CONTROL -1
#define NVIF_CLASS_PERFMON -2
#define NVIF_CLASS_PERFDOM -3
#define NVIF_CLASS_SW_NV04 -4
#define NVIF_CLASS_SW_NV10 -5
#define NVIF_CLASS_SW_NV50 -6
#define NVIF_CLASS_SW_GF100 -7
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
#define NV_DEVICE 0x00000080
...
...
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
浏览文件 @
08f7633c
...
...
@@ -55,14 +55,6 @@ struct nvif_ioctl_new_v0 {
__u64
token
;
__u64
object
;
__u32
handle
;
/* these class numbers are made up by us, and not nvidia-assigned */
#define NVIF_IOCTL_NEW_V0_CONTROL -1
#define NVIF_IOCTL_NEW_V0_PERFMON -2
#define NVIF_IOCTL_NEW_V0_PERFDOM -3
#define NVIF_IOCTL_NEW_V0_SW_NV04 -4
#define NVIF_IOCTL_NEW_V0_SW_NV10 -5
#define NVIF_IOCTL_NEW_V0_SW_NV50 -6
#define NVIF_IOCTL_NEW_V0_SW_GF100 -7
__s32
oclass
;
__u8
data
[];
/* class data (class.h) */
};
...
...
drivers/gpu/drm/nouveau/nouveau_abi16.c
浏览文件 @
08f7633c
...
...
@@ -87,18 +87,18 @@ nouveau_abi16_swclass(struct nouveau_drm *drm)
{
switch
(
drm
->
device
.
info
.
family
)
{
case
NV_DEVICE_INFO_V0_TNT
:
return
NVIF_
IOCTL_NEW_V0
_SW_NV04
;
return
NVIF_
CLASS
_SW_NV04
;
case
NV_DEVICE_INFO_V0_CELSIUS
:
case
NV_DEVICE_INFO_V0_KELVIN
:
case
NV_DEVICE_INFO_V0_RANKINE
:
case
NV_DEVICE_INFO_V0_CURIE
:
return
NVIF_
IOCTL_NEW_V0
_SW_NV10
;
return
NVIF_
CLASS
_SW_NV10
;
case
NV_DEVICE_INFO_V0_TESLA
:
return
NVIF_
IOCTL_NEW_V0
_SW_NV50
;
return
NVIF_
CLASS
_SW_NV50
;
case
NV_DEVICE_INFO_V0_FERMI
:
case
NV_DEVICE_INFO_V0_KEPLER
:
case
NV_DEVICE_INFO_V0_MAXWELL
:
return
NVIF_
IOCTL_NEW_V0
_SW_GF100
;
return
NVIF_
CLASS
_SW_GF100
;
}
return
0x0000
;
...
...
@@ -433,10 +433,10 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
/* nvsw: compatibility with older 0x*6e class identifier */
for
(
i
=
0
;
!
oclass
&&
i
<
ret
;
i
++
)
{
switch
(
sclass
[
i
].
oclass
)
{
case
NVIF_
IOCTL_NEW_V0
_SW_NV04
:
case
NVIF_
IOCTL_NEW_V0
_SW_NV10
:
case
NVIF_
IOCTL_NEW_V0
_SW_NV50
:
case
NVIF_
IOCTL_NEW_V0
_SW_GF100
:
case
NVIF_
CLASS
_SW_NV04
:
case
NVIF_
CLASS
_SW_NV10
:
case
NVIF_
CLASS
_SW_NV50
:
case
NVIF_
CLASS
_SW_GF100
:
oclass
=
sclass
[
i
].
oclass
;
break
;
default:
...
...
drivers/gpu/drm/nouveau/nouveau_chan.c
浏览文件 @
08f7633c
...
...
@@ -378,7 +378,7 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
/* allocate software object class (used for fences on <= nv05) */
if
(
device
->
info
.
family
<
NV_DEVICE_INFO_V0_CELSIUS
)
{
ret
=
nvif_object_init
(
&
chan
->
user
,
0x006e
,
NVIF_
IOCTL_NEW_V0
_SW_NV04
,
NVIF_
CLASS
_SW_NV04
,
NULL
,
0
,
&
chan
->
nvsw
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/nouveau_sysfs.c
浏览文件 @
08f7633c
...
...
@@ -188,7 +188,7 @@ nouveau_sysfs_init(struct drm_device *dev)
if
(
!
sysfs
)
return
-
ENOMEM
;
ret
=
nvif_object_init
(
&
device
->
object
,
0
,
NVIF_
IOCTL_NEW_V0
_CONTROL
,
ret
=
nvif_object_init
(
&
device
->
object
,
0
,
NVIF_
CLASS
_CONTROL
,
NULL
,
0
,
&
sysfs
->
ctrl
);
if
(
ret
==
0
)
device_create_file
(
nvxx_device
(
device
)
->
dev
,
&
dev_attr_pstate
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
浏览文件 @
08f7633c
...
...
@@ -204,7 +204,7 @@ nvkm_control_new(struct nvkm_device *device, const struct nvkm_oclass *oclass,
const
struct
nvkm_device_oclass
nvkm_control_oclass
=
{
.
base
.
oclass
=
NVIF_
IOCTL_NEW_V0
_CONTROL
,
.
base
.
oclass
=
NVIF_
CLASS
_CONTROL
,
.
base
.
minver
=
-
1
,
.
base
.
maxver
=
-
1
,
.
ctor
=
nvkm_control_new
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
浏览文件 @
08f7633c
...
...
@@ -612,7 +612,7 @@ nvkm_perfmon_child_get(struct nvkm_object *object, int index,
struct
nvkm_oclass
*
oclass
)
{
if
(
index
==
0
)
{
oclass
->
base
.
oclass
=
NVIF_
IOCTL_NEW_V0
_PERFDOM
;
oclass
->
base
.
oclass
=
NVIF_
CLASS
_PERFDOM
;
oclass
->
base
.
minver
=
0
;
oclass
->
base
.
maxver
=
0
;
oclass
->
ctor
=
nvkm_perfmon_child_new
;
...
...
@@ -679,7 +679,7 @@ nvkm_pm_oclass_new(struct nvkm_device *device, const struct nvkm_oclass *oclass,
static
const
struct
nvkm_device_oclass
nvkm_pm_oclass
=
{
.
base
.
oclass
=
NVIF_
IOCTL_NEW_V0
_PERFMON
,
.
base
.
oclass
=
NVIF_
CLASS
_PERFMON
,
.
base
.
minver
=
-
1
,
.
base
.
maxver
=
-
1
,
.
ctor
=
nvkm_pm_oclass_new
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
浏览文件 @
08f7633c
...
...
@@ -28,8 +28,8 @@
#include <engine/disp.h>
#include <engine/fifo.h>
#include <nvif/class.h>
#include <nvif/event.h>
#include <nvif/ioctl.h>
/*******************************************************************************
* software context
...
...
@@ -143,7 +143,7 @@ static const struct nvkm_sw_func
gf100_sw
=
{
.
chan_new
=
gf100_sw_chan_new
,
.
sclass
=
{
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
IOCTL_NEW_V0
_SW_GF100
}
},
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
CLASS
_SW_GF100
}
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
浏览文件 @
08f7633c
...
...
@@ -126,7 +126,7 @@ static const struct nvkm_sw_func
nv04_sw
=
{
.
chan_new
=
nv04_sw_chan_new
,
.
sclass
=
{
{
nv04_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
IOCTL_NEW_V0
_SW_NV04
}
},
{
nv04_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
CLASS
_SW_NV04
}
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
浏览文件 @
08f7633c
...
...
@@ -25,7 +25,7 @@
#include "chan.h"
#include "nvsw.h"
#include <nvif/
ioctl
.h>
#include <nvif/
class
.h>
/*******************************************************************************
* software context
...
...
@@ -56,7 +56,7 @@ static const struct nvkm_sw_func
nv10_sw
=
{
.
chan_new
=
nv10_sw_chan_new
,
.
sclass
=
{
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
IOCTL_NEW_V0
_SW_NV10
}
},
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
CLASS
_SW_NV10
}
},
{}
}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
浏览文件 @
08f7633c
...
...
@@ -28,8 +28,8 @@
#include <engine/fifo/chan.h>
#include <subdev/bar.h>
#include <nvif/class.h>
#include <nvif/event.h>
#include <nvif/ioctl.h>
/*******************************************************************************
* software context
...
...
@@ -136,7 +136,7 @@ static const struct nvkm_sw_func
nv50_sw
=
{
.
chan_new
=
nv50_sw_chan_new
,
.
sclass
=
{
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
IOCTL_NEW_V0
_SW_NV50
}
},
{
nvkm_nvsw_new
,
{
-
1
,
-
1
,
NVIF_
CLASS
_SW_NV50
}
},
{}
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录