Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1fcb71b8
Commit
1fcb71b8
authored
Feb 03, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bay into test branch
parents
e8bdc5a9
0ed1e38d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
527 additions
and
5 deletions
+527
-5
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+7
-0
drivers/acpi/Makefile
drivers/acpi/Makefile
+2
-1
drivers/acpi/bay.c
drivers/acpi/bay.c
+506
-0
drivers/acpi/dock.c
drivers/acpi/dock.c
+12
-4
No files found.
drivers/acpi/Kconfig
View file @
1fcb71b8
...
...
@@ -139,6 +139,13 @@ config ACPI_DOCK
help
This driver adds support for ACPI controlled docking stations
config ACPI_BAY
tristate "Removable Drive Bay (EXPERIMENTAL)"
depends on EXPERIMENTAL
help
This driver adds support for ACPI controlled removable drive
bays such as the IBM ultrabay or the Dell Module Bay.
config ACPI_PROCESSOR
tristate "Processor"
default y
...
...
drivers/acpi/Makefile
View file @
1fcb71b8
...
...
@@ -43,7 +43,8 @@ obj-$(CONFIG_ACPI_BUTTON) += button.o
obj-$(CONFIG_ACPI_EC)
+=
ec.o
obj-$(CONFIG_ACPI_FAN)
+=
fan.o
obj-$(CONFIG_ACPI_DOCK)
+=
dock.o
obj-$(CONFIG_ACPI_VIDEO)
+=
video.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
...
...
drivers/acpi/bay.c
0 → 100644
View file @
1fcb71b8
This diff is collapsed.
Click to expand it.
drivers/acpi/dock.c
View file @
1fcb71b8
...
...
@@ -615,20 +615,28 @@ static acpi_status
find_dock_devices
(
acpi_handle
handle
,
u32
lvl
,
void
*
context
,
void
**
rv
)
{
acpi_status
status
;
acpi_handle
tmp
;
acpi_handle
tmp
,
parent
;
struct
dock_station
*
ds
=
context
;
struct
dock_dependent_device
*
dd
;
status
=
acpi_bus_get_ejd
(
handle
,
&
tmp
);
if
(
ACPI_FAILURE
(
status
))
return
AE_OK
;
if
(
ACPI_FAILURE
(
status
))
{
/* try the parent device as well */
status
=
acpi_get_parent
(
handle
,
&
parent
);
if
(
ACPI_FAILURE
(
status
))
goto
fdd_out
;
/* see if parent is dependent on dock */
status
=
acpi_bus_get_ejd
(
parent
,
&
tmp
);
if
(
ACPI_FAILURE
(
status
))
goto
fdd_out
;
}
if
(
tmp
==
ds
->
handle
)
{
dd
=
alloc_dock_dependent_device
(
handle
);
if
(
dd
)
add_dock_dependent_device
(
ds
,
dd
);
}
fdd_out:
return
AE_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment