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
680244df
Commit
680244df
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: LoCoMo: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
8cdd4572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
arch/arm/common/locomo.c
arch/arm/common/locomo.c
+12
-12
No files found.
arch/arm/common/locomo.c
View file @
680244df
...
...
@@ -144,7 +144,7 @@ static void locomo_handler(unsigned int irq, struct irq_desc *desc)
int
req
,
i
;
/* Acknowledge the parent IRQ */
desc
->
chip
->
ack
(
irq
);
desc
->
irq_data
.
chip
->
irq_ack
(
&
desc
->
irq_data
);
/* check why this interrupt was generated */
req
=
locomo_readl
(
lchip
->
base
+
LOCOMO_ICR
)
&
0x0f00
;
...
...
@@ -161,33 +161,33 @@ static void locomo_handler(unsigned int irq, struct irq_desc *desc)
}
}
static
void
locomo_ack_irq
(
unsigned
int
irq
)
static
void
locomo_ack_irq
(
struct
irq_data
*
d
)
{
}
static
void
locomo_mask_irq
(
unsigned
int
irq
)
static
void
locomo_mask_irq
(
struct
irq_data
*
d
)
{
struct
locomo
*
lchip
=
get_irq_chip_data
(
irq
);
struct
locomo
*
lchip
=
irq_data_get_irq_chip_data
(
d
);
unsigned
int
r
;
r
=
locomo_readl
(
lchip
->
base
+
LOCOMO_ICR
);
r
&=
~
(
0x0010
<<
(
irq
-
lchip
->
irq_base
));
r
&=
~
(
0x0010
<<
(
d
->
irq
-
lchip
->
irq_base
));
locomo_writel
(
r
,
lchip
->
base
+
LOCOMO_ICR
);
}
static
void
locomo_unmask_irq
(
unsigned
int
irq
)
static
void
locomo_unmask_irq
(
struct
irq_data
*
d
)
{
struct
locomo
*
lchip
=
get_irq_chip_data
(
irq
);
struct
locomo
*
lchip
=
irq_data_get_irq_chip_data
(
d
);
unsigned
int
r
;
r
=
locomo_readl
(
lchip
->
base
+
LOCOMO_ICR
);
r
|=
(
0x0010
<<
(
irq
-
lchip
->
irq_base
));
r
|=
(
0x0010
<<
(
d
->
irq
-
lchip
->
irq_base
));
locomo_writel
(
r
,
lchip
->
base
+
LOCOMO_ICR
);
}
static
struct
irq_chip
locomo_chip
=
{
.
name
=
"LOCOMO"
,
.
ack
=
locomo_ack_irq
,
.
mask
=
locomo_mask_irq
,
.
unmask
=
locomo_unmask_irq
,
.
name
=
"LOCOMO"
,
.
irq_
ack
=
locomo_ack_irq
,
.
irq_
mask
=
locomo_mask_irq
,
.
irq_
unmask
=
locomo_unmask_irq
,
};
static
void
locomo_setup_irq
(
struct
locomo
*
lchip
)
...
...
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