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
32f82c01
Commit
32f82c01
authored
Apr 24, 2004
by
Len Brown
Committed by
Len Brown
Apr 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI irq->gsi naming (Bjorn Helgaas)
parent
fb715e7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
17 deletions
+14
-17
drivers/acpi/osl.c
drivers/acpi/osl.c
+10
-14
include/acpi/acpiosxf.h
include/acpi/acpiosxf.h
+3
-3
include/linux/acpi.h
include/linux/acpi.h
+1
-0
No files found.
drivers/acpi/osl.c
View file @
32f82c01
...
...
@@ -63,7 +63,7 @@ int acpi_in_debugger;
extern
char
line_buf
[
80
];
#endif
/*ENABLE_DEBUGGER*/
static
int
acpi_irq_irq
;
static
unsigned
int
acpi_irq_irq
;
static
OSD_HANDLER
acpi_irq_handler
;
static
void
*
acpi_irq_context
;
...
...
@@ -241,23 +241,22 @@ acpi_irq(int irq, void *dev_id, struct pt_regs *regs)
}
acpi_status
acpi_os_install_interrupt_handler
(
u32
irq
,
OSD_HANDLER
handler
,
void
*
context
)
acpi_os_install_interrupt_handler
(
u32
gsi
,
OSD_HANDLER
handler
,
void
*
context
)
{
unsigned
int
irq
;
/*
* Ignore the
irq
from the core, and use the value in our copy of the
* Ignore the
GSI
from the core, and use the value in our copy of the
* FADT. It may not be the same if an interrupt source override exists
* for the SCI.
*/
irq
=
acpi_fadt
.
sci_int
;
#if defined(CONFIG_IA64) || defined(CONFIG_PCI_USE_VECTOR)
irq
=
acpi_irq_to_vector
(
irq
);
if
(
irq
<
0
)
{
printk
(
KERN_ERR
PREFIX
"SCI (ACPI interrupt %d) not registered
\n
"
,
acpi_fadt
.
sci_int
);
gsi
=
acpi_fadt
.
sci_int
;
if
(
acpi_gsi_to_irq
(
gsi
,
&
irq
)
<
0
)
{
printk
(
KERN_ERR
PREFIX
"SCI (ACPI GSI %d) not registered
\n
"
,
gsi
);
return
AE_OK
;
}
#endif
acpi_irq_handler
=
handler
;
acpi_irq_context
=
context
;
if
(
request_irq
(
irq
,
acpi_irq
,
SA_SHIRQ
,
"acpi"
,
acpi_irq
))
{
...
...
@@ -273,9 +272,6 @@ acpi_status
acpi_os_remove_interrupt_handler
(
u32
irq
,
OSD_HANDLER
handler
)
{
if
(
irq
)
{
#if defined(CONFIG_IA64) || defined(CONFIG_PCI_USE_VECTOR)
irq
=
acpi_irq_to_vector
(
irq
);
#endif
free_irq
(
irq
,
acpi_irq
);
acpi_irq_handler
=
NULL
;
acpi_irq_irq
=
0
;
...
...
include/acpi/acpiosxf.h
View file @
32f82c01
...
...
@@ -188,14 +188,14 @@ acpi_os_get_physical_address (
acpi_status
acpi_os_install_interrupt_handler
(
u32
interrupt_number
,
OSD_HANDLER
service_routine
,
u32
gsi
,
OSD_HANDLER
service_routine
,
void
*
context
);
acpi_status
acpi_os_remove_interrupt_handler
(
u32
interrupt_number
,
OSD_HANDLER
service_routine
);
OSD_HANDLER
service_routine
);
/*
...
...
include/linux/acpi.h
View file @
32f82c01
...
...
@@ -438,6 +438,7 @@ struct pci_dev;
int
acpi_pci_irq_enable
(
struct
pci_dev
*
dev
);
int
acpi_pci_irq_init
(
void
);
int
acpi_gsi_to_irq
(
u32
gsi
,
unsigned
int
*
irq
);
struct
acpi_pci_driver
{
struct
acpi_pci_driver
*
next
;
...
...
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