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
Kirill Smelkov
linux
Commits
eeda73e0
Commit
eeda73e0
authored
Aug 03, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/src/linux-acpi-test-2.6.7
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
parents
bd26e70d
b34b7911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
drivers/acpi/motherboard.c
drivers/acpi/motherboard.c
+16
-4
No files found.
drivers/acpi/motherboard.c
View file @
eeda73e0
...
...
@@ -17,6 +17,8 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/* Purpose: Prevent PCMCIA cards from using motherboard resources. */
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
...
...
@@ -43,9 +45,17 @@ ACPI_MODULE_NAME ("acpi_motherboard")
(((len) > 0) && ((base) > 0) && ((base) + (len) < IO_SPACE_LIMIT) \
&& ((base) + (len) > PCIBIOS_MIN_IO))
/*
* Clearing the flag (IORESOURCE_BUSY) allows drivers to use
* the io ports if they really know they can use it, while
* still preventing hotplug PCI devices from using it.
*/
static
acpi_status
acpi_reserve_io_ranges
(
struct
acpi_resource
*
res
,
void
*
data
)
{
struct
resource
*
requested_res
=
NULL
;
ACPI_FUNCTION_TRACE
(
"acpi_reserve_io_ranges"
);
if
(
res
->
id
==
ACPI_RSTYPE_IO
)
{
...
...
@@ -57,23 +67,25 @@ acpi_reserve_io_ranges (struct acpi_resource *res, void *data)
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Motherboard resources 0x%08x - 0x%08x
\n
"
,
io_res
->
min_base_address
,
io_res
->
min_base_address
+
io_res
->
range_length
));
request_region
(
io_res
->
min_base_address
,
request
ed_res
=
request
_region
(
io_res
->
min_base_address
,
io_res
->
range_length
,
"motherboard"
);
}
}
else
if
(
res
->
id
==
ACPI_RSTYPE_FIXED_IO
)
{
}
else
if
(
res
->
id
==
ACPI_RSTYPE_FIXED_IO
)
{
struct
acpi_resource_fixed_io
*
fixed_io_res
=
&
res
->
data
.
fixed_io
;
if
(
IS_RESERVED_ADDR
(
fixed_io_res
->
base_address
,
fixed_io_res
->
range_length
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Motherboard resources 0x%08x - 0x%08x
\n
"
,
fixed_io_res
->
base_address
,
fixed_io_res
->
base_address
+
fixed_io_res
->
range_length
));
request_region
(
fixed_io_res
->
base_address
,
request
ed_res
=
request
_region
(
fixed_io_res
->
base_address
,
fixed_io_res
->
range_length
,
"motherboard"
);
}
}
else
{
}
else
{
/* Memory mapped IO? */
}
if
(
requested_res
)
requested_res
->
flags
&=
~
IORESOURCE_BUSY
;
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