Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
fb445b3c
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看板
提交
fb445b3c
编写于
11月 07, 2012
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/core: allow representing method ranges in nouveau_omthds
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
cbe7270d
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
116 addition
and
115 deletion
+116
-115
drivers/gpu/drm/nouveau/core/engine/graph/nv04.c
drivers/gpu/drm/nouveau/core/engine/graph/nv04.c
+92
-92
drivers/gpu/drm/nouveau/core/engine/graph/nv10.c
drivers/gpu/drm/nouveau/core/engine/graph/nv10.c
+5
-5
drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
+3
-3
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
+2
-2
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
+1
-1
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
+5
-5
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
+5
-5
drivers/gpu/drm/nouveau/core/include/core/object.h
drivers/gpu/drm/nouveau/core/include/core/object.h
+3
-2
未找到文件。
drivers/gpu/drm/nouveau/core/engine/graph/nv04.c
浏览文件 @
fb445b3c
...
@@ -787,168 +787,168 @@ nv01_graph_mthd_bind_chroma(struct nouveau_object *object, u32 mthd,
...
@@ -787,168 +787,168 @@ nv01_graph_mthd_bind_chroma(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv03_graph_gdi_omthds
[]
=
{
nv03_graph_gdi_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_patt
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_patt
},
{
0x0188
,
nv04_graph_mthd_bind_rop
},
{
0x0188
,
0x0188
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
nv04_graph_mthd_bind_beta1
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_surf_dst
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_gdi_omthds
[]
=
{
nv04_graph_gdi_omthds
[]
=
{
{
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv01_graph_blit_omthds
[]
=
{
nv01_graph_blit_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
nv01_graph_mthd_bind_patt
},
{
0x018c
,
0x018c
,
nv01_graph_mthd_bind_patt
},
{
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0198
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf_dst
},
{
0x019c
,
nv04_graph_mthd_bind_surf_src
},
{
0x019c
,
0x019c
,
nv04_graph_mthd_bind_surf_src
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_blit_omthds
[]
=
{
nv04_graph_blit_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_patt
},
{
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0198
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_beta4
},
{
0x019c
,
nv04_graph_mthd_bind_surf2d
},
{
0x019c
,
0x019c
,
nv04_graph_mthd_bind_surf2d
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_iifc_omthds
[]
=
{
nv04_graph_iifc_omthds
[]
=
{
{
0x0188
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_chroma
},
{
0x018c
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
0x018c
,
nv01_graph_mthd_bind_clip
},
{
0x0190
,
nv04_graph_mthd_bind_patt
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_patt
},
{
0x0194
,
nv04_graph_mthd_bind_rop
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_rop
},
{
0x0198
,
nv04_graph_mthd_bind_beta1
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_beta1
},
{
0x019c
,
nv04_graph_mthd_bind_beta4
},
{
0x019c
,
0x019c
,
nv04_graph_mthd_bind_beta4
},
{
0x01a0
,
nv04_graph_mthd_bind_surf2d_swzsurf
},
{
0x01a0
,
0x01a0
,
nv04_graph_mthd_bind_surf2d_swzsurf
},
{
0x03e4
,
nv04_graph_mthd_set_operation
},
{
0x03e4
,
0x03e4
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv01_graph_ifc_omthds
[]
=
{
nv01_graph_ifc_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
nv01_graph_mthd_bind_patt
},
{
0x018c
,
0x018c
,
nv01_graph_mthd_bind_patt
},
{
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0198
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf_dst
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_ifc_omthds
[]
=
{
nv04_graph_ifc_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_patt
},
{
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_rop
},
{
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta1
},
{
0x0198
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_beta4
},
{
0x019c
,
nv04_graph_mthd_bind_surf2d
},
{
0x019c
,
0x019c
,
nv04_graph_mthd_bind_surf2d
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv03_graph_sifc_omthds
[]
=
{
nv03_graph_sifc_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_sifc_omthds
[]
=
{
nv04_graph_sifc_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_chroma
},
{
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv03_graph_sifm_omthds
[]
=
{
nv03_graph_sifm_omthds
[]
=
{
{
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0304
,
nv04_graph_mthd_set_operation
},
{
0x0304
,
0x0304
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_sifm_omthds
[]
=
{
nv04_graph_sifm_omthds
[]
=
{
{
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x0304
,
nv04_graph_mthd_set_operation
},
{
0x0304
,
0x0304
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_surf3d_omthds
[]
=
{
nv04_graph_surf3d_omthds
[]
=
{
{
0x02f8
,
nv04_graph_mthd_surf3d_clip_h
},
{
0x02f8
,
0x02f8
,
nv04_graph_mthd_surf3d_clip_h
},
{
0x02fc
,
nv04_graph_mthd_surf3d_clip_v
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_surf3d_clip_v
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv03_graph_ttri_omthds
[]
=
{
nv03_graph_ttri_omthds
[]
=
{
{
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_clip
},
{
0x018c
,
nv04_graph_mthd_bind_surf_color
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_surf_color
},
{
0x0190
,
nv04_graph_mthd_bind_surf_zeta
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_surf_zeta
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv01_graph_prim_omthds
[]
=
{
nv01_graph_prim_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_clip
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv01_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_surf_dst
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_graph_prim_omthds
[]
=
{
nv04_graph_prim_omthds
[]
=
{
{
0x0184
,
nv01_graph_mthd_bind_clip
},
{
0x0184
,
0x0184
,
nv01_graph_mthd_bind_clip
},
{
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x0188
,
0x0188
,
nv04_graph_mthd_bind_patt
},
{
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x018c
,
0x018c
,
nv04_graph_mthd_bind_rop
},
{
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0190
,
0x0190
,
nv04_graph_mthd_bind_beta1
},
{
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0194
,
0x0194
,
nv04_graph_mthd_bind_beta4
},
{
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x0198
,
0x0198
,
nv04_graph_mthd_bind_surf2d
},
{
0x02fc
,
nv04_graph_mthd_set_operation
},
{
0x02fc
,
0x02fc
,
nv04_graph_mthd_set_operation
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nv10.c
浏览文件 @
fb445b3c
...
@@ -570,11 +570,11 @@ nv17_graph_mthd_lma_enable(struct nouveau_object *object, u32 mthd,
...
@@ -570,11 +570,11 @@ nv17_graph_mthd_lma_enable(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv17_celcius_omthds
[]
=
{
nv17_celcius_omthds
[]
=
{
{
0x1638
,
nv17_graph_mthd_lma_window
},
{
0x1638
,
0x1638
,
nv17_graph_mthd_lma_window
},
{
0x163c
,
nv17_graph_mthd_lma_window
},
{
0x163c
,
0x163c
,
nv17_graph_mthd_lma_window
},
{
0x1640
,
nv17_graph_mthd_lma_window
},
{
0x1640
,
0x1640
,
nv17_graph_mthd_lma_window
},
{
0x1644
,
nv17_graph_mthd_lma_window
},
{
0x1644
,
0x1644
,
nv17_graph_mthd_lma_window
},
{
0x1658
,
nv17_graph_mthd_lma_enable
},
{
0x1658
,
0x1658
,
nv17_graph_mthd_lma_enable
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c
浏览文件 @
fb445b3c
...
@@ -121,9 +121,9 @@ nv31_mpeg_ofuncs = {
...
@@ -121,9 +121,9 @@ nv31_mpeg_ofuncs = {
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv31_mpeg_omthds
[]
=
{
nv31_mpeg_omthds
[]
=
{
{
0x0190
,
nv31_mpeg_mthd_dma
},
{
0x0190
,
0x0190
,
nv31_mpeg_mthd_dma
},
{
0x01a0
,
nv31_mpeg_mthd_dma
},
{
0x01a0
,
0x01a0
,
nv31_mpeg_mthd_dma
},
{
0x01b0
,
nv31_mpeg_mthd_dma
},
{
0x01b0
,
0x01b0
,
nv31_mpeg_mthd_dma
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
浏览文件 @
fb445b3c
...
@@ -63,8 +63,8 @@ nv04_software_flip(struct nouveau_object *object, u32 mthd,
...
@@ -63,8 +63,8 @@ nv04_software_flip(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv04_software_omthds
[]
=
{
nv04_software_omthds
[]
=
{
{
0x0150
,
nv04_software_set_ref
},
{
0x0150
,
0x0150
,
nv04_software_set_ref
},
{
0x0500
,
nv04_software_flip
},
{
0x0500
,
0x0500
,
nv04_software_flip
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
浏览文件 @
fb445b3c
...
@@ -52,7 +52,7 @@ nv10_software_flip(struct nouveau_object *object, u32 mthd,
...
@@ -52,7 +52,7 @@ nv10_software_flip(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv10_software_omthds
[]
=
{
nv10_software_omthds
[]
=
{
{
0x0500
,
nv10_software_flip
},
{
0x0500
,
0x0500
,
nv10_software_flip
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
浏览文件 @
fb445b3c
...
@@ -117,11 +117,11 @@ nv50_software_mthd_flip(struct nouveau_object *object, u32 mthd,
...
@@ -117,11 +117,11 @@ nv50_software_mthd_flip(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nv50_software_omthds
[]
=
{
nv50_software_omthds
[]
=
{
{
0x018c
,
nv50_software_mthd_dma_vblsem
},
{
0x018c
,
0x018c
,
nv50_software_mthd_dma_vblsem
},
{
0x0400
,
nv50_software_mthd_vblsem_offset
},
{
0x0400
,
0x0400
,
nv50_software_mthd_vblsem_offset
},
{
0x0404
,
nv50_software_mthd_vblsem_value
},
{
0x0404
,
0x0404
,
nv50_software_mthd_vblsem_value
},
{
0x0408
,
nv50_software_mthd_vblsem_release
},
{
0x0408
,
0x0408
,
nv50_software_mthd_vblsem_release
},
{
0x0500
,
nv50_software_mthd_flip
},
{
0x0500
,
0x0500
,
nv50_software_mthd_flip
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
浏览文件 @
fb445b3c
...
@@ -99,11 +99,11 @@ nvc0_software_mthd_flip(struct nouveau_object *object, u32 mthd,
...
@@ -99,11 +99,11 @@ nvc0_software_mthd_flip(struct nouveau_object *object, u32 mthd,
static
struct
nouveau_omthds
static
struct
nouveau_omthds
nvc0_software_omthds
[]
=
{
nvc0_software_omthds
[]
=
{
{
0x0400
,
nvc0_software_mthd_vblsem_offset
},
{
0x0400
,
0x0400
,
nvc0_software_mthd_vblsem_offset
},
{
0x0404
,
nvc0_software_mthd_vblsem_offset
},
{
0x0404
,
0x0404
,
nvc0_software_mthd_vblsem_offset
},
{
0x0408
,
nvc0_software_mthd_vblsem_value
},
{
0x0408
,
0x0408
,
nvc0_software_mthd_vblsem_value
},
{
0x040c
,
nvc0_software_mthd_vblsem_release
},
{
0x040c
,
0x040c
,
nvc0_software_mthd_vblsem_release
},
{
0x0500
,
nvc0_software_mthd_flip
},
{
0x0500
,
0x0500
,
nvc0_software_mthd_flip
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/core/include/core/object.h
浏览文件 @
fb445b3c
...
@@ -70,7 +70,8 @@ nv_pclass(struct nouveau_object *parent, u32 oclass)
...
@@ -70,7 +70,8 @@ nv_pclass(struct nouveau_object *parent, u32 oclass)
}
}
struct
nouveau_omthds
{
struct
nouveau_omthds
{
u32
method
;
u32
start
;
u32
limit
;
int
(
*
call
)(
struct
nouveau_object
*
,
u32
,
void
*
,
u32
);
int
(
*
call
)(
struct
nouveau_object
*
,
u32
,
void
*
,
u32
);
};
};
...
@@ -114,7 +115,7 @@ nv_exec(void *obj, u32 mthd, void *data, u32 size)
...
@@ -114,7 +115,7 @@ nv_exec(void *obj, u32 mthd, void *data, u32 size)
struct
nouveau_omthds
*
method
=
nv_oclass
(
obj
)
->
omthds
;
struct
nouveau_omthds
*
method
=
nv_oclass
(
obj
)
->
omthds
;
while
(
method
&&
method
->
call
)
{
while
(
method
&&
method
->
call
)
{
if
(
m
ethod
->
method
==
mthd
)
if
(
m
thd
>=
method
->
start
&&
mthd
<=
method
->
limit
)
return
method
->
call
(
obj
,
mthd
,
data
,
size
);
return
method
->
call
(
obj
,
mthd
,
data
,
size
);
method
++
;
method
++
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录