Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b1a96e36
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
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看板
提交
b1a96e36
编写于
2月 28, 2010
作者:
C
Corentin Chary
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'eeepc-laptop' into acpi4asus
上级
060cbce6
bc9d24a3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
6 deletion
+25
-6
Documentation/ABI/testing/sysfs-platform-eeepc-laptop
Documentation/ABI/testing/sysfs-platform-eeepc-laptop
+5
-5
drivers/platform/x86/eeepc-laptop.c
drivers/platform/x86/eeepc-laptop.c
+20
-1
未找到文件。
Documentation/ABI/testing/sysfs-platform-eeepc-laptop
浏览文件 @
b1a96e36
What: /sys/devices/platform/eeepc
-laptop
/disp
What: /sys/devices/platform/eeepc/disp
Date: May 2008
Date: May 2008
KernelVersion: 2.6.26
KernelVersion: 2.6.26
Contact: "Corentin Chary" <corentincj@iksaif.net>
Contact: "Corentin Chary" <corentincj@iksaif.net>
...
@@ -9,21 +9,21 @@ Description:
...
@@ -9,21 +9,21 @@ Description:
- 3 = LCD+CRT
- 3 = LCD+CRT
If you run X11, you should use xrandr instead.
If you run X11, you should use xrandr instead.
What: /sys/devices/platform/eeepc
-laptop
/camera
What: /sys/devices/platform/eeepc/camera
Date: May 2008
Date: May 2008
KernelVersion: 2.6.26
KernelVersion: 2.6.26
Contact: "Corentin Chary" <corentincj@iksaif.net>
Contact: "Corentin Chary" <corentincj@iksaif.net>
Description:
Description:
Control the camera. 1 means on, 0 means off.
Control the camera. 1 means on, 0 means off.
What: /sys/devices/platform/eeepc
-laptop
/cardr
What: /sys/devices/platform/eeepc/cardr
Date: May 2008
Date: May 2008
KernelVersion: 2.6.26
KernelVersion: 2.6.26
Contact: "Corentin Chary" <corentincj@iksaif.net>
Contact: "Corentin Chary" <corentincj@iksaif.net>
Description:
Description:
Control the card reader. 1 means on, 0 means off.
Control the card reader. 1 means on, 0 means off.
What: /sys/devices/platform/eeepc
-laptop
/cpufv
What: /sys/devices/platform/eeepc/cpufv
Date: Jun 2009
Date: Jun 2009
KernelVersion: 2.6.31
KernelVersion: 2.6.31
Contact: "Corentin Chary" <corentincj@iksaif.net>
Contact: "Corentin Chary" <corentincj@iksaif.net>
...
@@ -42,7 +42,7 @@ Description:
...
@@ -42,7 +42,7 @@ Description:
`------------ Availables modes
`------------ Availables modes
For example, 0x301 means: mode 1 selected, 3 available modes.
For example, 0x301 means: mode 1 selected, 3 available modes.
What: /sys/devices/platform/eeepc
-laptop
/available_cpufv
What: /sys/devices/platform/eeepc/available_cpufv
Date: Jun 2009
Date: Jun 2009
KernelVersion: 2.6.31
KernelVersion: 2.6.31
Contact: "Corentin Chary" <corentincj@iksaif.net>
Contact: "Corentin Chary" <corentincj@iksaif.net>
...
...
drivers/platform/x86/eeepc-laptop.c
浏览文件 @
b1a96e36
...
@@ -578,6 +578,8 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc)
...
@@ -578,6 +578,8 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc)
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
struct
pci_bus
*
bus
;
struct
pci_bus
*
bus
;
bool
blocked
=
eeepc_wlan_rfkill_blocked
(
eeepc
);
bool
blocked
=
eeepc_wlan_rfkill_blocked
(
eeepc
);
bool
absent
;
u32
l
;
if
(
eeepc
->
wlan_rfkill
)
if
(
eeepc
->
wlan_rfkill
)
rfkill_set_sw_state
(
eeepc
->
wlan_rfkill
,
blocked
);
rfkill_set_sw_state
(
eeepc
->
wlan_rfkill
,
blocked
);
...
@@ -591,6 +593,22 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc)
...
@@ -591,6 +593,22 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc)
goto
out_unlock
;
goto
out_unlock
;
}
}
if
(
pci_bus_read_config_dword
(
bus
,
0
,
PCI_VENDOR_ID
,
&
l
))
{
pr_err
(
"Unable to read PCI config space?
\n
"
);
goto
out_unlock
;
}
absent
=
(
l
==
0xffffffff
);
if
(
blocked
!=
absent
)
{
pr_warning
(
"BIOS says wireless lan is %s, "
"but the pci device is %s
\n
"
,
blocked
?
"blocked"
:
"unblocked"
,
absent
?
"absent"
:
"present"
);
pr_warning
(
"skipped wireless hotplug as probably "
"inappropriate for this model
\n
"
);
goto
out_unlock
;
}
if
(
!
blocked
)
{
if
(
!
blocked
)
{
dev
=
pci_get_slot
(
bus
,
0
);
dev
=
pci_get_slot
(
bus
,
0
);
if
(
dev
)
{
if
(
dev
)
{
...
@@ -1277,7 +1295,8 @@ static void eeepc_dmi_check(struct eeepc_laptop *eeepc)
...
@@ -1277,7 +1295,8 @@ static void eeepc_dmi_check(struct eeepc_laptop *eeepc)
* hotplug code. In fact, current hotplug code seems to unplug another
* hotplug code. In fact, current hotplug code seems to unplug another
* device...
* device...
*/
*/
if
(
strcmp
(
model
,
"1005HA"
)
==
0
||
strcmp
(
model
,
"1201N"
)
==
0
)
{
if
(
strcmp
(
model
,
"1005HA"
)
==
0
||
strcmp
(
model
,
"1201N"
)
==
0
||
strcmp
(
model
,
"1005PE"
)
==
0
)
{
eeepc
->
hotplug_disabled
=
true
;
eeepc
->
hotplug_disabled
=
true
;
pr_info
(
"wlan hotplug disabled
\n
"
);
pr_info
(
"wlan hotplug disabled
\n
"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录