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
7ea74153
Commit
7ea74153
authored
May 11, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] create platform_rename_gsi() so ES7000 can munge IRQ numbers
from Natalie Protasevich
parent
482f3334
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
arch/i386/kernel/mpparse.c
arch/i386/kernel/mpparse.c
+4
-4
arch/i386/mach-es7000/es7000.c
arch/i386/mach-es7000/es7000.c
+24
-0
arch/i386/mach-es7000/setup.c
arch/i386/mach-es7000/setup.c
+2
-1
No files found.
arch/i386/kernel/mpparse.c
View file @
7ea74153
...
...
@@ -1029,6 +1029,8 @@ extern FADT_DESCRIPTOR acpi_fadt;
#ifdef CONFIG_ACPI_PCI
int
(
*
platform_rename_gsi
)(
int
ioapic
,
int
gsi
);
void
__init
mp_parse_prt
(
void
)
{
struct
list_head
*
node
=
NULL
;
...
...
@@ -1072,10 +1074,8 @@ void __init mp_parse_prt (void)
continue
;
ioapic_pin
=
gsi
-
mp_ioapic_routing
[
ioapic
].
gsi_base
;
if
(
es7000_plat
)
{
if
(
!
ioapic
&&
(
gsi
<
16
))
gsi
+=
16
;
}
if
(
platform_rename_gsi
)
gsi
=
platform_rename_gsi
(
ioapic
,
gsi
);
/*
* Avoid pin reprogramming. PRTs typically include entries
...
...
arch/i386/mach-es7000/es7000.c
View file @
7ea74153
...
...
@@ -50,6 +50,29 @@ struct mip_reg *mip_reg;
struct
mip_reg
*
host_reg
;
int
mip_port
;
unsigned
long
mip_addr
,
host_addr
;
extern
int
(
*
platform_rename_gsi
)();
static
int
__init
es7000_rename_gsi
(
int
ioapic
,
int
gsi
)
{
if
(
ioapic
)
return
gsi
;
else
{
if
(
gsi
==
0
)
return
13
;
if
(
gsi
==
1
)
return
16
;
if
(
gsi
==
4
)
return
17
;
if
(
gsi
==
6
)
return
18
;
if
(
gsi
==
7
)
return
19
;
if
(
gsi
==
8
)
return
20
;
return
gsi
;
}
}
/*
* Parse the OEM Table
...
...
@@ -115,6 +138,7 @@ parse_unisys_oem (char *oemptr, int oem_entries)
}
else
{
printk
(
"
\n
Enabling ES7000 specific features...
\n
"
);
es7000_plat
=
1
;
platform_rename_gsi
=
es7000_rename_gsi
;
}
return
;
}
...
...
arch/i386/mach-es7000/setup.c
View file @
7ea74153
...
...
@@ -18,7 +18,8 @@
* the "ordinary" interrupt call gates. For legacy reasons, the ISA
* interrupts should be initialised here if the machine emulates a PC
* in any way.
**/
void
__init
pre_intr_init_hook
(
void
)
**/
void
__init
pre_intr_init_hook
(
void
)
{
init_ISA_irqs
();
}
...
...
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