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
76fbec84
Commit
76fbec84
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: tcc8k: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
cb55bc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
arch/arm/mach-tcc8k/irq.c
arch/arm/mach-tcc8k/irq.c
+28
-28
No files found.
arch/arm/mach-tcc8k/irq.c
View file @
76fbec84
...
@@ -18,65 +18,65 @@
...
@@ -18,65 +18,65 @@
#include "common.h"
#include "common.h"
/* Disable IRQ */
/* Disable IRQ */
static
void
tcc8000_mask_ack_irq0
(
unsigned
int
irq
)
static
void
tcc8000_mask_ack_irq0
(
struct
irq_data
*
d
)
{
{
PIC0_IEN
&=
~
(
1
<<
irq
);
PIC0_IEN
&=
~
(
1
<<
d
->
irq
);
PIC0_CREQ
|=
(
1
<<
irq
);
PIC0_CREQ
|=
(
1
<<
d
->
irq
);
}
}
static
void
tcc8000_mask_ack_irq1
(
unsigned
int
irq
)
static
void
tcc8000_mask_ack_irq1
(
struct
irq_data
*
d
)
{
{
PIC1_IEN
&=
~
(
1
<<
(
irq
-
32
));
PIC1_IEN
&=
~
(
1
<<
(
d
->
irq
-
32
));
PIC1_CREQ
|=
(
1
<<
(
irq
-
32
));
PIC1_CREQ
|=
(
1
<<
(
d
->
irq
-
32
));
}
}
static
void
tcc8000_mask_irq0
(
unsigned
int
irq
)
static
void
tcc8000_mask_irq0
(
struct
irq_data
*
d
)
{
{
PIC0_IEN
&=
~
(
1
<<
irq
);
PIC0_IEN
&=
~
(
1
<<
d
->
irq
);
}
}
static
void
tcc8000_mask_irq1
(
unsigned
int
irq
)
static
void
tcc8000_mask_irq1
(
struct
irq_data
*
d
)
{
{
PIC1_IEN
&=
~
(
1
<<
(
irq
-
32
));
PIC1_IEN
&=
~
(
1
<<
(
d
->
irq
-
32
));
}
}
static
void
tcc8000_ack_irq0
(
unsigned
int
irq
)
static
void
tcc8000_ack_irq0
(
struct
irq_data
*
d
)
{
{
PIC0_CREQ
|=
(
1
<<
irq
);
PIC0_CREQ
|=
(
1
<<
d
->
irq
);
}
}
static
void
tcc8000_ack_irq1
(
unsigned
int
irq
)
static
void
tcc8000_ack_irq1
(
struct
irq_data
*
d
)
{
{
PIC1_CREQ
|=
(
1
<<
(
irq
-
32
));
PIC1_CREQ
|=
(
1
<<
(
d
->
irq
-
32
));
}
}
/* Enable IRQ */
/* Enable IRQ */
static
void
tcc8000_unmask_irq0
(
unsigned
int
irq
)
static
void
tcc8000_unmask_irq0
(
struct
irq_data
*
d
)
{
{
PIC0_IEN
|=
(
1
<<
irq
);
PIC0_IEN
|=
(
1
<<
d
->
irq
);
PIC0_INTOEN
|=
(
1
<<
irq
);
PIC0_INTOEN
|=
(
1
<<
d
->
irq
);
}
}
static
void
tcc8000_unmask_irq1
(
unsigned
int
irq
)
static
void
tcc8000_unmask_irq1
(
struct
irq_data
*
d
)
{
{
PIC1_IEN
|=
(
1
<<
(
irq
-
32
));
PIC1_IEN
|=
(
1
<<
(
d
->
irq
-
32
));
PIC1_INTOEN
|=
(
1
<<
(
irq
-
32
));
PIC1_INTOEN
|=
(
1
<<
(
d
->
irq
-
32
));
}
}
static
struct
irq_chip
tcc8000_irq_chip0
=
{
static
struct
irq_chip
tcc8000_irq_chip0
=
{
.
name
=
"tcc_irq0"
,
.
name
=
"tcc_irq0"
,
.
mask
=
tcc8000_mask_irq0
,
.
irq_mask
=
tcc8000_mask_irq0
,
.
ack
=
tcc8000_ack_irq0
,
.
irq_ack
=
tcc8000_ack_irq0
,
.
mask_ack
=
tcc8000_mask_ack_irq0
,
.
irq_
mask_ack
=
tcc8000_mask_ack_irq0
,
.
unmask
=
tcc8000_unmask_irq0
,
.
irq_unmask
=
tcc8000_unmask_irq0
,
};
};
static
struct
irq_chip
tcc8000_irq_chip1
=
{
static
struct
irq_chip
tcc8000_irq_chip1
=
{
.
name
=
"tcc_irq1"
,
.
name
=
"tcc_irq1"
,
.
mask
=
tcc8000_mask_irq1
,
.
irq_mask
=
tcc8000_mask_irq1
,
.
ack
=
tcc8000_ack_irq1
,
.
irq_ack
=
tcc8000_ack_irq1
,
.
mask_ack
=
tcc8000_mask_ack_irq1
,
.
irq_
mask_ack
=
tcc8000_mask_ack_irq1
,
.
unmask
=
tcc8000_unmask_irq1
,
.
irq_unmask
=
tcc8000_unmask_irq1
,
};
};
void
__init
tcc8k_init_irq
(
void
)
void
__init
tcc8k_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