Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
aa35888f
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看板
提交
aa35888f
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/object: rename some functions to avoid upcoming conflicts
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
d61f4c17
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
51 addition
and
51 deletion
+51
-51
drivers/gpu/drm/nouveau/include/nvkm/core/gpuobj.h
drivers/gpu/drm/nouveau/include/nvkm/core/gpuobj.h
+2
-2
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
+3
-3
drivers/gpu/drm/nouveau/include/nvkm/core/parent.h
drivers/gpu/drm/nouveau/include/nvkm/core/parent.h
+4
-4
drivers/gpu/drm/nouveau/nvkm/core/gpuobj.c
drivers/gpu/drm/nouveau/nvkm/core/gpuobj.c
+5
-5
drivers/gpu/drm/nouveau/nvkm/core/ioctl.c
drivers/gpu/drm/nouveau/nvkm/core/ioctl.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/core/object.c
drivers/gpu/drm/nouveau/nvkm/core/object.c
+5
-5
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv04.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/priv.h
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
+2
-2
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/subdev/bar/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/priv.h
+4
-4
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv41.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv41.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
+1
-1
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/core/gpuobj.h
浏览文件 @
aa35888f
...
...
@@ -32,8 +32,8 @@ nv_gpuobj(void *obj)
#define nvkm_gpuobj_create(p,e,c,v,g,s,a,f,d) \
nvkm_gpuobj_create_((p), (e), (c), (v), (g), (s), (a), (f), \
sizeof(**d), (void **)d)
#define nvkm_gpuobj_init(p) nvkm_object_init(&(p)->object)
#define nvkm_gpuobj_fini(p,s) nvkm_object_fini(&(p)->object, (s))
#define nvkm_gpuobj_init(p)
_
nvkm_object_init(&(p)->object)
#define nvkm_gpuobj_fini(p,s)
_
nvkm_object_fini(&(p)->object, (s))
int
nvkm_gpuobj_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
u32
pclass
,
struct
nvkm_object
*
,
u32
size
,
u32
align
,
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
浏览文件 @
aa35888f
...
...
@@ -50,8 +50,8 @@ nv_object(void *obj)
int
nvkm_object_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
u32
,
int
size
,
void
**
);
void
nvkm_object_destroy
(
struct
nvkm_object
*
);
int
nvkm_object_init
(
struct
nvkm_object
*
);
int
nvkm_object_fini
(
struct
nvkm_object
*
,
bool
suspend
);
int
_
nvkm_object_init
(
struct
nvkm_object
*
);
int
_
nvkm_object_fini
(
struct
nvkm_object
*
,
bool
suspend
);
int
_nvkm_object_ctor
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
void
*
,
u32
,
...
...
@@ -112,7 +112,7 @@ nv_ofuncs(void *obj)
return
nv_oclass
(
obj
)
->
ofuncs
;
}
int
nvkm_object_
ctor
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
int
nvkm_object_
old
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
void
*
,
u32
,
struct
nvkm_object
**
);
void
nvkm_object_ref
(
struct
nvkm_object
*
,
struct
nvkm_object
**
);
...
...
drivers/gpu/drm/nouveau/include/nvkm/core/parent.h
浏览文件 @
aa35888f
...
...
@@ -30,9 +30,9 @@ nv_parent(void *obj)
nvkm_parent_create_((p), (e), (c), (v), (s), (m), \
sizeof(**d), (void **)d)
#define nvkm_parent_init(p) \
nvkm_object_init(&(p)->object)
_
nvkm_object_init(&(p)->object)
#define nvkm_parent_fini(p,s) \
nvkm_object_fini(&(p)->object, (s))
_
nvkm_object_fini(&(p)->object, (s))
int
nvkm_parent_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
u32
pclass
,
...
...
@@ -41,8 +41,8 @@ int nvkm_parent_create_(struct nvkm_object *, struct nvkm_object *,
void
nvkm_parent_destroy
(
struct
nvkm_parent
*
);
void
_nvkm_parent_dtor
(
struct
nvkm_object
*
);
#define _nvkm_parent_init nvkm_object_init
#define _nvkm_parent_fini nvkm_object_fini
#define _nvkm_parent_init
_
nvkm_object_init
#define _nvkm_parent_fini
_
nvkm_object_fini
int
nvkm_parent_sclass
(
struct
nvkm_object
*
,
s32
handle
,
struct
nvkm_object
**
pengine
,
...
...
drivers/gpu/drm/nouveau/nvkm/core/gpuobj.c
浏览文件 @
aa35888f
...
...
@@ -223,9 +223,9 @@ nvkm_gpuobj_new(struct nvkm_object *parent, struct nvkm_object *pargpu,
.
flags
=
flags
,
};
return
nvkm_object_
ctor
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
&
_nvkm_gpuobj_oclass
,
&
args
,
sizeof
(
args
),
(
struct
nvkm_object
**
)
pgpuobj
);
return
nvkm_object_
old
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
&
_nvkm_gpuobj_oclass
,
&
args
,
sizeof
(
args
),
(
struct
nvkm_object
**
)
pgpuobj
);
}
int
...
...
@@ -288,8 +288,8 @@ nvkm_gpudup_oclass = {
.
handle
=
NV_GPUOBJ_CLASS
,
.
ofuncs
=
&
(
struct
nvkm_ofuncs
)
{
.
dtor
=
nvkm_gpudup_dtor
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/core/ioctl.c
浏览文件 @
aa35888f
...
...
@@ -137,7 +137,7 @@ nvkm_ioctl_new(struct nvkm_handle *handle, void *data, u32 size)
* between the parent and its children (eg. PGRAPH context)
*/
if
(
engine
&&
nv_engine
(
engine
)
->
cclass
)
{
ret
=
nvkm_object_
ctor
(
&
parent
->
object
,
engine
,
ret
=
nvkm_object_
old
(
&
parent
->
object
,
engine
,
nv_engine
(
engine
)
->
cclass
,
data
,
size
,
&
engctx
);
if
(
ret
)
...
...
@@ -147,7 +147,7 @@ nvkm_ioctl_new(struct nvkm_handle *handle, void *data, u32 size)
}
/* finally, create new object and bind it to its handle */
ret
=
nvkm_object_
ctor
(
engctx
,
engine
,
oclass
,
data
,
size
,
&
object
);
ret
=
nvkm_object_
old
(
engctx
,
engine
,
oclass
,
data
,
size
,
&
object
);
client
->
data
=
object
;
if
(
ret
)
goto
fail_ctor
;
...
...
drivers/gpu/drm/nouveau/nvkm/core/object.c
浏览文件 @
aa35888f
...
...
@@ -136,13 +136,13 @@ nvkm_object_destroy(struct nvkm_object *object)
}
int
nvkm_object_init
(
struct
nvkm_object
*
object
)
_
nvkm_object_init
(
struct
nvkm_object
*
object
)
{
return
0
;
}
int
nvkm_object_fini
(
struct
nvkm_object
*
object
,
bool
suspend
)
_
nvkm_object_fini
(
struct
nvkm_object
*
object
,
bool
suspend
)
{
return
0
;
}
...
...
@@ -151,12 +151,12 @@ struct nvkm_ofuncs
nvkm_object_ofuncs
=
{
.
ctor
=
_nvkm_object_ctor
,
.
dtor
=
nvkm_object_destroy
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
};
int
nvkm_object_
ctor
(
struct
nvkm_object
*
parent
,
struct
nvkm_object
*
engine
,
nvkm_object_
old
(
struct
nvkm_object
*
parent
,
struct
nvkm_object
*
engine
,
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
{
...
...
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
浏览文件 @
aa35888f
...
...
@@ -48,7 +48,7 @@ nvkm_subdev_reset(struct nvkm_object *obj)
int
nvkm_subdev_init
(
struct
nvkm_subdev
*
subdev
)
{
int
ret
=
nvkm_object_init
(
&
subdev
->
object
);
int
ret
=
_
nvkm_object_init
(
&
subdev
->
object
);
if
(
ret
)
return
ret
;
...
...
@@ -72,7 +72,7 @@ nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend)
nvkm_mask
(
device
,
0x000200
,
subdev
->
unit
,
subdev
->
unit
);
}
return
nvkm_object_fini
(
&
subdev
->
object
,
suspend
);
return
_
nvkm_object_fini
(
&
subdev
->
object
,
suspend
);
}
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
浏览文件 @
aa35888f
...
...
@@ -152,7 +152,7 @@ nvkm_device_init(struct nvkm_device *device)
for
(
i
=
0
,
c
=
0
;
i
<
NVDEV_SUBDEV_NR
;
i
++
)
{
#define _(s,m) case s: if (device->oclass[s] && !device->subdev[s]) { \
ret = nvkm_object_
ctor
(nv_object(device), NULL, \
ret = nvkm_object_
old
(nv_object(device), NULL, \
device->oclass[s], NULL, (s), \
(struct nvkm_object **)&device->m); \
if (ret == -ENODEV) { \
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
浏览文件 @
aa35888f
...
...
@@ -185,8 +185,8 @@ static struct nvkm_ofuncs
nvkm_control_ofuncs
=
{
.
ctor
=
_nvkm_object_ctor
,
.
dtor
=
nvkm_object_destroy
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
.
mthd
=
nvkm_control_mthd
,
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv04.c
浏览文件 @
aa35888f
...
...
@@ -106,8 +106,8 @@ static struct nvkm_ofuncs
nv04_disp_ofuncs
=
{
.
ctor
=
_nvkm_object_ctor
,
.
dtor
=
nvkm_object_destroy
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
.
mthd
=
nv04_disp_mthd
,
.
ntfy
=
nvkm_disp_ntfy
,
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/priv.h
浏览文件 @
aa35888f
...
...
@@ -9,8 +9,8 @@ int nvkm_dmaobj_create_(struct nvkm_object *, struct nvkm_object *,
struct
nvkm_oclass
*
,
void
**
,
u32
*
,
int
,
void
**
);
#define _nvkm_dmaobj_dtor nvkm_object_destroy
#define _nvkm_dmaobj_init nvkm_object_init
#define _nvkm_dmaobj_fini nvkm_object_fini
#define _nvkm_dmaobj_init
_
nvkm_object_init
#define _nvkm_dmaobj_fini
_
nvkm_object_fini
int
_nvkm_dmaeng_ctor
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
void
*
,
u32
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
浏览文件 @
aa35888f
...
...
@@ -272,7 +272,7 @@ gk104_fifo_chan_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
.
ofuncs
=
&
nvkm_object_ofuncs
,
};
args
->
v0
.
engine
=
engines
;
return
nvkm_object_
ctor
(
parent
,
engine
,
&
oclass
,
NULL
,
0
,
pobject
);
return
nvkm_object_
old
(
parent
,
engine
,
&
oclass
,
NULL
,
0
,
pobject
);
}
engines
&=
args
->
v0
.
engine
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
浏览文件 @
aa35888f
...
...
@@ -228,8 +228,8 @@ struct nvkm_ofuncs
gf100_fermi_ofuncs
=
{
.
ctor
=
_nvkm_object_ctor
,
.
dtor
=
nvkm_object_destroy
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
.
mthd
=
gf100_fermi_mthd
,
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
浏览文件 @
aa35888f
...
...
@@ -1187,7 +1187,7 @@ nv04_gr_context_fini(struct nvkm_object *object, bool suspend)
nvkm_mask
(
device
,
NV04_PGRAPH_FIFO
,
0x00000001
,
0x00000001
);
spin_unlock_irqrestore
(
&
gr
->
lock
,
flags
);
return
nvkm_object_fini
(
&
chan
->
base
,
suspend
);
return
_
nvkm_object_fini
(
&
chan
->
base
,
suspend
);
}
static
struct
nvkm_oclass
...
...
@@ -1196,7 +1196,7 @@ nv04_gr_cclass = {
.
ofuncs
=
&
(
struct
nvkm_ofuncs
)
{
.
ctor
=
nv04_gr_context_ctor
,
.
dtor
=
nv04_gr_context_dtor
,
.
init
=
nvkm_object_init
,
.
init
=
_
nvkm_object_init
,
.
fini
=
nv04_gr_context_fini
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c
浏览文件 @
aa35888f
...
...
@@ -1111,7 +1111,7 @@ nv10_gr_context_fini(struct nvkm_object *object, bool suspend)
nvkm_mask
(
device
,
NV04_PGRAPH_FIFO
,
0x00000001
,
0x00000001
);
spin_unlock_irqrestore
(
&
gr
->
lock
,
flags
);
return
nvkm_object_fini
(
&
chan
->
base
,
suspend
);
return
_
nvkm_object_fini
(
&
chan
->
base
,
suspend
);
}
static
struct
nvkm_oclass
...
...
@@ -1120,7 +1120,7 @@ nv10_gr_cclass = {
.
ofuncs
=
&
(
struct
nvkm_ofuncs
)
{
.
ctor
=
nv10_gr_context_ctor
,
.
dtor
=
nv10_gr_context_dtor
,
.
init
=
nvkm_object_init
,
.
init
=
_
nvkm_object_init
,
.
fini
=
nv10_gr_context_fini
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
浏览文件 @
aa35888f
...
...
@@ -173,8 +173,8 @@ nv31_mpeg_cclass = {
.
ofuncs
=
&
(
struct
nvkm_ofuncs
)
{
.
ctor
=
nv31_mpeg_context_ctor
,
.
dtor
=
nv31_mpeg_context_dtor
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
},
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
浏览文件 @
aa35888f
...
...
@@ -419,8 +419,8 @@ static struct nvkm_ofuncs
nvkm_perfdom_ofuncs
=
{
.
ctor
=
nvkm_perfdom_ctor
,
.
dtor
=
nvkm_perfdom_dtor
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
.
mthd
=
nvkm_perfdom_mthd
,
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
浏览文件 @
aa35888f
...
...
@@ -94,8 +94,8 @@ nvkm_barobj_oclass = {
.
ofuncs
=
&
(
struct
nvkm_ofuncs
)
{
.
ctor
=
nvkm_barobj_ctor
,
.
dtor
=
nvkm_barobj_dtor
,
.
init
=
nvkm_object_init
,
.
fini
=
nvkm_object_fini
,
.
init
=
_
nvkm_object_init
,
.
fini
=
_
nvkm_object_fini
,
.
rd32
=
nvkm_barobj_rd32
,
.
wr32
=
nvkm_barobj_wr32
,
},
...
...
@@ -106,7 +106,7 @@ nvkm_bar_alloc(struct nvkm_bar *bar, struct nvkm_object *parent,
struct
nvkm_mem
*
mem
,
struct
nvkm_object
**
pobject
)
{
struct
nvkm_object
*
gpuobj
;
int
ret
=
nvkm_object_
ctor
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
int
ret
=
nvkm_object_
old
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
&
nvkm_barobj_oclass
,
mem
,
0
,
&
gpuobj
);
if
(
ret
==
0
)
*
pobject
=
gpuobj
;
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
浏览文件 @
aa35888f
...
...
@@ -72,7 +72,7 @@ nvkm_instmem_alloc(struct nvkm_instmem *imem, struct nvkm_object *parent,
{
struct
nvkm_instmem_impl
*
impl
=
(
void
*
)
imem
->
subdev
.
object
.
oclass
;
struct
nvkm_instobj_args
args
=
{
.
size
=
size
,
.
align
=
align
};
return
nvkm_object_
ctor
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
return
nvkm_object_
old
(
parent
,
&
parent
->
engine
->
subdev
.
object
,
impl
->
instobj
,
&
args
,
sizeof
(
args
),
pobject
);
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/priv.h
浏览文件 @
aa35888f
...
...
@@ -18,15 +18,15 @@ struct nvkm_instobj_args {
_nvkm_instobj_dtor(nv_object(iobj)); \
})
#define nvkm_instobj_init(p) \
nvkm_object_init(&(p)->base)
_
nvkm_object_init(&(p)->base)
#define nvkm_instobj_fini(p,s) \
nvkm_object_fini(&(p)->base, (s))
_
nvkm_object_fini(&(p)->base, (s))
int
nvkm_instobj_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
int
,
void
**
);
void
_nvkm_instobj_dtor
(
struct
nvkm_object
*
);
#define _nvkm_instobj_init nvkm_object_init
#define _nvkm_instobj_fini nvkm_object_fini
#define _nvkm_instobj_init
_
nvkm_object_init
#define _nvkm_instobj_fini
_
nvkm_object_fini
struct
nvkm_instmem_impl
{
struct
nvkm_oclass
base
;
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv41.c
浏览文件 @
aa35888f
...
...
@@ -96,7 +96,7 @@ nv41_mmu_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
if
(
pci_find_capability
(
device
->
pdev
,
PCI_CAP_ID_AGP
)
||
!
nvkm_boolopt
(
device
->
cfgopt
,
"NvPCIE"
,
true
))
{
return
nvkm_object_
ctor
(
parent
,
engine
,
&
nv04_mmu_oclass
,
return
nvkm_object_
old
(
parent
,
engine
,
&
nv04_mmu_oclass
,
data
,
size
,
pobject
);
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv44.c
浏览文件 @
aa35888f
...
...
@@ -169,7 +169,7 @@ nv44_mmu_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
if
(
pci_find_capability
(
device
->
pdev
,
PCI_CAP_ID_AGP
)
||
!
nvkm_boolopt
(
device
->
cfgopt
,
"NvPCIE"
,
true
))
{
return
nvkm_object_
ctor
(
parent
,
engine
,
&
nv04_mmu_oclass
,
return
nvkm_object_
old
(
parent
,
engine
,
&
nv04_mmu_oclass
,
data
,
size
,
pobject
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录