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
f013c98d
Commit
f013c98d
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: vic: irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
8231e741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
arch/arm/common/vic.c
arch/arm/common/vic.c
+16
-16
No files found.
arch/arm/common/vic.c
View file @
f013c98d
...
@@ -204,26 +204,26 @@ static void __init vic_pm_register(void __iomem *base, unsigned int irq, u32 res
...
@@ -204,26 +204,26 @@ static void __init vic_pm_register(void __iomem *base, unsigned int irq, u32 res
static
inline
void
vic_pm_register
(
void
__iomem
*
base
,
unsigned
int
irq
,
u32
arg1
)
{
}
static
inline
void
vic_pm_register
(
void
__iomem
*
base
,
unsigned
int
irq
,
u32
arg1
)
{
}
#endif
/* CONFIG_PM */
#endif
/* CONFIG_PM */
static
void
vic_ack_irq
(
unsigned
int
irq
)
static
void
vic_ack_irq
(
struct
irq_data
*
d
)
{
{
void
__iomem
*
base
=
get_irq_chip_data
(
irq
);
void
__iomem
*
base
=
irq_data_get_irq_chip_data
(
d
);
irq
&=
31
;
unsigned
int
irq
=
d
->
irq
&
31
;
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE_CLEAR
);
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE_CLEAR
);
/* moreover, clear the soft-triggered, in case it was the reason */
/* moreover, clear the soft-triggered, in case it was the reason */
writel
(
1
<<
irq
,
base
+
VIC_INT_SOFT_CLEAR
);
writel
(
1
<<
irq
,
base
+
VIC_INT_SOFT_CLEAR
);
}
}
static
void
vic_mask_irq
(
unsigned
int
irq
)
static
void
vic_mask_irq
(
struct
irq_data
*
d
)
{
{
void
__iomem
*
base
=
get_irq_chip_data
(
irq
);
void
__iomem
*
base
=
irq_data_get_irq_chip_data
(
d
);
irq
&=
31
;
unsigned
int
irq
=
d
->
irq
&
31
;
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE_CLEAR
);
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE_CLEAR
);
}
}
static
void
vic_unmask_irq
(
unsigned
int
irq
)
static
void
vic_unmask_irq
(
struct
irq_data
*
d
)
{
{
void
__iomem
*
base
=
get_irq_chip_data
(
irq
);
void
__iomem
*
base
=
irq_data_get_irq_chip_data
(
d
);
irq
&=
31
;
unsigned
int
irq
=
d
->
irq
&
31
;
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE
);
writel
(
1
<<
irq
,
base
+
VIC_INT_ENABLE
);
}
}
...
@@ -242,10 +242,10 @@ static struct vic_device *vic_from_irq(unsigned int irq)
...
@@ -242,10 +242,10 @@ static struct vic_device *vic_from_irq(unsigned int irq)
return
NULL
;
return
NULL
;
}
}
static
int
vic_set_wake
(
unsigned
int
irq
,
unsigned
int
on
)
static
int
vic_set_wake
(
struct
irq_data
*
d
,
unsigned
int
on
)
{
{
struct
vic_device
*
v
=
vic_from_irq
(
irq
);
struct
vic_device
*
v
=
vic_from_irq
(
d
->
irq
);
unsigned
int
off
=
irq
&
31
;
unsigned
int
off
=
d
->
irq
&
31
;
u32
bit
=
1
<<
off
;
u32
bit
=
1
<<
off
;
if
(
!
v
)
if
(
!
v
)
...
@@ -267,10 +267,10 @@ static int vic_set_wake(unsigned int irq, unsigned int on)
...
@@ -267,10 +267,10 @@ static int vic_set_wake(unsigned int irq, unsigned int on)
static
struct
irq_chip
vic_chip
=
{
static
struct
irq_chip
vic_chip
=
{
.
name
=
"VIC"
,
.
name
=
"VIC"
,
.
ack
=
vic_ack_irq
,
.
irq_ack
=
vic_ack_irq
,
.
mask
=
vic_mask_irq
,
.
irq_mask
=
vic_mask_irq
,
.
unmask
=
vic_unmask_irq
,
.
irq_unmask
=
vic_unmask_irq
,
.
set_wake
=
vic_set_wake
,
.
irq_
set_wake
=
vic_set_wake
,
};
};
static
void
__init
vic_disable
(
void
__iomem
*
base
)
static
void
__init
vic_disable
(
void
__iomem
*
base
)
...
...
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