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
19add7e1
Commit
19add7e1
authored
Oct 27, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: hd64461: irq_data conversion.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
79c98128
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
arch/sh/cchips/hd6446x/hd64461.c
arch/sh/cchips/hd6446x/hd64461.c
+11
-8
No files found.
arch/sh/cchips/hd6446x/hd64461.c
View file @
19add7e1
...
@@ -17,8 +17,9 @@
...
@@ -17,8 +17,9 @@
/* This belongs in cpu specific */
/* This belongs in cpu specific */
#define INTC_ICR1 0xA4140010UL
#define INTC_ICR1 0xA4140010UL
static
void
hd64461_mask_irq
(
unsigned
int
irq
)
static
void
hd64461_mask_irq
(
struct
irq_data
*
data
)
{
{
unsigned
int
irq
=
data
->
irq
;
unsigned
short
nimr
;
unsigned
short
nimr
;
unsigned
short
mask
=
1
<<
(
irq
-
HD64461_IRQBASE
);
unsigned
short
mask
=
1
<<
(
irq
-
HD64461_IRQBASE
);
...
@@ -27,8 +28,9 @@ static void hd64461_mask_irq(unsigned int irq)
...
@@ -27,8 +28,9 @@ static void hd64461_mask_irq(unsigned int irq)
__raw_writew
(
nimr
,
HD64461_NIMR
);
__raw_writew
(
nimr
,
HD64461_NIMR
);
}
}
static
void
hd64461_unmask_irq
(
unsigned
int
irq
)
static
void
hd64461_unmask_irq
(
struct
irq_data
*
data
)
{
{
unsigned
int
irq
=
data
->
irq
;
unsigned
short
nimr
;
unsigned
short
nimr
;
unsigned
short
mask
=
1
<<
(
irq
-
HD64461_IRQBASE
);
unsigned
short
mask
=
1
<<
(
irq
-
HD64461_IRQBASE
);
...
@@ -37,20 +39,21 @@ static void hd64461_unmask_irq(unsigned int irq)
...
@@ -37,20 +39,21 @@ static void hd64461_unmask_irq(unsigned int irq)
__raw_writew
(
nimr
,
HD64461_NIMR
);
__raw_writew
(
nimr
,
HD64461_NIMR
);
}
}
static
void
hd64461_mask_and_ack_irq
(
unsigned
int
irq
)
static
void
hd64461_mask_and_ack_irq
(
struct
irq_data
*
data
)
{
{
hd64461_mask_irq
(
irq
);
hd64461_mask_irq
(
data
);
#ifdef CONFIG_HD64461_ENABLER
#ifdef CONFIG_HD64461_ENABLER
if
(
irq
==
HD64461_IRQBASE
+
13
)
if
(
data
->
irq
==
HD64461_IRQBASE
+
13
)
__raw_writeb
(
0x00
,
HD64461_PCC1CSCR
);
__raw_writeb
(
0x00
,
HD64461_PCC1CSCR
);
#endif
#endif
}
}
static
struct
irq_chip
hd64461_irq_chip
=
{
static
struct
irq_chip
hd64461_irq_chip
=
{
.
name
=
"HD64461-IRQ"
,
.
name
=
"HD64461-IRQ"
,
.
mask
=
hd64461_mask_irq
,
.
irq_mask
=
hd64461_mask_irq
,
.
mask_ack
=
hd64461_mask_and_ack_irq
,
.
irq_
mask_ack
=
hd64461_mask_and_ack_irq
,
.
unmask
=
hd64461_unmask_irq
,
.
irq_unmask
=
hd64461_unmask_irq
,
};
};
static
void
hd64461_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
static
void
hd64461_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
...
...
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