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
d6138832
Commit
d6138832
authored
Oct 27, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: mach-microdev: irq_data conversion.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
2803a1c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
arch/sh/boards/mach-microdev/irq.c
arch/sh/boards/mach-microdev/irq.c
+11
-19
No files found.
arch/sh/boards/mach-microdev/irq.c
View file @
d6138832
...
...
@@ -65,19 +65,9 @@ static const struct {
# error Inconsistancy in defining the IRQ# for primary IDE!
#endif
static
void
enable_microdev_irq
(
unsigned
int
irq
);
static
void
disable_microdev_irq
(
unsigned
int
irq
);
static
void
mask_and_ack_microdev
(
unsigned
int
);
static
struct
irq_chip
microdev_irq_type
=
{
.
name
=
"MicroDev-IRQ"
,
.
unmask
=
enable_microdev_irq
,
.
mask
=
disable_microdev_irq
,
.
ack
=
mask_and_ack_microdev
,
};
static
void
disable_microdev_irq
(
unsigned
int
irq
)
static
void
disable_microdev_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
int
fpgaIrq
;
if
(
irq
>=
NUM_EXTERNAL_IRQS
)
...
...
@@ -91,8 +81,9 @@ static void disable_microdev_irq(unsigned int irq)
__raw_writel
(
MICRODEV_FPGA_INTC_MASK
(
fpgaIrq
),
MICRODEV_FPGA_INTDSB_REG
);
}
static
void
enable_microdev_irq
(
unsigned
int
irq
)
static
void
enable_microdev_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
long
priorityReg
,
priorities
,
pri
;
unsigned
int
fpgaIrq
;
...
...
@@ -116,17 +107,18 @@ static void enable_microdev_irq(unsigned int irq)
__raw_writel
(
MICRODEV_FPGA_INTC_MASK
(
fpgaIrq
),
MICRODEV_FPGA_INTENB_REG
);
}
static
struct
irq_chip
microdev_irq_type
=
{
.
name
=
"MicroDev-IRQ"
,
.
irq_unmask
=
enable_microdev_irq
,
.
irq_mask
=
disable_microdev_irq
,
};
/* This function sets the desired irq handler to be a MicroDev type */
static
void
__init
make_microdev_irq
(
unsigned
int
irq
)
{
disable_irq_nosync
(
irq
);
set_irq_chip_and_handler
(
irq
,
&
microdev_irq_type
,
handle_level_irq
);
disable_microdev_irq
(
irq
);
}
static
void
mask_and_ack_microdev
(
unsigned
int
irq
)
{
disable_microdev_irq
(
irq
);
disable_microdev_irq
(
irq_get_irq_data
(
irq
));
}
extern
void
__init
init_microdev_irq
(
void
)
...
...
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