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
53a56431
Commit
53a56431
authored
Feb 17, 2003
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Support translation attribute (Bjorn Helgaas)
parent
f3c365e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
35 deletions
+67
-35
drivers/acpi/resources/rsaddr.c
drivers/acpi/resources/rsaddr.c
+15
-0
drivers/acpi/resources/rsdump.c
drivers/acpi/resources/rsdump.c
+49
-34
include/acpi/actypes.h
include/acpi/actypes.h
+3
-1
No files found.
drivers/acpi/resources/rsaddr.c
View file @
53a56431
...
...
@@ -130,6 +130,8 @@ acpi_rs_address16_resource (
if
(
ACPI_IO_RANGE
==
output_struct
->
data
.
address16
.
resource_type
)
{
output_struct
->
data
.
address16
.
attribute
.
io
.
range_attribute
=
(
u16
)
(
temp8
&
0x03
);
output_struct
->
data
.
address16
.
attribute
.
io
.
translation_attribute
=
(
u16
)
((
temp8
>>
4
)
&
0x03
);
}
else
{
/* BUS_NUMBER_RANGE == Address16.Data->resource_type */
...
...
@@ -328,6 +330,9 @@ acpi_rs_address16_stream (
temp8
=
(
u8
)
(
linked_list
->
data
.
address16
.
attribute
.
io
.
range_attribute
&
0x03
);
temp8
|=
(
linked_list
->
data
.
address16
.
attribute
.
io
.
translation_attribute
&
0x03
)
<<
4
;
}
*
buffer
=
temp8
;
...
...
@@ -516,6 +521,8 @@ acpi_rs_address32_resource (
if
(
ACPI_IO_RANGE
==
output_struct
->
data
.
address32
.
resource_type
)
{
output_struct
->
data
.
address32
.
attribute
.
io
.
range_attribute
=
(
u16
)
(
temp8
&
0x03
);
output_struct
->
data
.
address32
.
attribute
.
io
.
translation_attribute
=
(
u16
)
((
temp8
>>
4
)
&
0x03
);
}
else
{
/* BUS_NUMBER_RANGE == output_struct->Data.Address32.resource_type */
...
...
@@ -712,6 +719,9 @@ acpi_rs_address32_stream (
temp8
=
(
u8
)
(
linked_list
->
data
.
address32
.
attribute
.
io
.
range_attribute
&
0x03
);
temp8
|=
(
linked_list
->
data
.
address32
.
attribute
.
io
.
translation_attribute
&
0x03
)
<<
4
;
}
*
buffer
=
temp8
;
...
...
@@ -899,6 +909,8 @@ acpi_rs_address64_resource (
if
(
ACPI_IO_RANGE
==
output_struct
->
data
.
address64
.
resource_type
)
{
output_struct
->
data
.
address64
.
attribute
.
io
.
range_attribute
=
(
u16
)
(
temp8
&
0x03
);
output_struct
->
data
.
address64
.
attribute
.
io
.
translation_attribute
=
(
u16
)
((
temp8
>>
4
)
&
0x03
);
}
else
{
/* BUS_NUMBER_RANGE == output_struct->Data.Address64.resource_type */
...
...
@@ -1099,6 +1111,9 @@ acpi_rs_address64_stream (
temp8
=
(
u8
)
(
linked_list
->
data
.
address64
.
attribute
.
io
.
range_attribute
&
0x03
);
temp8
|=
(
linked_list
->
data
.
address64
.
attribute
.
io
.
range_attribute
&
0x03
)
<<
4
;
}
*
buffer
=
temp8
;
...
...
drivers/acpi/resources/rsdump.c
View file @
53a56431
...
...
@@ -551,6 +551,11 @@ acpi_rs_dump_address16 (
"Invalid range attribute
\n
"
);
break
;
}
acpi_os_printf
(
" Type Specific: %s Translation
\n
"
,
ACPI_SPARSE_TRANSLATION
==
address16_data
->
attribute
.
io
.
translation_attribute
?
"Sparse"
:
"Dense"
);
break
;
case
ACPI_BUS_NUMBER_RANGE
:
...
...
@@ -673,26 +678,31 @@ acpi_rs_dump_address32 (
acpi_os_printf
(
" Resource Type: Io Range
\n
"
);
switch
(
address32_data
->
attribute
.
io
.
range_attribute
)
{
case
ACPI_NON_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"Non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_NON_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"Non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"ISA Io Addresses
\n
"
);
break
;
case
ACPI_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"ISA Io Addresses
\n
"
);
break
;
case
ACPI_ENTIRE_RANGE
:
acpi_os_printf
(
" Type Specific: "
"ISA and non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_ENTIRE_RANGE
:
acpi_os_printf
(
" Type Specific: "
"ISA and non-ISA Io Addresses
\n
"
);
break
;
default:
acpi_os_printf
(
" Type Specific: "
"Invalid Range attribute"
);
break
;
}
default:
acpi_os_printf
(
" Type Specific: "
"Invalid Range attribute"
);
break
;
}
acpi_os_printf
(
" Type Specific: %s Translation
\n
"
,
ACPI_SPARSE_TRANSLATION
==
address32_data
->
attribute
.
io
.
translation_attribute
?
"Sparse"
:
"Dense"
);
break
;
case
ACPI_BUS_NUMBER_RANGE
:
...
...
@@ -815,26 +825,31 @@ acpi_rs_dump_address64 (
acpi_os_printf
(
" Resource Type: Io Range
\n
"
);
switch
(
address64_data
->
attribute
.
io
.
range_attribute
)
{
case
ACPI_NON_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"Non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_NON_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"Non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"ISA Io Addresses
\n
"
);
break
;
case
ACPI_ISA_ONLY_RANGES
:
acpi_os_printf
(
" Type Specific: "
"ISA Io Addresses
\n
"
);
break
;
case
ACPI_ENTIRE_RANGE
:
acpi_os_printf
(
" Type Specific: "
"ISA and non-ISA Io Addresses
\n
"
);
break
;
case
ACPI_ENTIRE_RANGE
:
acpi_os_printf
(
" Type Specific: "
"ISA and non-ISA Io Addresses
\n
"
);
break
;
default:
acpi_os_printf
(
" Type Specific: "
"Invalid Range attribute"
);
break
;
}
default:
acpi_os_printf
(
" Type Specific: "
"Invalid Range attribute"
);
break
;
}
acpi_os_printf
(
" Type Specific: %s Translation
\n
"
,
ACPI_SPARSE_TRANSLATION
==
address64_data
->
attribute
.
io
.
translation_attribute
?
"Sparse"
:
"Dense"
);
break
;
case
ACPI_BUS_NUMBER_RANGE
:
...
...
include/acpi/actypes.h
View file @
53a56431
...
...
@@ -877,6 +877,8 @@ struct acpi_mem_space_context
#define ACPI_ISA_ONLY_RANGES (u8) 0x02
#define ACPI_ENTIRE_RANGE (ACPI_NON_ISA_ONLY_RANGES | ACPI_ISA_ONLY_RANGES)
#define ACPI_SPARSE_TRANSLATION (u8) 0x03
/*
* IO Port Descriptor Decode
*/
...
...
@@ -1026,7 +1028,7 @@ struct acpi_memory_attribute
struct
acpi_io_attribute
{
u16
range_attribute
;
u16
reserved
;
u16
translation_attribute
;
};
struct
acpi_bus_attribute
...
...
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