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
2803a1c6
Commit
2803a1c6
authored
Oct 27, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: mach-landisk: irq_data conversion.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
8df3a615
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
arch/sh/boards/mach-landisk/irq.c
arch/sh/boards/mach-landisk/irq.c
+7
-8
No files found.
arch/sh/boards/mach-landisk/irq.c
View file @
2803a1c6
...
...
@@ -18,25 +18,24 @@
#include <linux/io.h>
#include <mach-landisk/mach/iodata_landisk.h>
static
void
disable_landisk_irq
(
unsigned
int
irq
)
static
void
disable_landisk_irq
(
struct
irq_data
*
data
)
{
unsigned
char
mask
=
0xff
^
(
0x01
<<
(
irq
-
5
));
unsigned
char
mask
=
0xff
^
(
0x01
<<
(
data
->
irq
-
5
));
__raw_writeb
(
__raw_readb
(
PA_IMASK
)
&
mask
,
PA_IMASK
);
}
static
void
enable_landisk_irq
(
unsigned
int
irq
)
static
void
enable_landisk_irq
(
struct
irq_data
*
data
)
{
unsigned
char
value
=
(
0x01
<<
(
irq
-
5
));
unsigned
char
value
=
(
0x01
<<
(
data
->
irq
-
5
));
__raw_writeb
(
__raw_readb
(
PA_IMASK
)
|
value
,
PA_IMASK
);
}
static
struct
irq_chip
landisk_irq_chip
__read_mostly
=
{
.
name
=
"LANDISK"
,
.
mask
=
disable_landisk_irq
,
.
unmask
=
enable_landisk_irq
,
.
mask_ack
=
disable_landisk_irq
,
.
irq_mask
=
disable_landisk_irq
,
.
irq_unmask
=
enable_landisk_irq
,
};
/*
...
...
@@ -50,7 +49,7 @@ void __init init_landisk_IRQ(void)
disable_irq_nosync
(
i
);
set_irq_chip_and_handler_name
(
i
,
&
landisk_irq_chip
,
handle_level_irq
,
"level"
);
enable_landisk_irq
(
i
);
enable_landisk_irq
(
i
rq_get_irq_data
(
i
)
);
}
__raw_writeb
(
0x00
,
PA_PWRINT_CLR
);
}
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