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
0d338071
Commit
0d338071
authored
Oct 27, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: mach-dreamcast: irq_data conversion.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
c0537844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
arch/sh/boards/mach-dreamcast/irq.c
arch/sh/boards/mach-dreamcast/irq.c
+10
-7
No files found.
arch/sh/boards/mach-dreamcast/irq.c
View file @
0d338071
...
...
@@ -60,8 +60,9 @@
*/
/* Disable the hardware event by masking its bit in its EMR */
static
inline
void
disable_systemasic_irq
(
unsigned
int
irq
)
static
inline
void
disable_systemasic_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
__u32
emr
=
EMR_BASE
+
(
LEVEL
(
irq
)
<<
4
)
+
(
LEVEL
(
irq
)
<<
2
);
__u32
mask
;
...
...
@@ -71,8 +72,9 @@ static inline void disable_systemasic_irq(unsigned int irq)
}
/* Enable the hardware event by setting its bit in its EMR */
static
inline
void
enable_systemasic_irq
(
unsigned
int
irq
)
static
inline
void
enable_systemasic_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
__u32
emr
=
EMR_BASE
+
(
LEVEL
(
irq
)
<<
4
)
+
(
LEVEL
(
irq
)
<<
2
);
__u32
mask
;
...
...
@@ -82,18 +84,19 @@ static inline void enable_systemasic_irq(unsigned int irq)
}
/* Acknowledge a hardware event by writing its bit back to its ESR */
static
void
mask_ack_systemasic_irq
(
unsigned
int
irq
)
static
void
mask_ack_systemasic_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
__u32
esr
=
ESR_BASE
+
(
LEVEL
(
irq
)
<<
2
);
disable_systemasic_irq
(
irq
);
disable_systemasic_irq
(
data
);
outl
((
1
<<
EVENT_BIT
(
irq
)),
esr
);
}
struct
irq_chip
systemasic_int
=
{
.
name
=
"System ASIC"
,
.
mask
=
disable_systemasic_irq
,
.
mask_ack
=
mask_ack_systemasic_irq
,
.
unmask
=
enable_systemasic_irq
,
.
irq_mask
=
disable_systemasic_irq
,
.
irq_
mask_ack
=
mask_ack_systemasic_irq
,
.
irq_unmask
=
enable_systemasic_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