Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
4f8d7541
Commit
4f8d7541
authored
14 years ago
by
Lennert Buytenhek
Browse files
Options
Download
Email Patches
Plain Diff
ARM: netx: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
e981a302
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
arch/arm/mach-netx/generic.c
arch/arm/mach-netx/generic.c
+15
-15
No files found.
arch/arm/mach-netx/generic.c
View file @
4f8d7541
...
...
@@ -88,13 +88,13 @@ netx_hif_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
}
static
int
netx_hif_irq_type
(
unsigned
in
t
_
irq
,
unsigned
int
type
)
netx_hif_irq_type
(
struc
t
irq
_data
*
d
,
unsigned
int
type
)
{
unsigned
int
val
,
irq
;
val
=
readl
(
NETX_DPMAS_IF_CONF1
);
irq
=
_
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
irq
=
d
->
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
if
(
type
&
IRQ_TYPE_EDGE_RISING
)
{
DEBUG_IRQ
(
"rising edges
\n
"
);
...
...
@@ -119,49 +119,49 @@ netx_hif_irq_type(unsigned int _irq, unsigned int type)
}
static
void
netx_hif_ack_irq
(
unsigned
in
t
_
irq
)
netx_hif_ack_irq
(
struc
t
irq
_data
*
d
)
{
unsigned
int
val
,
irq
;
irq
=
_
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
irq
=
d
->
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
writel
((
1
<<
24
)
<<
irq
,
NETX_DPMAS_INT_STAT
);
val
=
readl
(
NETX_DPMAS_INT_EN
);
val
&=
~
((
1
<<
24
)
<<
irq
);
writel
(
val
,
NETX_DPMAS_INT_EN
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
_
irq
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
d
->
irq
);
}
static
void
netx_hif_mask_irq
(
unsigned
in
t
_
irq
)
netx_hif_mask_irq
(
struc
t
irq
_data
*
d
)
{
unsigned
int
val
,
irq
;
irq
=
_
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
irq
=
d
->
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
val
=
readl
(
NETX_DPMAS_INT_EN
);
val
&=
~
((
1
<<
24
)
<<
irq
);
writel
(
val
,
NETX_DPMAS_INT_EN
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
_
irq
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
d
->
irq
);
}
static
void
netx_hif_unmask_irq
(
unsigned
in
t
_
irq
)
netx_hif_unmask_irq
(
struc
t
irq
_data
*
d
)
{
unsigned
int
val
,
irq
;
irq
=
_
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
irq
=
d
->
irq
-
NETX_IRQ_HIF_CHAINED
(
0
);
val
=
readl
(
NETX_DPMAS_INT_EN
);
val
|=
(
1
<<
24
)
<<
irq
;
writel
(
val
,
NETX_DPMAS_INT_EN
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
_
irq
);
DEBUG_IRQ
(
"%s: irq %d
\n
"
,
__func__
,
d
->
irq
);
}
static
struct
irq_chip
netx_hif_chip
=
{
.
ack
=
netx_hif_ack_irq
,
.
mask
=
netx_hif_mask_irq
,
.
unmask
=
netx_hif_unmask_irq
,
.
set_type
=
netx_hif_irq_type
,
.
irq_
ack
=
netx_hif_ack_irq
,
.
irq_
mask
=
netx_hif_mask_irq
,
.
irq_
unmask
=
netx_hif_unmask_irq
,
.
irq_
set_type
=
netx_hif_irq_type
,
};
void
__init
netx_init_irq
(
void
)
...
...
This diff is collapsed.
Click to expand it.
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