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
c76f4547
Commit
c76f4547
authored
Jun 02, 2004
by
Len Brown
Committed by
Len Brown
Jun 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] fix !CONFIG_PCI build (Bjorn Helgaas)
parent
e7d76343
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
arch/i386/kernel/acpi/boot.c
arch/i386/kernel/acpi/boot.c
+5
-4
include/linux/acpi.h
include/linux/acpi.h
+2
-2
No files found.
arch/i386/kernel/acpi/boot.c
View file @
c76f4547
...
...
@@ -437,23 +437,25 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
return
0
;
}
#ifdef CONFIG_ACPI_PCI
unsigned
int
acpi_register_gsi
(
u32
gsi
,
int
edge_level
,
int
active_high_low
)
{
static
u16
irq_mask
;
unsigned
int
irq
;
extern
void
eisa_set_level_irq
(
unsigned
int
irq
);
#ifdef CONFIG_PCI
/*
* Make sure all (legacy) PCI IRQs are set as level-triggered.
*/
if
(
acpi_irq_model
==
ACPI_IRQ_MODEL_PIC
)
{
static
u16
irq_mask
;
extern
void
eisa_set_level_irq
(
unsigned
int
irq
);
if
((
gsi
<
16
)
&&
!
((
1
<<
gsi
)
&
irq_mask
))
{
Dprintk
(
KERN_DEBUG
PREFIX
"Setting GSI %u as level-triggered
\n
"
,
gsi
);
irq_mask
|=
(
1
<<
gsi
);
eisa_set_level_irq
(
gsi
);
}
}
#endif
#ifdef CONFIG_X86_IO_APIC
if
(
acpi_irq_model
==
ACPI_IRQ_MODEL_IOAPIC
)
{
...
...
@@ -463,7 +465,6 @@ unsigned int acpi_register_gsi(u32 gsi, int edge_level, int active_high_low)
acpi_gsi_to_irq
(
gsi
,
&
irq
);
return
irq
;
}
#endif
/* CONFIG_ACPI_PCI */
static
unsigned
long
__init
acpi_scan_rsdp
(
...
...
include/linux/acpi.h
View file @
c76f4547
...
...
@@ -413,6 +413,8 @@ static inline int acpi_boot_init(void)
#endif
/*!CONFIG_ACPI_BOOT*/
unsigned
int
acpi_register_gsi
(
u32
gsi
,
int
edge_level
,
int
active_high_low
);
int
acpi_gsi_to_irq
(
u32
gsi
,
unsigned
int
*
irq
);
#ifdef CONFIG_ACPI_PCI
...
...
@@ -437,8 +439,6 @@ extern struct acpi_prt_list acpi_prt;
struct
pci_dev
;
int
acpi_pci_irq_enable
(
struct
pci_dev
*
dev
);
unsigned
int
acpi_register_gsi
(
u32
gsi
,
int
edge_level
,
int
active_high_low
);
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