Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
8ad357ca
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8ad357ca
编写于
11月 29, 2010
作者:
L
Lennert Buytenhek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: clps711x: irq_data conversion.
Signed-off-by:
N
Lennert Buytenhek
<
buytenh@secretlab.ca
>
上级
cf1d4d50
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
arch/arm/mach-clps711x/irq.c
arch/arm/mach-clps711x/irq.c
+20
-20
未找到文件。
arch/arm/mach-clps711x/irq.c
浏览文件 @
8ad357ca
...
...
@@ -27,24 +27,24 @@
#include <asm/hardware/clps7111.h>
static
void
int1_mask
(
unsigned
int
irq
)
static
void
int1_mask
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
&=
~
(
1
<<
irq
);
intmr1
&=
~
(
1
<<
d
->
irq
);
clps_writel
(
intmr1
,
INTMR1
);
}
static
void
int1_ack
(
unsigned
int
irq
)
static
void
int1_ack
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
&=
~
(
1
<<
irq
);
intmr1
&=
~
(
1
<<
d
->
irq
);
clps_writel
(
intmr1
,
INTMR1
);
switch
(
irq
)
{
switch
(
d
->
irq
)
{
case
IRQ_CSINT
:
clps_writel
(
0
,
COEOI
);
break
;
case
IRQ_TC1OI
:
clps_writel
(
0
,
TC1EOI
);
break
;
case
IRQ_TC2OI
:
clps_writel
(
0
,
TC2EOI
);
break
;
...
...
@@ -54,56 +54,56 @@ static void int1_ack(unsigned int irq)
}
}
static
void
int1_unmask
(
unsigned
int
irq
)
static
void
int1_unmask
(
struct
irq_data
*
d
)
{
u32
intmr1
;
intmr1
=
clps_readl
(
INTMR1
);
intmr1
|=
1
<<
irq
;
intmr1
|=
1
<<
d
->
irq
;
clps_writel
(
intmr1
,
INTMR1
);
}
static
struct
irq_chip
int1_chip
=
{
.
ack
=
int1_ack
,
.
mask
=
int1_mask
,
.
unmask
=
int1_unmask
,
.
irq_
ack
=
int1_ack
,
.
irq_
mask
=
int1_mask
,
.
irq_unmask
=
int1_unmask
,
};
static
void
int2_mask
(
unsigned
int
irq
)
static
void
int2_mask
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
&=
~
(
1
<<
(
irq
-
16
));
intmr2
&=
~
(
1
<<
(
d
->
irq
-
16
));
clps_writel
(
intmr2
,
INTMR2
);
}
static
void
int2_ack
(
unsigned
int
irq
)
static
void
int2_ack
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
&=
~
(
1
<<
(
irq
-
16
));
intmr2
&=
~
(
1
<<
(
d
->
irq
-
16
));
clps_writel
(
intmr2
,
INTMR2
);
switch
(
irq
)
{
switch
(
d
->
irq
)
{
case
IRQ_KBDINT
:
clps_writel
(
0
,
KBDEOI
);
break
;
}
}
static
void
int2_unmask
(
unsigned
int
irq
)
static
void
int2_unmask
(
struct
irq_data
*
d
)
{
u32
intmr2
;
intmr2
=
clps_readl
(
INTMR2
);
intmr2
|=
1
<<
(
irq
-
16
);
intmr2
|=
1
<<
(
d
->
irq
-
16
);
clps_writel
(
intmr2
,
INTMR2
);
}
static
struct
irq_chip
int2_chip
=
{
.
ack
=
int2_ack
,
.
mask
=
int2_mask
,
.
unmask
=
int2_unmask
,
.
irq_
ack
=
int2_ack
,
.
irq_
mask
=
int2_mask
,
.
irq_unmask
=
int2_unmask
,
};
void
__init
clps711x_init_irq
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录