Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
60fb7064
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
60fb7064
编写于
11月 18, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/bios/vmap: pointers are 32-bit
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
1957d3d5
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
17 addition
and
17 deletion
+17
-17
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
+4
-4
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
+11
-11
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
+2
-2
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
浏览文件 @
60fb7064
...
...
@@ -6,8 +6,8 @@ struct nvbios_vmap {
u8
max2
;
};
u
16
nvbios_vmap_table
(
struct
nvkm_bios
*
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
);
u
16
nvbios_vmap_parse
(
struct
nvkm_bios
*
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
,
u
32
nvbios_vmap_table
(
struct
nvkm_bios
*
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
);
u
32
nvbios_vmap_parse
(
struct
nvkm_bios
*
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
,
struct
nvbios_vmap
*
);
struct
nvbios_vmap_entry
{
...
...
@@ -18,7 +18,7 @@ struct nvbios_vmap_entry {
s32
arg
[
6
];
};
u
16
nvbios_vmap_entry
(
struct
nvkm_bios
*
,
int
idx
,
u8
*
ver
,
u8
*
len
);
u
16
nvbios_vmap_entry_parse
(
struct
nvkm_bios
*
,
int
idx
,
u8
*
ver
,
u8
*
len
,
u
32
nvbios_vmap_entry
(
struct
nvkm_bios
*
,
int
idx
,
u8
*
ver
,
u8
*
len
);
u
32
nvbios_vmap_entry_parse
(
struct
nvkm_bios
*
,
int
idx
,
u8
*
ver
,
u8
*
len
,
struct
nvbios_vmap_entry
*
);
#endif
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
浏览文件 @
60fb7064
...
...
@@ -25,15 +25,15 @@
#include <subdev/bios/bit.h>
#include <subdev/bios/vmap.h>
u
16
u
32
nvbios_vmap_table
(
struct
nvkm_bios
*
bios
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
)
{
struct
bit_entry
bit_P
;
u
16
vmap
=
0x000
0
;
u
32
vmap
=
0
;
if
(
!
bit_entry
(
bios
,
'P'
,
&
bit_P
))
{
if
(
bit_P
.
version
==
2
)
{
vmap
=
nvbios_rd
16
(
bios
,
bit_P
.
offset
+
0x20
);
vmap
=
nvbios_rd
32
(
bios
,
bit_P
.
offset
+
0x20
);
if
(
vmap
)
{
*
ver
=
nvbios_rd08
(
bios
,
vmap
+
0
);
switch
(
*
ver
)
{
...
...
@@ -50,14 +50,14 @@ nvbios_vmap_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
}
}
return
0
x0000
;
return
0
;
}
u
16
u
32
nvbios_vmap_parse
(
struct
nvkm_bios
*
bios
,
u8
*
ver
,
u8
*
hdr
,
u8
*
cnt
,
u8
*
len
,
struct
nvbios_vmap
*
info
)
{
u
16
vmap
=
nvbios_vmap_table
(
bios
,
ver
,
hdr
,
cnt
,
len
);
u
32
vmap
=
nvbios_vmap_table
(
bios
,
ver
,
hdr
,
cnt
,
len
);
memset
(
info
,
0x00
,
sizeof
(
*
info
));
switch
(
!!
vmap
*
*
ver
)
{
case
0x10
:
...
...
@@ -77,23 +77,23 @@ nvbios_vmap_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
return
vmap
;
}
u
16
u
32
nvbios_vmap_entry
(
struct
nvkm_bios
*
bios
,
int
idx
,
u8
*
ver
,
u8
*
len
)
{
u8
hdr
,
cnt
;
u
16
vmap
=
nvbios_vmap_table
(
bios
,
ver
,
&
hdr
,
&
cnt
,
len
);
u
32
vmap
=
nvbios_vmap_table
(
bios
,
ver
,
&
hdr
,
&
cnt
,
len
);
if
(
vmap
&&
idx
<
cnt
)
{
vmap
=
vmap
+
hdr
+
(
idx
*
*
len
);
return
vmap
;
}
return
0
x0000
;
return
0
;
}
u
16
u
32
nvbios_vmap_entry_parse
(
struct
nvkm_bios
*
bios
,
int
idx
,
u8
*
ver
,
u8
*
len
,
struct
nvbios_vmap_entry
*
info
)
{
u
16
vmap
=
nvbios_vmap_entry
(
bios
,
idx
,
ver
,
len
);
u
32
vmap
=
nvbios_vmap_entry
(
bios
,
idx
,
ver
,
len
);
memset
(
info
,
0x00
,
sizeof
(
*
info
));
switch
(
!!
vmap
*
*
ver
)
{
case
0x10
:
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
浏览文件 @
60fb7064
...
...
@@ -84,7 +84,7 @@ nvkm_volt_map_min(struct nvkm_volt *volt, u8 id)
struct
nvkm_bios
*
bios
=
volt
->
subdev
.
device
->
bios
;
struct
nvbios_vmap_entry
info
;
u8
ver
,
len
;
u
16
vmap
;
u
32
vmap
;
vmap
=
nvbios_vmap_entry_parse
(
bios
,
id
,
&
ver
,
&
len
,
&
info
);
if
(
vmap
)
{
...
...
@@ -106,7 +106,7 @@ nvkm_volt_map(struct nvkm_volt *volt, u8 id, u8 temp)
struct
nvkm_bios
*
bios
=
volt
->
subdev
.
device
->
bios
;
struct
nvbios_vmap_entry
info
;
u8
ver
,
len
;
u
16
vmap
;
u
32
vmap
;
vmap
=
nvbios_vmap_entry_parse
(
bios
,
id
,
&
ver
,
&
len
,
&
info
);
if
(
vmap
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录