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
c5b0f11b
Commit
c5b0f11b
authored
Nov 21, 2002
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Fix IRQ assignment on Tiger (JI Lee)
parent
cb699d3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
1 deletion
+53
-1
drivers/acpi/events/evrgnini.c
drivers/acpi/events/evrgnini.c
+6
-1
drivers/acpi/include/acpiosxf.h
drivers/acpi/include/acpiosxf.h
+8
-0
drivers/acpi/osl.c
drivers/acpi/osl.c
+39
-0
No files found.
drivers/acpi/events/evrgnini.c
View file @
c5b0f11b
/******************************************************************************
/******************************************************************************
*
*
* Module Name: evrgnini- ACPI Address_space (Op_region) init
* Module Name: evrgnini- ACPI Address_space (Op_region) init
* $Revision: 6
3
$
* $Revision: 6
4
$
*
*
*****************************************************************************/
*****************************************************************************/
...
@@ -269,6 +269,11 @@ acpi_ev_pci_config_region_setup (
...
@@ -269,6 +269,11 @@ acpi_ev_pci_config_region_setup (
pci_id
->
bus
=
ACPI_LOWORD
(
temp
);
pci_id
->
bus
=
ACPI_LOWORD
(
temp
);
}
}
/*
* Complete this device's Pci_id
*/
acpi_os_derive_pci_id
(
node
,
region_obj
->
region
.
node
,
&
pci_id
);
*
region_context
=
pci_id
;
*
region_context
=
pci_id
;
return_ACPI_STATUS
(
AE_OK
);
return_ACPI_STATUS
(
AE_OK
);
}
}
...
...
drivers/acpi/include/acpiosxf.h
View file @
c5b0f11b
...
@@ -246,6 +246,14 @@ acpi_os_write_pci_configuration (
...
@@ -246,6 +246,14 @@ acpi_os_write_pci_configuration (
acpi_integer
value
,
acpi_integer
value
,
u32
width
);
u32
width
);
/*
* Interim function needed for PCI IRQ routing
*/
void
acpi_os_derive_pci_id
(
acpi_handle
rhandle
,
acpi_handle
chandle
,
acpi_pci_id
**
pci_id
);
/*
/*
* Miscellaneous
* Miscellaneous
...
...
drivers/acpi/osl.c
View file @
c5b0f11b
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <asm/io.h>
#include <asm/io.h>
#include "acpi_bus.h"
#include "acpi.h"
#include "acpi.h"
#ifdef CONFIG_ACPI_EFI
#ifdef CONFIG_ACPI_EFI
...
@@ -483,6 +484,44 @@ acpi_os_write_pci_configuration (
...
@@ -483,6 +484,44 @@ acpi_os_write_pci_configuration (
return
(
result
?
AE_ERROR
:
AE_OK
);
return
(
result
?
AE_ERROR
:
AE_OK
);
}
}
/* TODO: Rewrite this code!!! */
void
acpi_os_derive_pci_id
(
acpi_handle
rhandle
,
/* upper bound */
acpi_handle
chandle
,
/* current node */
acpi_pci_id
**
id
)
{
acpi_handle
handle
;
acpi_pci_id
*
pci_id
=
*
id
;
acpi_status
status
;
unsigned
long
temp
;
acpi_object_type
type
;
u8
tu8
;
acpi_get_parent
(
chandle
,
&
handle
);
if
(
handle
!=
rhandle
)
{
acpi_os_derive_pci_id
(
rhandle
,
handle
,
&
pci_id
);
status
=
acpi_get_type
(
handle
,
&
type
);
if
(
(
ACPI_FAILURE
(
status
))
||
(
type
!=
ACPI_TYPE_DEVICE
)
)
return
;
status
=
acpi_evaluate_integer
(
handle
,
METHOD_NAME__ADR
,
NULL
,
&
temp
);
if
(
ACPI_SUCCESS
(
status
))
{
pci_id
->
device
=
ACPI_HIWORD
(
ACPI_LODWORD
(
temp
));
pci_id
->
function
=
ACPI_LOWORD
(
ACPI_LODWORD
(
temp
));
/* any nicer way to get bus number of bridge ? */
status
=
acpi_os_read_pci_configuration
(
pci_id
,
0x0e
,
&
tu8
,
8
);
if
(
ACPI_SUCCESS
(
status
)
&&
(
tu8
&
0x7f
)
==
1
)
{
status
=
acpi_os_read_pci_configuration
(
pci_id
,
0x19
,
&
tu8
,
8
);
if
(
ACPI_SUCCESS
(
status
))
pci_id
->
bus
=
tu8
;
}
}
}
}
#else
/*!CONFIG_ACPI_PCI*/
#else
/*!CONFIG_ACPI_PCI*/
acpi_status
acpi_status
...
...
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