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
4a4b6d89
Commit
4a4b6d89
authored
Jan 05, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: adapt platform code to changes in i8259 PIC code
parent
b327e1b3
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
43 deletions
+6
-43
arch/ppc/platforms/adir_pic.c
arch/ppc/platforms/adir_pic.c
+2
-2
arch/ppc/platforms/adir_setup.c
arch/ppc/platforms/adir_setup.c
+0
-2
arch/ppc/platforms/k2_setup.c
arch/ppc/platforms/k2_setup.c
+1
-7
arch/ppc/platforms/menf1_setup.c
arch/ppc/platforms/menf1_setup.c
+1
-6
arch/ppc/platforms/powerpmc250.c
arch/ppc/platforms/powerpmc250.c
+0
-6
arch/ppc/platforms/pplus_setup.c
arch/ppc/platforms/pplus_setup.c
+1
-7
arch/ppc/platforms/prpmc750_setup.c
arch/ppc/platforms/prpmc750_setup.c
+0
-6
arch/ppc/platforms/prpmc800_setup.c
arch/ppc/platforms/prpmc800_setup.c
+0
-6
arch/ppc/platforms/sandpoint_setup.c
arch/ppc/platforms/sandpoint_setup.c
+1
-1
No files found.
arch/ppc/platforms/adir_pic.c
View file @
4a4b6d89
...
@@ -118,7 +118,7 @@ adir_init_IRQ(void)
...
@@ -118,7 +118,7 @@ adir_init_IRQ(void)
}
}
int
int
adir_get_irq
(
void
)
adir_get_irq
(
struct
pt_regs
*
regs
)
{
{
int
irq
;
int
irq
;
...
@@ -126,7 +126,7 @@ adir_get_irq(void)
...
@@ -126,7 +126,7 @@ adir_get_irq(void)
return
irq
;
return
irq
;
if
(
irq
==
ADIR_IRQ_VT82C686_INTR
)
if
(
irq
==
ADIR_IRQ_VT82C686_INTR
)
irq
=
i8259_
poll
(
);
irq
=
i8259_
irq
(
regs
);
return
irq
;
return
irq
;
}
}
arch/ppc/platforms/adir_setup.c
View file @
4a4b6d89
...
@@ -158,8 +158,6 @@ adir_halt(void)
...
@@ -158,8 +158,6 @@ adir_halt(void)
adir_restart
(
NULL
);
adir_restart
(
NULL
);
}
}
extern
unsigned
int
boot_mem_size
;
static
unsigned
long
__init
static
unsigned
long
__init
adir_find_end_of_memory
(
void
)
adir_find_end_of_memory
(
void
)
{
{
...
...
arch/ppc/platforms/k2_setup.c
View file @
4a4b6d89
...
@@ -320,12 +320,6 @@ k2_init_irq(void)
...
@@ -320,12 +320,6 @@ k2_init_irq(void)
i8259_init
(
NULL
);
i8259_init
(
NULL
);
}
}
static
int
k2_get_irq
(
struct
pt_regs
*
regs
)
{
return
i8259_poll
();
}
void
__init
platform_init
(
unsigned
long
r3
,
unsigned
long
r4
,
void
__init
platform_init
(
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
unsigned
long
r7
)
unsigned
long
r5
,
unsigned
long
r6
,
unsigned
long
r7
)
{
{
...
@@ -338,7 +332,7 @@ void __init platform_init(unsigned long r3, unsigned long r4,
...
@@ -338,7 +332,7 @@ void __init platform_init(unsigned long r3, unsigned long r4,
ppc_md
.
setup_arch
=
k2_setup_arch
;
ppc_md
.
setup_arch
=
k2_setup_arch
;
ppc_md
.
show_cpuinfo
=
k2_show_cpuinfo
;
ppc_md
.
show_cpuinfo
=
k2_show_cpuinfo
;
ppc_md
.
init_IRQ
=
k2_init_irq
;
ppc_md
.
init_IRQ
=
k2_init_irq
;
ppc_md
.
get_irq
=
k2_get
_irq
;
ppc_md
.
get_irq
=
i8259
_irq
;
ppc_md
.
find_end_of_memory
=
k2_find_end_of_memory
;
ppc_md
.
find_end_of_memory
=
k2_find_end_of_memory
;
ppc_md
.
setup_io_mappings
=
k2_map_io
;
ppc_md
.
setup_io_mappings
=
k2_map_io
;
...
...
arch/ppc/platforms/menf1_setup.c
View file @
4a4b6d89
...
@@ -150,11 +150,6 @@ menf1_init_IRQ(void)
...
@@ -150,11 +150,6 @@ menf1_init_IRQ(void)
i8259_init
(
NULL
);
i8259_init
(
NULL
);
}
}
static
int
menf1_get_irq
(
struct
pt_regs
*
regs
)
{
return
i8259_poll
();
}
/*
/*
* Set BAT 3 to map 0xF0000000.
* Set BAT 3 to map 0xF0000000.
*/
*/
...
@@ -259,7 +254,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
...
@@ -259,7 +254,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md
.
setup_arch
=
menf1_setup_arch
;
ppc_md
.
setup_arch
=
menf1_setup_arch
;
ppc_md
.
show_cpuinfo
=
menf1_show_cpuinfo
;
ppc_md
.
show_cpuinfo
=
menf1_show_cpuinfo
;
ppc_md
.
init_IRQ
=
menf1_init_IRQ
;
ppc_md
.
init_IRQ
=
menf1_init_IRQ
;
ppc_md
.
get_irq
=
menf1_get
_irq
;
ppc_md
.
get_irq
=
i8259
_irq
;
ppc_md
.
find_end_of_memory
=
menf1_find_end_of_memory
;
ppc_md
.
find_end_of_memory
=
menf1_find_end_of_memory
;
ppc_md
.
setup_io_mappings
=
menf1_map_io
;
ppc_md
.
setup_io_mappings
=
menf1_map_io
;
...
...
arch/ppc/platforms/powerpmc250.c
View file @
4a4b6d89
...
@@ -193,12 +193,6 @@ powerpmc250_power_off(void)
...
@@ -193,12 +193,6 @@ powerpmc250_power_off(void)
powerpmc250_halt
();
powerpmc250_halt
();
}
}
/* Resolves the open_pic.c build without including i8259.c */
int
i8259_poll
(
void
)
{
return
0
;
}
static
void
__init
static
void
__init
powerpmc250_init_IRQ
(
void
)
powerpmc250_init_IRQ
(
void
)
{
{
...
...
arch/ppc/platforms/pplus_setup.c
View file @
4a4b6d89
...
@@ -224,12 +224,6 @@ pplus_irq_cannonicalize(u_int irq)
...
@@ -224,12 +224,6 @@ pplus_irq_cannonicalize(u_int irq)
}
}
}
}
static
int
pplus_get_irq
(
struct
pt_regs
*
regs
)
{
return
i8259_poll
();
}
static
void
__init
static
void
__init
pplus_init_IRQ
(
void
)
pplus_init_IRQ
(
void
)
{
{
...
@@ -484,7 +478,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
...
@@ -484,7 +478,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md
.
irq_cannonicalize
=
pplus_irq_cannonicalize
;
ppc_md
.
irq_cannonicalize
=
pplus_irq_cannonicalize
;
ppc_md
.
init_IRQ
=
pplus_init_IRQ
;
ppc_md
.
init_IRQ
=
pplus_init_IRQ
;
/* this gets changed later on if we have an OpenPIC -- Cort */
/* this gets changed later on if we have an OpenPIC -- Cort */
ppc_md
.
get_irq
=
pplus_get
_irq
;
ppc_md
.
get_irq
=
i8259
_irq
;
ppc_md
.
init
=
pplus_init2
;
ppc_md
.
init
=
pplus_init2
;
ppc_md
.
restart
=
pplus_restart
;
ppc_md
.
restart
=
pplus_restart
;
...
...
arch/ppc/platforms/prpmc750_setup.c
View file @
4a4b6d89
...
@@ -202,12 +202,6 @@ prpmc750_power_off(void)
...
@@ -202,12 +202,6 @@ prpmc750_power_off(void)
prpmc750_halt
();
prpmc750_halt
();
}
}
/* Resolves the open_pic.c build without including i8259.c */
int
i8259_poll
(
void
)
{
return
0
;
}
static
void
__init
static
void
__init
prpmc750_init_IRQ
(
void
)
prpmc750_init_IRQ
(
void
)
{
{
...
...
arch/ppc/platforms/prpmc800_setup.c
View file @
4a4b6d89
...
@@ -196,12 +196,6 @@ prpmc800_power_off(void)
...
@@ -196,12 +196,6 @@ prpmc800_power_off(void)
prpmc800_halt
();
prpmc800_halt
();
}
}
/* Resolves the open_pic.c build without including i8259.c */
int
i8259_poll
()
{
return
0
;
}
static
void
__init
static
void
__init
prpmc800_init_IRQ
(
void
)
prpmc800_init_IRQ
(
void
)
{
{
...
...
arch/ppc/platforms/sandpoint_setup.c
View file @
4a4b6d89
...
@@ -336,7 +336,7 @@ sandpoint_get_irq(struct pt_regs *regs)
...
@@ -336,7 +336,7 @@ sandpoint_get_irq(struct pt_regs *regs)
irq
=
openpic_irq
();
irq
=
openpic_irq
();
if
(
irq
==
SANDPOINT_SIO_IRQ
)
{
if
(
irq
==
SANDPOINT_SIO_IRQ
)
{
cascade_irq
=
i8259_
poll
(
);
cascade_irq
=
i8259_
irq
(
regs
);
if
(
cascade_irq
!=
-
1
)
{
if
(
cascade_irq
!=
-
1
)
{
irq
=
cascade_irq
;
irq
=
cascade_irq
;
...
...
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