Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
331dfcf8
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
331dfcf8
编写于
12月 01, 2014
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'acpica' into acpi-pm
上级
75f9c293
c50f13c6
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
82 addition
and
19 deletion
+82
-19
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/acglobal.h
+1
-0
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/aclocal.h
+4
-0
drivers/acpi/acpica/evgpe.c
drivers/acpi/acpica/evgpe.c
+3
-3
drivers/acpi/acpica/hwgpe.c
drivers/acpi/acpica/hwgpe.c
+43
-10
drivers/acpi/acpica/utresrc.c
drivers/acpi/acpica/utresrc.c
+1
-1
drivers/acpi/acpica/utxface.c
drivers/acpi/acpica/utxface.c
+3
-1
drivers/acpi/acpica/utxfinit.c
drivers/acpi/acpica/utxfinit.c
+11
-0
include/acpi/acbuffer.h
include/acpi/acbuffer.h
+11
-3
include/acpi/acpixf.h
include/acpi/acpixf.h
+1
-1
include/acpi/actypes.h
include/acpi/actypes.h
+4
-0
未找到文件。
drivers/acpi/acpica/acglobal.h
浏览文件 @
331dfcf8
...
...
@@ -305,6 +305,7 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_db_output_flags, ACPI_DB_CONSOLE_OUTPUT);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_no_resource_disassembly
,
FALSE
);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_ignore_noop_operator
,
FALSE
);
ACPI_INIT_GLOBAL
(
u8
,
acpi_gbl_cstyle_disassembly
,
TRUE
);
ACPI_GLOBAL
(
u8
,
acpi_gbl_db_opt_disasm
);
ACPI_GLOBAL
(
u8
,
acpi_gbl_db_opt_verbose
);
...
...
drivers/acpi/acpica/aclocal.h
浏览文件 @
331dfcf8
...
...
@@ -454,6 +454,7 @@ struct acpi_gpe_register_info {
u16
base_gpe_number
;
/* Base GPE number for this register */
u8
enable_for_wake
;
/* GPEs to keep enabled when sleeping */
u8
enable_for_run
;
/* GPEs to keep enabled when running */
u8
enable_mask
;
/* Current mask of enabled GPEs */
};
/*
...
...
@@ -722,6 +723,7 @@ union acpi_parse_value {
ACPI_DISASM_ONLY_MEMBERS (\
u8 disasm_flags;
/* Used during AML disassembly */
\
u8 disasm_opcode;
/* Subtype used for disassembly */
\
char *operator_symbol;
/* Used for C-style operator name strings */
\
char aml_op_name[16])
/* Op name (debug only) */
/* Flags for disasm_flags field above */
...
...
@@ -827,6 +829,8 @@ struct acpi_parse_state {
#define ACPI_PARSEOP_EMPTY_TERMLIST 0x04
#define ACPI_PARSEOP_PREDEF_CHECKED 0x08
#define ACPI_PARSEOP_SPECIAL 0x10
#define ACPI_PARSEOP_COMPOUND 0x20
#define ACPI_PARSEOP_ASSIGNMENT 0x40
/*****************************************************************************
*
...
...
drivers/acpi/acpica/evgpe.c
浏览文件 @
331dfcf8
...
...
@@ -134,7 +134,7 @@ acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
/* Enable the requested GPE */
status
=
acpi_hw_low_set_gpe
(
gpe_event_info
,
ACPI_GPE_ENABLE
);
status
=
acpi_hw_low_set_gpe
(
gpe_event_info
,
ACPI_GPE_ENABLE
_SAVE
);
return_ACPI_STATUS
(
status
);
}
...
...
@@ -213,7 +213,7 @@ acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info)
if
(
ACPI_SUCCESS
(
status
))
{
status
=
acpi_hw_low_set_gpe
(
gpe_event_info
,
ACPI_GPE_DISABLE
);
ACPI_GPE_DISABLE
_SAVE
);
}
if
(
ACPI_FAILURE
(
status
))
{
...
...
@@ -655,7 +655,7 @@ acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info * gpe_event_info)
/*
* Enable this GPE, conditionally. This means that the GPE will
* only be physically enabled if the enable_
for_run
bit is set
* only be physically enabled if the enable_
mask
bit is set
* in the event_info.
*/
(
void
)
acpi_hw_low_set_gpe
(
gpe_event_info
,
ACPI_GPE_CONDITIONAL_ENABLE
);
...
...
drivers/acpi/acpica/hwgpe.c
浏览文件 @
331dfcf8
...
...
@@ -115,12 +115,12 @@ acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action)
/* Set or clear just the bit that corresponds to this GPE */
register_bit
=
acpi_hw_get_gpe_register_bit
(
gpe_event_info
);
switch
(
action
)
{
switch
(
action
&
~
ACPI_GPE_SAVE_MASK
)
{
case
ACPI_GPE_CONDITIONAL_ENABLE
:
/* Only enable if the
enable_for_run
bit is set */
/* Only enable if the
corresponding enable_mask
bit is set */
if
(
!
(
register_bit
&
gpe_register_info
->
enable_
for_run
))
{
if
(
!
(
register_bit
&
gpe_register_info
->
enable_
mask
))
{
return
(
AE_BAD_PARAMETER
);
}
...
...
@@ -145,6 +145,9 @@ acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action)
/* Write the updated enable mask */
status
=
acpi_hw_write
(
enable_mask
,
&
gpe_register_info
->
enable_address
);
if
(
ACPI_SUCCESS
(
status
)
&&
(
action
&
ACPI_GPE_SAVE_MASK
))
{
gpe_register_info
->
enable_mask
=
enable_mask
;
}
return
(
status
);
}
...
...
@@ -260,6 +263,32 @@ acpi_hw_get_gpe_status(struct acpi_gpe_event_info * gpe_event_info,
return
(
AE_OK
);
}
/******************************************************************************
*
* FUNCTION: acpi_hw_gpe_enable_write
*
* PARAMETERS: enable_mask - Bit mask to write to the GPE register
* gpe_register_info - Gpe Register info
*
* RETURN: Status
*
* DESCRIPTION: Write the enable mask byte to the given GPE register.
*
******************************************************************************/
static
acpi_status
acpi_hw_gpe_enable_write
(
u8
enable_mask
,
struct
acpi_gpe_register_info
*
gpe_register_info
)
{
acpi_status
status
;
status
=
acpi_hw_write
(
enable_mask
,
&
gpe_register_info
->
enable_address
);
if
(
ACPI_SUCCESS
(
status
))
{
gpe_register_info
->
enable_mask
=
enable_mask
;
}
return
(
status
);
}
/******************************************************************************
*
* FUNCTION: acpi_hw_disable_gpe_block
...
...
@@ -287,8 +316,8 @@ acpi_hw_disable_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
/* Disable all GPEs in this register */
status
=
acpi_hw_write
(
0x00
,
&
gpe_block
->
register_info
[
i
].
enable_address
);
acpi_hw_
gpe_enable_
write
(
0x00
,
&
gpe_block
->
register_info
[
i
]
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
);
}
...
...
@@ -355,21 +384,23 @@ acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
{
u32
i
;
acpi_status
status
;
struct
acpi_gpe_register_info
*
gpe_register_info
;
/* NOTE: assumes that all GPEs are currently disabled */
/* Examine each GPE Register within the block */
for
(
i
=
0
;
i
<
gpe_block
->
register_count
;
i
++
)
{
if
(
!
gpe_block
->
register_info
[
i
].
enable_for_run
)
{
gpe_register_info
=
&
gpe_block
->
register_info
[
i
];
if
(
!
gpe_register_info
->
enable_for_run
)
{
continue
;
}
/* Enable all "runtime" GPEs in this register */
status
=
acpi_hw_
write
(
gpe_block
->
register_info
[
i
].
enable_for_run
,
&
gpe_block
->
register_info
[
i
].
enable_address
);
acpi_hw_
gpe_enable_write
(
gpe_register_info
->
enable_for_run
,
gpe_register_info
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
);
}
...
...
@@ -399,10 +430,12 @@ acpi_hw_enable_wakeup_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
{
u32
i
;
acpi_status
status
;
struct
acpi_gpe_register_info
*
gpe_register_info
;
/* Examine each GPE Register within the block */
for
(
i
=
0
;
i
<
gpe_block
->
register_count
;
i
++
)
{
gpe_register_info
=
&
gpe_block
->
register_info
[
i
];
/*
* Enable all "wake" GPEs in this register and disable the
...
...
@@ -410,8 +443,8 @@ acpi_hw_enable_wakeup_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
*/
status
=
acpi_hw_
write
(
gpe_block
->
register_info
[
i
].
enable_for_wake
,
&
gpe_block
->
register_info
[
i
].
enable_address
);
acpi_hw_
gpe_enable_write
(
gpe_register_info
->
enable_for_wake
,
gpe_register_info
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
);
}
...
...
drivers/acpi/acpica/utresrc.c
浏览文件 @
331dfcf8
...
...
@@ -263,7 +263,7 @@ const char *acpi_gbl_bpb_decode[] = {
/* UART serial bus stop bits */
const
char
*
acpi_gbl_sb_decode
[]
=
{
"StopBits
None
"
,
"StopBits
Zero
"
,
"StopBitsOne"
,
"StopBitsOnePlusHalf"
,
"StopBitsTwo"
...
...
drivers/acpi/acpica/utxface.c
浏览文件 @
331dfcf8
...
...
@@ -531,7 +531,9 @@ acpi_decode_pld_buffer(u8 *in_buffer,
ACPI_MOVE_32_TO_32
(
&
dword
,
&
buffer
[
0
]);
pld_info
->
revision
=
ACPI_PLD_GET_REVISION
(
&
dword
);
pld_info
->
ignore_color
=
ACPI_PLD_GET_IGNORE_COLOR
(
&
dword
);
pld_info
->
color
=
ACPI_PLD_GET_COLOR
(
&
dword
);
pld_info
->
red
=
ACPI_PLD_GET_RED
(
&
dword
);
pld_info
->
green
=
ACPI_PLD_GET_GREEN
(
&
dword
);
pld_info
->
blue
=
ACPI_PLD_GET_BLUE
(
&
dword
);
/* Second 32-bit DWord */
...
...
drivers/acpi/acpica/utxfinit.c
浏览文件 @
331dfcf8
...
...
@@ -53,6 +53,9 @@
#define _COMPONENT ACPI_UTILITIES
ACPI_MODULE_NAME
(
"utxfinit"
)
/* For acpi_exec only */
void
ae_do_object_overrides
(
void
);
/*******************************************************************************
*
* FUNCTION: acpi_initialize_subsystem
...
...
@@ -65,6 +68,7 @@ ACPI_MODULE_NAME("utxfinit")
* called, so any early initialization belongs here.
*
******************************************************************************/
acpi_status
__init
acpi_initialize_subsystem
(
void
)
{
acpi_status
status
;
...
...
@@ -275,6 +279,13 @@ acpi_status __init acpi_initialize_objects(u32 flags)
return_ACPI_STATUS
(
status
);
}
}
#ifdef ACPI_EXEC_APP
/*
* This call implements the "initialization file" option for acpi_exec.
* This is the precise point that we want to perform the overrides.
*/
ae_do_object_overrides
();
#endif
/*
* Execute any module-level code that was detected during the table load
...
...
include/acpi/acbuffer.h
浏览文件 @
331dfcf8
...
...
@@ -111,7 +111,9 @@ struct acpi_gtm_info {
struct
acpi_pld_info
{
u8
revision
;
u8
ignore_color
;
u32
color
;
u8
red
;
u8
green
;
u8
blue
;
u16
width
;
u16
height
;
u8
user_visible
;
...
...
@@ -155,8 +157,14 @@ struct acpi_pld_info {
#define ACPI_PLD_GET_IGNORE_COLOR(dword) ACPI_GET_BITS (dword, 7, ACPI_1BIT_MASK)
#define ACPI_PLD_SET_IGNORE_COLOR(dword,value) ACPI_SET_BITS (dword, 7, ACPI_1BIT_MASK, value)
/* Offset 7, Len 1 */
#define ACPI_PLD_GET_COLOR(dword) ACPI_GET_BITS (dword, 8, ACPI_24BIT_MASK)
#define ACPI_PLD_SET_COLOR(dword,value) ACPI_SET_BITS (dword, 8, ACPI_24BIT_MASK, value)
/* Offset 8, Len 24 */
#define ACPI_PLD_GET_RED(dword) ACPI_GET_BITS (dword, 8, ACPI_8BIT_MASK)
#define ACPI_PLD_SET_RED(dword,value) ACPI_SET_BITS (dword, 8, ACPI_8BIT_MASK, value)
/* Offset 8, Len 8 */
#define ACPI_PLD_GET_GREEN(dword) ACPI_GET_BITS (dword, 16, ACPI_8BIT_MASK)
#define ACPI_PLD_SET_GREEN(dword,value) ACPI_SET_BITS (dword, 16, ACPI_8BIT_MASK, value)
/* Offset 16, Len 8 */
#define ACPI_PLD_GET_BLUE(dword) ACPI_GET_BITS (dword, 24, ACPI_8BIT_MASK)
#define ACPI_PLD_SET_BLUE(dword,value) ACPI_SET_BITS (dword, 24, ACPI_8BIT_MASK, value)
/* Offset 24, Len 8 */
/* Second 32-bit dword, bits 33:63 */
...
...
include/acpi/acpixf.h
浏览文件 @
331dfcf8
...
...
@@ -46,7 +46,7 @@
/* Current ACPICA subsystem version in YYYYMMDD format */
#define ACPI_CA_VERSION 0x2014
0926
#define ACPI_CA_VERSION 0x2014
1107
#include <acpi/acconfig.h>
#include <acpi/actypes.h>
...
...
include/acpi/actypes.h
浏览文件 @
331dfcf8
...
...
@@ -736,6 +736,10 @@ typedef u32 acpi_event_status;
#define ACPI_GPE_ENABLE 0
#define ACPI_GPE_DISABLE 1
#define ACPI_GPE_CONDITIONAL_ENABLE 2
#define ACPI_GPE_SAVE_MASK 4
#define ACPI_GPE_ENABLE_SAVE (ACPI_GPE_ENABLE | ACPI_GPE_SAVE_MASK)
#define ACPI_GPE_DISABLE_SAVE (ACPI_GPE_DISABLE | ACPI_GPE_SAVE_MASK)
/*
* GPE info flags - Per GPE
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录