Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
815db147
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看板
提交
815db147
编写于
10月 27, 2010
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh64: irq_data conversion.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
31b37c73
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
50 deletion
+15
-50
arch/sh/boards/mach-cayman/irq.c
arch/sh/boards/mach-cayman/irq.c
+6
-10
arch/sh/kernel/cpu/irq/intc-sh5.c
arch/sh/kernel/cpu/irq/intc-sh5.c
+9
-40
未找到文件。
arch/sh/boards/mach-cayman/irq.c
浏览文件 @
815db147
...
...
@@ -55,8 +55,9 @@ static struct irqaction cayman_action_pci2 = {
.
flags
=
IRQF_DISABLED
,
};
static
void
enable_cayman_irq
(
unsigned
int
irq
)
static
void
enable_cayman_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
long
flags
;
unsigned
long
mask
;
unsigned
int
reg
;
...
...
@@ -72,8 +73,9 @@ static void enable_cayman_irq(unsigned int irq)
local_irq_restore
(
flags
);
}
void
disable_cayman_irq
(
unsigned
int
irq
)
static
void
disable_cayman_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
long
flags
;
unsigned
long
mask
;
unsigned
int
reg
;
...
...
@@ -89,16 +91,10 @@ void disable_cayman_irq(unsigned int irq)
local_irq_restore
(
flags
);
}
static
void
ack_cayman_irq
(
unsigned
int
irq
)
{
disable_cayman_irq
(
irq
);
}
struct
irq_chip
cayman_irq_type
=
{
.
name
=
"Cayman-IRQ"
,
.
unmask
=
enable_cayman_irq
,
.
mask
=
disable_cayman_irq
,
.
mask_ack
=
ack_cayman_irq
,
.
irq_unmask
=
enable_cayman_irq
,
.
irq_mask
=
disable_cayman_irq
,
};
int
cayman_irq_demux
(
int
evt
)
...
...
arch/sh/kernel/cpu/irq/intc-sh5.c
浏览文件 @
815db147
...
...
@@ -76,39 +76,11 @@ int intc_evt_to_irq[(0xE20/0x20)+1] = {
};
static
unsigned
long
intc_virt
;
static
unsigned
int
startup_intc_irq
(
unsigned
int
irq
);
static
void
shutdown_intc_irq
(
unsigned
int
irq
);
static
void
enable_intc_irq
(
unsigned
int
irq
);
static
void
disable_intc_irq
(
unsigned
int
irq
);
static
void
mask_and_ack_intc
(
unsigned
int
);
static
void
end_intc_irq
(
unsigned
int
irq
);
static
struct
irq_chip
intc_irq_type
=
{
.
name
=
"INTC"
,
.
startup
=
startup_intc_irq
,
.
shutdown
=
shutdown_intc_irq
,
.
enable
=
enable_intc_irq
,
.
disable
=
disable_intc_irq
,
.
ack
=
mask_and_ack_intc
,
.
end
=
end_intc_irq
};
static
int
irlm
;
/* IRL mode */
static
unsigned
int
startup_intc_irq
(
unsigned
int
irq
)
{
enable_intc_irq
(
irq
);
return
0
;
/* never anything pending */
}
static
void
shutdown_intc_irq
(
unsigned
int
irq
)
{
disable_intc_irq
(
irq
);
}
static
void
enable_intc_irq
(
unsigned
int
irq
)
static
void
enable_intc_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
long
reg
;
unsigned
long
bitmask
;
...
...
@@ -126,8 +98,9 @@ static void enable_intc_irq(unsigned int irq)
__raw_writel
(
bitmask
,
reg
);
}
static
void
disable_intc_irq
(
unsigned
int
irq
)
static
void
disable_intc_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
long
reg
;
unsigned
long
bitmask
;
...
...
@@ -142,15 +115,11 @@ static void disable_intc_irq(unsigned int irq)
__raw_writel
(
bitmask
,
reg
);
}
static
void
mask_and_ack_intc
(
unsigned
int
irq
)
{
disable_intc_irq
(
irq
);
}
static
void
end_intc_irq
(
unsigned
int
irq
)
{
enable_intc_irq
(
irq
);
}
static
struct
irq_chip
intc_irq_type
=
{
.
name
=
"INTC"
,
.
irq_enable
=
enable_intc_irq
,
.
irq_disable
=
disable_intc_irq
,
};
void
__init
plat_irq_setup
(
void
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录