Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
f58ddf95
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f58ddf95
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/nvif: assign internal class identifiers to sw classes
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
315a8b2e
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
87 addition
and
26 deletion
+87
-26
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
+4
-0
drivers/gpu/drm/nouveau/include/nvkm/core/namedb.h
drivers/gpu/drm/nouveau/include/nvkm/core/namedb.h
+1
-1
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_abi16.c
+61
-15
drivers/gpu/drm/nouveau/nouveau_abi16.h
drivers/gpu/drm/nouveau/nouveau_abi16.h
+1
-1
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_chan.c
+3
-1
drivers/gpu/drm/nouveau/nvkm/core/namedb.c
drivers/gpu/drm/nouveau/nvkm/core/namedb.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
+3
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
+3
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
+3
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
+2
-1
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/ioctl.h
浏览文件 @
f58ddf95
...
@@ -55,6 +55,10 @@ struct nvif_ioctl_new_v0 {
...
@@ -55,6 +55,10 @@ struct nvif_ioctl_new_v0 {
#define NVIF_IOCTL_NEW_V0_CONTROL -1
#define NVIF_IOCTL_NEW_V0_CONTROL -1
#define NVIF_IOCTL_NEW_V0_PERFMON -2
#define NVIF_IOCTL_NEW_V0_PERFMON -2
#define NVIF_IOCTL_NEW_V0_PERFDOM -3
#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
;
__s32
oclass
;
__u8
data
[];
/* class data (class.h) */
__u8
data
[];
/* class data (class.h) */
};
};
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/namedb.h
浏览文件 @
f58ddf95
...
@@ -45,7 +45,7 @@ int nvkm_namedb_insert(struct nvkm_namedb *, u32 name, struct nvkm_object *,
...
@@ -45,7 +45,7 @@ int nvkm_namedb_insert(struct nvkm_namedb *, u32 name, struct nvkm_object *,
void
nvkm_namedb_remove
(
struct
nvkm_handle
*
);
void
nvkm_namedb_remove
(
struct
nvkm_handle
*
);
struct
nvkm_handle
*
nvkm_namedb_get
(
struct
nvkm_namedb
*
,
u32
);
struct
nvkm_handle
*
nvkm_namedb_get
(
struct
nvkm_namedb
*
,
u32
);
struct
nvkm_handle
*
nvkm_namedb_get_class
(
struct
nvkm_namedb
*
,
u16
);
struct
nvkm_handle
*
nvkm_namedb_get_class
(
struct
nvkm_namedb
*
,
s32
);
struct
nvkm_handle
*
nvkm_namedb_get_vinst
(
struct
nvkm_namedb
*
,
u64
);
struct
nvkm_handle
*
nvkm_namedb_get_vinst
(
struct
nvkm_namedb
*
,
u64
);
struct
nvkm_handle
*
nvkm_namedb_get_cinst
(
struct
nvkm_namedb
*
,
u32
);
struct
nvkm_handle
*
nvkm_namedb_get_cinst
(
struct
nvkm_namedb
*
,
u32
);
void
nvkm_namedb_put
(
struct
nvkm_handle
*
);
void
nvkm_namedb_put
(
struct
nvkm_handle
*
);
...
...
drivers/gpu/drm/nouveau/nouveau_abi16.c
浏览文件 @
f58ddf95
...
@@ -74,23 +74,23 @@ nouveau_abi16_put(struct nouveau_abi16 *abi16, int ret)
...
@@ -74,23 +74,23 @@ nouveau_abi16_put(struct nouveau_abi16 *abi16, int ret)
return
ret
;
return
ret
;
}
}
u16
s32
nouveau_abi16_swclass
(
struct
nouveau_drm
*
drm
)
nouveau_abi16_swclass
(
struct
nouveau_drm
*
drm
)
{
{
switch
(
drm
->
device
.
info
.
family
)
{
switch
(
drm
->
device
.
info
.
family
)
{
case
NV_DEVICE_INFO_V0_TNT
:
case
NV_DEVICE_INFO_V0_TNT
:
return
0x006e
;
return
NVIF_IOCTL_NEW_V0_SW_NV04
;
case
NV_DEVICE_INFO_V0_CELSIUS
:
case
NV_DEVICE_INFO_V0_CELSIUS
:
case
NV_DEVICE_INFO_V0_KELVIN
:
case
NV_DEVICE_INFO_V0_KELVIN
:
case
NV_DEVICE_INFO_V0_RANKINE
:
case
NV_DEVICE_INFO_V0_RANKINE
:
case
NV_DEVICE_INFO_V0_CURIE
:
case
NV_DEVICE_INFO_V0_CURIE
:
return
0x016e
;
return
NVIF_IOCTL_NEW_V0_SW_NV10
;
case
NV_DEVICE_INFO_V0_TESLA
:
case
NV_DEVICE_INFO_V0_TESLA
:
return
0x506e
;
return
NVIF_IOCTL_NEW_V0_SW_NV50
;
case
NV_DEVICE_INFO_V0_FERMI
:
case
NV_DEVICE_INFO_V0_FERMI
:
case
NV_DEVICE_INFO_V0_KEPLER
:
case
NV_DEVICE_INFO_V0_KEPLER
:
case
NV_DEVICE_INFO_V0_MAXWELL
:
case
NV_DEVICE_INFO_V0_MAXWELL
:
return
0x906e
;
return
NVIF_IOCTL_NEW_V0_SW_GF100
;
}
}
return
0x0000
;
return
0x0000
;
...
@@ -368,9 +368,10 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
...
@@ -368,9 +368,10 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
struct
nouveau_abi16
*
abi16
=
nouveau_abi16_get
(
file_priv
,
dev
);
struct
nouveau_abi16
*
abi16
=
nouveau_abi16_get
(
file_priv
,
dev
);
struct
nouveau_abi16_chan
*
chan
;
struct
nouveau_abi16_chan
*
chan
;
struct
nouveau_abi16_ntfy
*
ntfy
;
struct
nouveau_abi16_ntfy
*
ntfy
;
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
struct
nvif_client
*
client
;
struct
nvif_client
*
client
;
int
ret
;
u32
sclass
[
32
];
s32
oclass
=
0
;
int
ret
,
i
;
if
(
unlikely
(
!
abi16
))
if
(
unlikely
(
!
abi16
))
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -379,17 +380,62 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
...
@@ -379,17 +380,62 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
return
nouveau_abi16_put
(
abi16
,
-
EINVAL
);
return
nouveau_abi16_put
(
abi16
,
-
EINVAL
);
client
=
abi16
->
device
.
object
.
client
;
client
=
abi16
->
device
.
object
.
client
;
/* compatibility with userspace that assumes 506e for all chipsets */
if
(
init
->
class
==
0x506e
)
{
init
->
class
=
nouveau_abi16_swclass
(
drm
);
if
(
init
->
class
==
0x906e
)
return
nouveau_abi16_put
(
abi16
,
0
);
}
chan
=
nouveau_abi16_chan
(
abi16
,
init
->
channel
);
chan
=
nouveau_abi16_chan
(
abi16
,
init
->
channel
);
if
(
!
chan
)
if
(
!
chan
)
return
nouveau_abi16_put
(
abi16
,
-
ENOENT
);
return
nouveau_abi16_put
(
abi16
,
-
ENOENT
);
ret
=
nvif_object_sclass
(
&
chan
->
chan
->
user
,
sclass
,
ARRAY_SIZE
(
sclass
));
if
(
ret
<
0
)
return
nouveau_abi16_put
(
abi16
,
ret
);
if
((
init
->
class
&
0x00ff
)
==
0x006e
)
{
/* nvsw: compatibility with older 0x*6e class identifier */
for
(
i
=
0
;
!
oclass
&&
i
<
ret
;
i
++
)
{
switch
(
sclass
[
i
])
{
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
:
oclass
=
sclass
[
i
];
break
;
default:
break
;
}
}
}
else
if
((
init
->
class
&
0x00ff
)
==
0x00b1
)
{
/* msvld: compatibility with incorrect version exposure */
for
(
i
=
0
;
i
<
ret
;
i
++
)
{
if
((
sclass
[
i
]
&
0x00ff
)
==
0x00b1
)
{
oclass
=
sclass
[
i
];
break
;
}
}
}
else
if
((
init
->
class
&
0x00ff
)
==
0x00b2
)
{
/* mspdec */
/* mspdec: compatibility with incorrect version exposure */
for
(
i
=
0
;
i
<
ret
;
i
++
)
{
if
((
sclass
[
i
]
&
0x00ff
)
==
0x00b2
)
{
oclass
=
sclass
[
i
];
break
;
}
}
}
else
if
((
init
->
class
&
0x00ff
)
==
0x00b3
)
{
/* msppp */
/* msppp: compatibility with incorrect version exposure */
for
(
i
=
0
;
i
<
ret
;
i
++
)
{
if
((
sclass
[
i
]
&
0x00ff
)
==
0x00b3
)
{
oclass
=
sclass
[
i
];
break
;
}
}
}
else
{
oclass
=
init
->
class
;
}
if
(
!
oclass
)
return
nouveau_abi16_put
(
abi16
,
-
EINVAL
);
ntfy
=
kzalloc
(
sizeof
(
*
ntfy
),
GFP_KERNEL
);
ntfy
=
kzalloc
(
sizeof
(
*
ntfy
),
GFP_KERNEL
);
if
(
!
ntfy
)
if
(
!
ntfy
)
return
nouveau_abi16_put
(
abi16
,
-
ENOMEM
);
return
nouveau_abi16_put
(
abi16
,
-
ENOMEM
);
...
@@ -397,7 +443,7 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
...
@@ -397,7 +443,7 @@ nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS)
list_add
(
&
ntfy
->
head
,
&
chan
->
notifiers
);
list_add
(
&
ntfy
->
head
,
&
chan
->
notifiers
);
client
->
route
=
NVDRM_OBJECT_ABI16
;
client
->
route
=
NVDRM_OBJECT_ABI16
;
ret
=
nvif_object_init
(
&
chan
->
chan
->
user
,
init
->
handle
,
init
->
class
,
ret
=
nvif_object_init
(
&
chan
->
chan
->
user
,
init
->
handle
,
o
class
,
NULL
,
0
,
&
ntfy
->
object
);
NULL
,
0
,
&
ntfy
->
object
);
client
->
route
=
NVDRM_OBJECT_NVIF
;
client
->
route
=
NVDRM_OBJECT_NVIF
;
...
...
drivers/gpu/drm/nouveau/nouveau_abi16.h
浏览文件 @
f58ddf95
...
@@ -37,7 +37,7 @@ struct nouveau_drm;
...
@@ -37,7 +37,7 @@ struct nouveau_drm;
struct
nouveau_abi16
*
nouveau_abi16_get
(
struct
drm_file
*
,
struct
drm_device
*
);
struct
nouveau_abi16
*
nouveau_abi16_get
(
struct
drm_file
*
,
struct
drm_device
*
);
int
nouveau_abi16_put
(
struct
nouveau_abi16
*
,
int
);
int
nouveau_abi16_put
(
struct
nouveau_abi16
*
,
int
);
void
nouveau_abi16_fini
(
struct
nouveau_abi16
*
);
void
nouveau_abi16_fini
(
struct
nouveau_abi16
*
);
u16
nouveau_abi16_swclass
(
struct
nouveau_drm
*
);
s32
nouveau_abi16_swclass
(
struct
nouveau_drm
*
);
#define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1)
#define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1)
#define NOUVEAU_GEM_DOMAIN_GART (1 << 2)
#define NOUVEAU_GEM_DOMAIN_GART (1 << 2)
...
...
drivers/gpu/drm/nouveau/nouveau_chan.c
浏览文件 @
f58ddf95
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <nvif/os.h>
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/class.h>
#include <nvif/ioctl.h>
/*XXX*/
/*XXX*/
#include <core/client.h>
#include <core/client.h>
...
@@ -363,7 +364,8 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
...
@@ -363,7 +364,8 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
/* allocate software object class (used for fences on <= nv05) */
/* allocate software object class (used for fences on <= nv05) */
if
(
device
->
info
.
family
<
NV_DEVICE_INFO_V0_CELSIUS
)
{
if
(
device
->
info
.
family
<
NV_DEVICE_INFO_V0_CELSIUS
)
{
ret
=
nvif_object_init
(
&
chan
->
user
,
0x006e
,
0x006e
,
ret
=
nvif_object_init
(
&
chan
->
user
,
0x006e
,
NVIF_IOCTL_NEW_V0_SW_NV04
,
NULL
,
0
,
&
chan
->
nvsw
);
NULL
,
0
,
&
chan
->
nvsw
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
...
drivers/gpu/drm/nouveau/nvkm/core/namedb.c
浏览文件 @
f58ddf95
...
@@ -39,7 +39,7 @@ nvkm_namedb_lookup(struct nvkm_namedb *namedb, u32 name)
...
@@ -39,7 +39,7 @@ nvkm_namedb_lookup(struct nvkm_namedb *namedb, u32 name)
}
}
static
struct
nvkm_handle
*
static
struct
nvkm_handle
*
nvkm_namedb_lookup_class
(
struct
nvkm_namedb
*
namedb
,
u16
oclass
)
nvkm_namedb_lookup_class
(
struct
nvkm_namedb
*
namedb
,
s32
oclass
)
{
{
struct
nvkm_handle
*
handle
;
struct
nvkm_handle
*
handle
;
...
@@ -122,7 +122,7 @@ nvkm_namedb_get(struct nvkm_namedb *namedb, u32 name)
...
@@ -122,7 +122,7 @@ nvkm_namedb_get(struct nvkm_namedb *namedb, u32 name)
}
}
struct
nvkm_handle
*
struct
nvkm_handle
*
nvkm_namedb_get_class
(
struct
nvkm_namedb
*
namedb
,
u16
oclass
)
nvkm_namedb_get_class
(
struct
nvkm_namedb
*
namedb
,
s32
oclass
)
{
{
struct
nvkm_handle
*
handle
;
struct
nvkm_handle
*
handle
;
read_lock
(
&
namedb
->
lock
);
read_lock
(
&
namedb
->
lock
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
浏览文件 @
f58ddf95
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <subdev/timer.h>
#include <subdev/timer.h>
#include <nvif/class.h>
#include <nvif/class.h>
#include <nvif/ioctl.h>
#include <nvif/unpack.h>
#include <nvif/unpack.h>
struct
gf100_fifo
{
struct
gf100_fifo
{
...
@@ -494,7 +495,7 @@ gf100_fifo_swmthd(struct gf100_fifo *fifo, u32 chid, u32 mthd, u32 data)
...
@@ -494,7 +495,7 @@ gf100_fifo_swmthd(struct gf100_fifo *fifo, u32 chid, u32 mthd, u32 data)
if
(
unlikely
(
!
chan
))
if
(
unlikely
(
!
chan
))
goto
out
;
goto
out
;
bind
=
nvkm_namedb_get_class
(
nv_namedb
(
chan
),
0x906e
);
bind
=
nvkm_namedb_get_class
(
nv_namedb
(
chan
),
NVIF_IOCTL_NEW_V0_SW_GF100
);
if
(
likely
(
bind
))
{
if
(
likely
(
bind
))
{
if
(
!
mthd
||
!
nv_call
(
bind
->
object
,
mthd
,
data
))
if
(
!
mthd
||
!
nv_call
(
bind
->
object
,
mthd
,
data
))
ret
=
0
;
ret
=
0
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
浏览文件 @
f58ddf95
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <subdev/timer.h>
#include <subdev/timer.h>
#include <nvif/class.h>
#include <nvif/class.h>
#include <nvif/ioctl.h>
#include <nvif/unpack.h>
#include <nvif/unpack.h>
#define _(a,b) { (a), ((1ULL << (a)) | (b)) }
#define _(a,b) { (a), ((1ULL << (a)) | (b)) }
...
@@ -533,7 +534,7 @@ gk104_fifo_swmthd(struct gk104_fifo *fifo, u32 chid, u32 mthd, u32 data)
...
@@ -533,7 +534,7 @@ gk104_fifo_swmthd(struct gk104_fifo *fifo, u32 chid, u32 mthd, u32 data)
if
(
unlikely
(
!
chan
))
if
(
unlikely
(
!
chan
))
goto
out
;
goto
out
;
bind
=
nvkm_namedb_get_class
(
nv_namedb
(
chan
),
0x906e
);
bind
=
nvkm_namedb_get_class
(
nv_namedb
(
chan
),
NVIF_IOCTL_NEW_V0_SW_GF100
);
if
(
likely
(
bind
))
{
if
(
likely
(
bind
))
{
if
(
!
mthd
||
!
nv_call
(
bind
->
object
,
mthd
,
data
))
if
(
!
mthd
||
!
nv_call
(
bind
->
object
,
mthd
,
data
))
ret
=
0
;
ret
=
0
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
浏览文件 @
f58ddf95
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include <subdev/bar.h>
#include <subdev/bar.h>
#include <nvif/ioctl.h>
/*******************************************************************************
/*******************************************************************************
* software object classes
* software object classes
******************************************************************************/
******************************************************************************/
...
@@ -87,7 +89,7 @@ gf100_sw_omthds[] = {
...
@@ -87,7 +89,7 @@ gf100_sw_omthds[] = {
static
struct
nvkm_oclass
static
struct
nvkm_oclass
gf100_sw_sclass
[]
=
{
gf100_sw_sclass
[]
=
{
{
0x906e
,
&
nvkm_object_ofuncs
,
gf100_sw_omthds
},
{
NVIF_IOCTL_NEW_V0_SW_GF100
,
&
nvkm_object_ofuncs
,
gf100_sw_omthds
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
浏览文件 @
f58ddf95
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
#include <engine/sw.h>
#include <engine/sw.h>
#include <engine/fifo.h>
#include <engine/fifo.h>
#include <nvif/ioctl.h>
/*******************************************************************************
/*******************************************************************************
* software object classes
* software object classes
******************************************************************************/
******************************************************************************/
...
@@ -55,7 +57,7 @@ nv04_sw_omthds[] = {
...
@@ -55,7 +57,7 @@ nv04_sw_omthds[] = {
static
struct
nvkm_oclass
static
struct
nvkm_oclass
nv04_sw_sclass
[]
=
{
nv04_sw_sclass
[]
=
{
{
0x006e
,
&
nvkm_object_ofuncs
,
nv04_sw_omthds
},
{
NVIF_IOCTL_NEW_V0_SW_NV04
,
&
nvkm_object_ofuncs
,
nv04_sw_omthds
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c
浏览文件 @
f58ddf95
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
*/
*/
#include <engine/sw.h>
#include <engine/sw.h>
#include <nvif/ioctl.h>
/*******************************************************************************
/*******************************************************************************
* software object classes
* software object classes
******************************************************************************/
******************************************************************************/
...
@@ -44,7 +46,7 @@ nv10_sw_omthds[] = {
...
@@ -44,7 +46,7 @@ nv10_sw_omthds[] = {
static
struct
nvkm_oclass
static
struct
nvkm_oclass
nv10_sw_sclass
[]
=
{
nv10_sw_sclass
[]
=
{
{
0x016e
,
&
nvkm_object_ofuncs
,
nv10_sw_omthds
},
{
NVIF_IOCTL_NEW_V0_SW_NV10
,
&
nvkm_object_ofuncs
,
nv10_sw_omthds
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
浏览文件 @
f58ddf95
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <subdev/bar.h>
#include <subdev/bar.h>
#include <nvif/event.h>
#include <nvif/event.h>
#include <nvif/ioctl.h>
/*******************************************************************************
/*******************************************************************************
* software object classes
* software object classes
...
@@ -108,7 +109,7 @@ nv50_sw_omthds[] = {
...
@@ -108,7 +109,7 @@ nv50_sw_omthds[] = {
static
struct
nvkm_oclass
static
struct
nvkm_oclass
nv50_sw_sclass
[]
=
{
nv50_sw_sclass
[]
=
{
{
0x506e
,
&
nvkm_object_ofuncs
,
nv50_sw_omthds
},
{
NVIF_IOCTL_NEW_V0_SW_NV50
,
&
nvkm_object_ofuncs
,
nv50_sw_omthds
},
{}
{}
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录