Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d9a799d1
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看板
提交
d9a799d1
编写于
6月 12, 2010
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'acpica-cherry-pick' into release
上级
a48ecc77
b681f7d9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
43 addition
and
1 deletion
+43
-1
drivers/acpi/acpica/acconfig.h
drivers/acpi/acpica/acconfig.h
+4
-0
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/acglobal.h
+8
-0
drivers/acpi/acpica/exsystem.c
drivers/acpi/acpica/exsystem.c
+8
-0
drivers/acpi/acpica/hwvalid.c
drivers/acpi/acpica/hwvalid.c
+12
-0
drivers/acpi/acpica/nsinit.c
drivers/acpi/acpica/nsinit.c
+9
-0
include/acpi/acexcep.h
include/acpi/acexcep.h
+1
-1
include/acpi/acpixf.h
include/acpi/acpixf.h
+1
-0
未找到文件。
drivers/acpi/acpica/acconfig.h
浏览文件 @
d9a799d1
...
...
@@ -119,6 +119,10 @@
#define ACPI_MAX_LOOP_ITERATIONS 0xFFFF
/* Maximum sleep allowed via Sleep() operator */
#define ACPI_MAX_SLEEP 20000
/* Two seconds */
/******************************************************************************
*
* ACPI Specification constants (Do not change unless the specification changes)
...
...
drivers/acpi/acpica/acglobal.h
浏览文件 @
d9a799d1
...
...
@@ -125,6 +125,14 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
*/
u8
ACPI_INIT_GLOBAL
(
acpi_gbl_copy_dsdt_locally
,
FALSE
);
/*
* Optionally truncate I/O addresses to 16 bits. Provides compatibility
* with other ACPI implementations. NOTE: During ACPICA initialization,
* this value is set to TRUE if any Windows OSI strings have been
* requested by the BIOS.
*/
u8
ACPI_INIT_GLOBAL
(
acpi_gbl_truncate_io_addresses
,
FALSE
);
/* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */
struct
acpi_table_fadt
acpi_gbl_FADT
;
...
...
drivers/acpi/acpica/exsystem.c
浏览文件 @
d9a799d1
...
...
@@ -201,6 +201,14 @@ acpi_status acpi_ex_system_do_sleep(u64 how_long)
acpi_ex_relinquish_interpreter
();
/*
* For compatibility with other ACPI implementations and to prevent
* accidental deep sleeps, limit the sleep time to something reasonable.
*/
if
(
how_long
>
ACPI_MAX_SLEEP
)
{
how_long
=
ACPI_MAX_SLEEP
;
}
acpi_os_sleep
(
how_long
);
/* And now we must get the interpreter again */
...
...
drivers/acpi/acpica/hwvalid.c
浏览文件 @
d9a799d1
...
...
@@ -222,6 +222,12 @@ acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width)
u32
one_byte
;
u32
i
;
/* Truncate address to 16 bits if requested */
if
(
acpi_gbl_truncate_io_addresses
)
{
address
&=
ACPI_UINT16_MAX
;
}
/* Validate the entire request and perform the I/O */
status
=
acpi_hw_validate_io_request
(
address
,
width
);
...
...
@@ -279,6 +285,12 @@ acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width)
acpi_status
status
;
u32
i
;
/* Truncate address to 16 bits if requested */
if
(
acpi_gbl_truncate_io_addresses
)
{
address
&=
ACPI_UINT16_MAX
;
}
/* Validate the entire request and perform the I/O */
status
=
acpi_hw_validate_io_request
(
address
,
width
);
...
...
drivers/acpi/acpica/nsinit.c
浏览文件 @
d9a799d1
...
...
@@ -193,6 +193,15 @@ acpi_status acpi_ns_initialize_devices(void)
acpi_ns_init_one_device
,
NULL
,
&
info
,
NULL
);
/*
* Any _OSI requests should be completed by now. If the BIOS has
* requested any Windows OSI strings, we will always truncate
* I/O addresses to 16 bits -- for Windows compatibility.
*/
if
(
acpi_gbl_osi_data
>=
ACPI_OSI_WIN_2000
)
{
acpi_gbl_truncate_io_addresses
=
TRUE
;
}
ACPI_FREE
(
info
.
evaluate_info
);
if
(
ACPI_FAILURE
(
status
))
{
goto
error_exit
;
...
...
include/acpi/acexcep.h
浏览文件 @
d9a799d1
...
...
@@ -212,7 +212,7 @@ char const *acpi_gbl_exception_names_env[] = {
"AE_NO_GLOBAL_LOCK"
,
"AE_ABORT_METHOD"
,
"AE_SAME_HANDLER"
,
"AE_
WAKE_ONLY_GPE
"
,
"AE_
NO_HANDLER
"
,
"AE_OWNER_ID_LIMIT"
};
...
...
include/acpi/acpixf.h
浏览文件 @
d9a799d1
...
...
@@ -69,6 +69,7 @@ extern acpi_name acpi_gbl_trace_method_name;
extern
u32
acpi_gbl_trace_flags
;
extern
u8
acpi_gbl_enable_aml_debug_object
;
extern
u8
acpi_gbl_copy_dsdt_locally
;
extern
u8
acpi_gbl_truncate_io_addresses
;
extern
u32
acpi_current_gpe_count
;
extern
struct
acpi_table_fadt
acpi_gbl_FADT
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录