Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
6e764764
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e764764
编写于
6月 24, 2013
作者:
A
Alex Deucher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon: fix endian issues in atombios dpm code
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
e34568b8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_atombios.c
+5
-5
未找到文件。
drivers/gpu/drm/radeon/radeon_atombios.c
浏览文件 @
6e764764
...
...
@@ -3127,7 +3127,7 @@ union voltage_object {
static
ATOM_VOLTAGE_OBJECT
*
atom_lookup_voltage_object_v1
(
ATOM_VOLTAGE_OBJECT_INFO
*
v1
,
u8
voltage_type
)
{
u32
size
=
v1
->
sHeader
.
usStructureSize
;
u32
size
=
le16_to_cpu
(
v1
->
sHeader
.
usStructureSize
)
;
u32
offset
=
offsetof
(
ATOM_VOLTAGE_OBJECT_INFO
,
asVoltageObj
[
0
]);
u8
*
start
=
(
u8
*
)
v1
;
...
...
@@ -3144,7 +3144,7 @@ static ATOM_VOLTAGE_OBJECT *atom_lookup_voltage_object_v1(ATOM_VOLTAGE_OBJECT_IN
static
ATOM_VOLTAGE_OBJECT_V2
*
atom_lookup_voltage_object_v2
(
ATOM_VOLTAGE_OBJECT_INFO_V2
*
v2
,
u8
voltage_type
)
{
u32
size
=
v2
->
sHeader
.
usStructureSize
;
u32
size
=
le16_to_cpu
(
v2
->
sHeader
.
usStructureSize
)
;
u32
offset
=
offsetof
(
ATOM_VOLTAGE_OBJECT_INFO_V2
,
asVoltageObj
[
0
]);
u8
*
start
=
(
u8
*
)
v2
;
...
...
@@ -3161,7 +3161,7 @@ static ATOM_VOLTAGE_OBJECT_V2 *atom_lookup_voltage_object_v2(ATOM_VOLTAGE_OBJECT
static
ATOM_VOLTAGE_OBJECT_V3
*
atom_lookup_voltage_object_v3
(
ATOM_VOLTAGE_OBJECT_INFO_V3_1
*
v3
,
u8
voltage_type
,
u8
voltage_mode
)
{
u32
size
=
v3
->
sHeader
.
usStructureSize
;
u32
size
=
le16_to_cpu
(
v3
->
sHeader
.
usStructureSize
)
;
u32
offset
=
offsetof
(
ATOM_VOLTAGE_OBJECT_INFO_V3_1
,
asVoltageObj
[
0
]);
u8
*
start
=
(
u8
*
)
v3
;
...
...
@@ -3170,7 +3170,7 @@ static ATOM_VOLTAGE_OBJECT_V3 *atom_lookup_voltage_object_v3(ATOM_VOLTAGE_OBJECT
if
((
vo
->
asGpioVoltageObj
.
sHeader
.
ucVoltageType
==
voltage_type
)
&&
(
vo
->
asGpioVoltageObj
.
sHeader
.
ucVoltageMode
==
voltage_mode
))
return
vo
;
offset
+=
vo
->
asGpioVoltageObj
.
sHeader
.
usSize
;
offset
+=
le16_to_cpu
(
vo
->
asGpioVoltageObj
.
sHeader
.
usSize
)
;
}
return
NULL
;
}
...
...
@@ -3708,7 +3708,7 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev,
while
(
!
(
reg_block
->
asRegIndexBuf
[
i
].
ucPreRegDataLength
&
ACCESS_PLACEHOLDER
)
&&
(
i
<
num_entries
))
{
reg_table
->
mc_reg_address
[
i
].
s1
=
(
u16
)(
reg_block
->
asRegIndexBuf
[
i
].
usRegIndex
);
(
u16
)(
le16_to_cpu
(
reg_block
->
asRegIndexBuf
[
i
].
usRegIndex
)
);
reg_table
->
mc_reg_address
[
i
].
pre_reg_data
=
(
u8
)(
reg_block
->
asRegIndexBuf
[
i
].
ucPreRegDataLength
);
i
++
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录