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
3fb075a2
Commit
3fb075a2
authored
Dec 01, 2002
by
Art Haas
Committed by
Linus Torvalds
Dec 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializer for arch/parisc/kernel/irq.c
parent
36123580
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
arch/parisc/kernel/irq.c
arch/parisc/kernel/irq.c
+26
-10
No files found.
arch/parisc/kernel/irq.c
View file @
3fb075a2
...
@@ -112,27 +112,43 @@ static inline void unmask_cpu_irq(void *unused, int irq)
...
@@ -112,27 +112,43 @@ static inline void unmask_cpu_irq(void *unused, int irq)
* do_cpu_irq_mask() index into the matching irq_action array.
* do_cpu_irq_mask() index into the matching irq_action array.
*/
*/
struct
irqaction
cpu_irq_actions
[
IRQ_PER_REGION
]
=
{
struct
irqaction
cpu_irq_actions
[
IRQ_PER_REGION
]
=
{
[
IRQ_OFFSET
(
TIMER_IRQ
)]
{
handler
:
timer_interrupt
,
name
:
"timer"
,
},
[
IRQ_OFFSET
(
TIMER_IRQ
)]
=
{
.
handler
=
timer_interrupt
,
.
name
=
"timer"
,
},
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
[
IRQ_OFFSET
(
IPI_IRQ
)]
{
handler
:
ipi_interrupt
,
name
:
"IPI"
,
},
[
IRQ_OFFSET
(
IPI_IRQ
)]
=
{
.
handler
=
ipi_interrupt
,
.
name
=
"IPI"
,
},
#endif
#endif
};
};
struct
irq_region_ops
cpu_irq_ops
=
{
struct
irq_region_ops
cpu_irq_ops
=
{
disable_cpu_irq
,
enable_cpu_irq
,
unmask_cpu_irq
,
unmask_cpu_irq
.
disable_irq
=
disable_cpu_irq
,
.
enable_irq
=
enable_cpu_irq
,
.
mask_irq
=
unmask_cpu_irq
,
.
unmask_irq
=
unmask_cpu_irq
};
};
struct
irq_region
cpu0_irq_region
=
{
struct
irq_region
cpu0_irq_region
=
{
ops:
{
disable_cpu_irq
,
enable_cpu_irq
,
unmask_cpu_irq
,
unmask_cpu_irq
},
.
ops
=
{
data:
{
dev
:
&
cpu_data
[
0
],
.
disable_irq
=
disable_cpu_irq
,
name:
"PARISC-CPU"
,
.
enable_irq
=
enable_cpu_irq
,
irqbase:
IRQ_FROM_REGION
(
CPU_IRQ_REGION
),
},
.
mask_irq
=
unmask_cpu_irq
,
action:
cpu_irq_actions
,
.
unmask_irq
=
unmask_cpu_irq
},
.
data
=
{
.
dev
=
&
cpu_data
[
0
],
.
name
=
"PARISC-CPU"
,
.
irqbase
=
IRQ_FROM_REGION
(
CPU_IRQ_REGION
),
},
.
action
=
cpu_irq_actions
,
};
};
struct
irq_region
*
irq_region
[
NR_IRQ_REGS
]
=
{
struct
irq_region
*
irq_region
[
NR_IRQ_REGS
]
=
{
[
0
]
NULL
,
/* reserved for EISA, else causes data page fault (aka code 15) */
[
0
]
=
NULL
,
/* reserved for EISA, else causes data page fault (aka code 15) */
[
CPU_IRQ_REGION
]
&
cpu0_irq_region
,
[
CPU_IRQ_REGION
]
=
&
cpu0_irq_region
,
};
};
...
...
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