Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
8800c0eb
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看板
提交
8800c0eb
编写于
17年前
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull remove-hotkey into release branch
上级
9cdd79c9
5ee6edbc
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
0 addition
and
1148 deletion
+0
-1148
Documentation/acpi-hotkey.txt
Documentation/acpi-hotkey.txt
+0
-38
Documentation/feature-removal-schedule.txt
Documentation/feature-removal-schedule.txt
+0
-23
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+0
-9
drivers/acpi/Makefile
drivers/acpi/Makefile
+0
-1
drivers/acpi/asus_acpi.c
drivers/acpi/asus_acpi.c
+0
-4
drivers/acpi/hotkey.c
drivers/acpi/hotkey.c
+0
-1042
drivers/acpi/ibm_acpi.c
drivers/acpi/ibm_acpi.c
+0
-5
drivers/acpi/osl.c
drivers/acpi/osl.c
+0
-11
drivers/acpi/toshiba_acpi.c
drivers/acpi/toshiba_acpi.c
+0
-4
drivers/misc/asus-laptop.c
drivers/misc/asus-laptop.c
+0
-5
include/acpi/acpi_drivers.h
include/acpi/acpi_drivers.h
+0
-6
未找到文件。
Documentation/acpi-hotkey.txt
已删除
100644 → 0
浏览文件 @
9cdd79c9
driver/acpi/hotkey.c implement:
1. /proc/acpi/hotkey/event_config
(event based hotkey or event config interface):
a. add a event based hotkey(event) :
echo "0:bus::action:method:num:num" > event_config
b. delete a event based hotkey(event):
echo "1:::::num:num" > event_config
c. modify a event based hotkey(event):
echo "2:bus::action:method:num:num" > event_config
2. /proc/acpi/hotkey/poll_config
(polling based hotkey or event config interface):
a.add a polling based hotkey(event) :
echo "0:bus:method:action:method:num" > poll_config
this adding command will create a proc file
/proc/acpi/hotkey/method, which is used to get
result of polling.
b.delete a polling based hotkey(event):
echo "1:::::num" > event_config
c.modify a polling based hotkey(event):
echo "2:bus:method:action:method:num" > poll_config
3./proc/acpi/hotkey/action
(interface to call aml method associated with a
specific hotkey(event))
echo "event_num:event_type:event_argument" >
/proc/acpi/hotkey/action.
The result of the execution of this aml method is
attached to /proc/acpi/hotkey/poll_method, which is dynamically
created. Please use command "cat /proc/acpi/hotkey/polling_method"
to retrieve it.
Note: Use cmdline "acpi_generic_hotkey" to over-ride
platform-specific with generic driver.
This diff is collapsed.
Click to expand it.
Documentation/feature-removal-schedule.txt
浏览文件 @
8800c0eb
...
...
@@ -253,29 +253,6 @@ Who: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
---------------------------
<<<<<<< test:Documentation/feature-removal-schedule.txt
What: ACPI hotkey driver (CONFIG_ACPI_HOTKEY)
When: 2.6.21
Why: hotkey.c was an attempt to consolidate multiple drivers that use
ACPI to implement hotkeys. However, hotkeys are not documented
in the ACPI specification, so the drivers used undocumented
vendor-specific hooks and turned out to be more different than
the same.
Further, the keys and the features supplied by each platform
are different, so there will always be a need for
platform-specific drivers.
So the new plan is to delete hotkey.c and instead, work on the
platform specific drivers to try to make them look the same
to the user when they supply the same features.
hotkey.c has always depended on CONFIG_EXPERIMENTAL
Who: Len Brown <len.brown@intel.com>
---------------------------
What: /sys/firmware/acpi/namespace
When: 2.6.21
Why: The ACPI namespace is effectively the symbol list for
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/Kconfig
浏览文件 @
8800c0eb
...
...
@@ -133,15 +133,6 @@ config ACPI_VIDEO
Note that this is an ref. implementation only. It may or may not work
for your integrated video device.
config ACPI_HOTKEY
tristate "Generic Hotkey (EXPERIMENTAL)"
depends on EXPERIMENTAL
depends on X86
default n
help
Experimental consolidated hotkey driver.
If you are unsure, say N.
config ACPI_FAN
tristate "Fan"
default y
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/Makefile
浏览文件 @
8800c0eb
...
...
@@ -46,7 +46,6 @@ obj-$(CONFIG_ACPI_FAN) += fan.o
obj-$(CONFIG_ACPI_DOCK)
+=
dock.o
obj-$(CONFIG_ACPI_BAY)
+=
bay.o
obj-$(CONFIG_ACPI_VIDEO)
+=
video.o
obj-$(CONFIG_ACPI_HOTKEY)
+=
hotkey.o
obj-y
+=
pci_root.o pci_link.o pci_irq.o pci_bind.o
obj-$(CONFIG_ACPI_POWER)
+=
power.o
obj-$(CONFIG_ACPI_PROCESSOR)
+=
processor.o
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/asus_acpi.c
浏览文件 @
8800c0eb
...
...
@@ -1377,10 +1377,6 @@ static int __init asus_acpi_init(void)
if
(
acpi_disabled
)
return
-
ENODEV
;
if
(
!
acpi_specific_hotkey_enabled
)
{
printk
(
KERN_ERR
"Using generic hotkey driver
\n
"
);
return
-
ENODEV
;
}
asus_proc_dir
=
proc_mkdir
(
PROC_ASUS
,
acpi_root_dir
);
if
(
!
asus_proc_dir
)
{
printk
(
KERN_ERR
"Asus ACPI: Unable to create /proc entry
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/hotkey.c
已删除
100644 → 0
浏览文件 @
9cdd79c9
此差异已折叠。
点击以展开。
drivers/acpi/ibm_acpi.c
浏览文件 @
8800c0eb
...
...
@@ -2701,11 +2701,6 @@ static int __init acpi_ibm_init(void)
if
(
acpi_disabled
)
return
-
ENODEV
;
if
(
!
acpi_specific_hotkey_enabled
)
{
printk
(
IBM_ERR
"using generic hotkey driver
\n
"
);
return
-
ENODEV
;
}
/* ec is required because many other handles are relative to it */
IBM_HANDLE_INIT
(
ec
);
if
(
!
ec_handle
)
{
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/osl.c
浏览文件 @
8800c0eb
...
...
@@ -68,9 +68,6 @@ EXPORT_SYMBOL(acpi_in_debugger);
extern
char
line_buf
[
80
];
#endif
/*ENABLE_DEBUGGER */
int
acpi_specific_hotkey_enabled
=
TRUE
;
EXPORT_SYMBOL
(
acpi_specific_hotkey_enabled
);
static
unsigned
int
acpi_irq_irq
;
static
acpi_osd_handler
acpi_irq_handler
;
static
void
*
acpi_irq_context
;
...
...
@@ -992,14 +989,6 @@ static int __init acpi_wake_gpes_always_on_setup(char *str)
__setup
(
"acpi_wake_gpes_always_on"
,
acpi_wake_gpes_always_on_setup
);
static
int
__init
acpi_hotkey_setup
(
char
*
str
)
{
acpi_specific_hotkey_enabled
=
FALSE
;
return
1
;
}
__setup
(
"acpi_generic_hotkey"
,
acpi_hotkey_setup
);
/*
* max_cstate is defined in the base kernel so modules can
* change it w/o depending on the state of the processor module.
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/toshiba_acpi.c
浏览文件 @
8800c0eb
...
...
@@ -561,10 +561,6 @@ static int __init toshiba_acpi_init(void)
if
(
acpi_disabled
)
return
-
ENODEV
;
if
(
!
acpi_specific_hotkey_enabled
)
{
printk
(
MY_INFO
"Using generic hotkey driver
\n
"
);
return
-
ENODEV
;
}
/* simple device detection: look for HCI method */
if
(
is_valid_acpi_path
(
METHOD_HCI_1
))
method_hci
=
METHOD_HCI_1
;
...
...
This diff is collapsed.
Click to expand it.
drivers/misc/asus-laptop.c
浏览文件 @
8800c0eb
...
...
@@ -1088,11 +1088,6 @@ static int __init asus_laptop_init(void)
if
(
acpi_disabled
)
return
-
ENODEV
;
if
(
!
acpi_specific_hotkey_enabled
)
{
printk
(
ASUS_ERR
"Using generic hotkey driver
\n
"
);
return
-
ENODEV
;
}
result
=
acpi_bus_register_driver
(
&
asus_hotk_driver
);
if
(
result
<
0
)
return
result
;
...
...
This diff is collapsed.
Click to expand it.
include/acpi/acpi_drivers.h
浏览文件 @
8800c0eb
...
...
@@ -105,12 +105,6 @@ int acpi_ec_ecdt_probe(void);
int
acpi_processor_set_thermal_limit
(
acpi_handle
handle
,
int
type
);
/* --------------------------------------------------------------------------
Hot Keys
-------------------------------------------------------------------------- */
extern
int
acpi_specific_hotkey_enabled
;
/*--------------------------------------------------------------------------
Dock Station
-------------------------------------------------------------------------- */
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录