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
aab0c637
Commit
aab0c637
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: shark: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
c4e8964e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
arch/arm/mach-shark/irq.c
arch/arm/mach-shark/irq.c
+13
-13
No files found.
arch/arm/mach-shark/irq.c
View file @
aab0c637
...
@@ -30,35 +30,35 @@ static unsigned char cached_irq_mask[2] = { 0xfb, 0xff };
...
@@ -30,35 +30,35 @@ static unsigned char cached_irq_mask[2] = { 0xfb, 0xff };
* These have to be protected by the irq controller spinlock
* These have to be protected by the irq controller spinlock
* before being called.
* before being called.
*/
*/
static
void
shark_disable_8259A_irq
(
unsigned
int
irq
)
static
void
shark_disable_8259A_irq
(
struct
irq_data
*
d
)
{
{
unsigned
int
mask
;
unsigned
int
mask
;
if
(
irq
<
8
)
{
if
(
d
->
irq
<
8
)
{
mask
=
1
<<
irq
;
mask
=
1
<<
d
->
irq
;
cached_irq_mask
[
0
]
|=
mask
;
cached_irq_mask
[
0
]
|=
mask
;
outb
(
cached_irq_mask
[
1
],
0xA1
);
outb
(
cached_irq_mask
[
1
],
0xA1
);
}
else
{
}
else
{
mask
=
1
<<
(
irq
-
8
);
mask
=
1
<<
(
d
->
irq
-
8
);
cached_irq_mask
[
1
]
|=
mask
;
cached_irq_mask
[
1
]
|=
mask
;
outb
(
cached_irq_mask
[
0
],
0x21
);
outb
(
cached_irq_mask
[
0
],
0x21
);
}
}
}
}
static
void
shark_enable_8259A_irq
(
unsigned
int
irq
)
static
void
shark_enable_8259A_irq
(
struct
irq_data
*
d
)
{
{
unsigned
int
mask
;
unsigned
int
mask
;
if
(
irq
<
8
)
{
if
(
d
->
irq
<
8
)
{
mask
=
~
(
1
<<
irq
);
mask
=
~
(
1
<<
d
->
irq
);
cached_irq_mask
[
0
]
&=
mask
;
cached_irq_mask
[
0
]
&=
mask
;
outb
(
cached_irq_mask
[
0
],
0x21
);
outb
(
cached_irq_mask
[
0
],
0x21
);
}
else
{
}
else
{
mask
=
~
(
1
<<
(
irq
-
8
));
mask
=
~
(
1
<<
(
d
->
irq
-
8
));
cached_irq_mask
[
1
]
&=
mask
;
cached_irq_mask
[
1
]
&=
mask
;
outb
(
cached_irq_mask
[
1
],
0xA1
);
outb
(
cached_irq_mask
[
1
],
0xA1
);
}
}
}
}
static
void
shark_ack_8259A_irq
(
unsigned
int
irq
){}
static
void
shark_ack_8259A_irq
(
struct
irq_data
*
d
){}
static
irqreturn_t
bogus_int
(
int
irq
,
void
*
dev_id
)
static
irqreturn_t
bogus_int
(
int
irq
,
void
*
dev_id
)
{
{
...
@@ -70,9 +70,9 @@ static struct irqaction cascade;
...
@@ -70,9 +70,9 @@ static struct irqaction cascade;
static
struct
irq_chip
fb_chip
=
{
static
struct
irq_chip
fb_chip
=
{
.
name
=
"XT-PIC"
,
.
name
=
"XT-PIC"
,
.
ack
=
shark_ack_8259A_irq
,
.
irq_
ack
=
shark_ack_8259A_irq
,
.
mask
=
shark_disable_8259A_irq
,
.
irq_
mask
=
shark_disable_8259A_irq
,
.
unmask
=
shark_enable_8259A_irq
,
.
irq_unmask
=
shark_enable_8259A_irq
,
};
};
void
__init
shark_init_irq
(
void
)
void
__init
shark_init_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