Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
15ff2c67
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
15ff2c67
编写于
10月 27, 2010
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: mach-se: irq_data conversion.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
e28abafb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
31 deletion
+32
-31
arch/sh/boards/mach-se/7206/irq.c
arch/sh/boards/mach-se/7206/irq.c
+11
-9
arch/sh/boards/mach-se/7343/irq.c
arch/sh/boards/mach-se/7343/irq.c
+7
-8
arch/sh/boards/mach-se/7722/irq.c
arch/sh/boards/mach-se/7722/irq.c
+7
-8
arch/sh/boards/mach-se/7724/irq.c
arch/sh/boards/mach-se/7724/irq.c
+7
-6
未找到文件。
arch/sh/boards/mach-se/7206/irq.c
浏览文件 @
15ff2c67
...
...
@@ -25,8 +25,9 @@
#define INTC_IPR01 0xfffe0818
#define INTC_ICR1 0xfffe0802
static
void
disable_se7206_irq
(
unsigned
int
irq
)
static
void
disable_se7206_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
short
val
;
unsigned
short
mask
=
0xffff
^
(
0x0f
<<
4
*
(
3
-
(
IRQ0_IRQ
-
irq
)));
unsigned
short
msk0
,
msk1
;
...
...
@@ -55,8 +56,9 @@ static void disable_se7206_irq(unsigned int irq)
__raw_writew
(
msk1
,
INTMSK1
);
}
static
void
enable_se7206_irq
(
unsigned
int
irq
)
static
void
enable_se7206_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
unsigned
short
val
;
unsigned
short
value
=
(
0x0001
<<
4
*
(
3
-
(
IRQ0_IRQ
-
irq
)));
unsigned
short
msk0
,
msk1
;
...
...
@@ -86,13 +88,14 @@ static void enable_se7206_irq(unsigned int irq)
__raw_writew
(
msk1
,
INTMSK1
);
}
static
void
eoi_se7206_irq
(
unsigned
int
irq
)
static
void
eoi_se7206_irq
(
struct
irq_data
*
data
)
{
unsigned
short
sts0
,
sts1
;
unsigned
int
irq
=
data
->
irq
;
struct
irq_desc
*
desc
=
irq_to_desc
(
irq
);
if
(
!
(
desc
->
status
&
(
IRQ_DISABLED
|
IRQ_INPROGRESS
)))
enable_se7206_irq
(
irq
);
enable_se7206_irq
(
data
);
/* FPGA isr clear */
sts0
=
__raw_readw
(
INTSTS0
);
sts1
=
__raw_readw
(
INTSTS1
);
...
...
@@ -115,10 +118,9 @@ static void eoi_se7206_irq(unsigned int irq)
static
struct
irq_chip
se7206_irq_chip
__read_mostly
=
{
.
name
=
"SE7206-FPGA"
,
.
mask
=
disable_se7206_irq
,
.
unmask
=
enable_se7206_irq
,
.
mask_ack
=
disable_se7206_irq
,
.
eoi
=
eoi_se7206_irq
,
.
irq_mask
=
disable_se7206_irq
,
.
irq_unmask
=
enable_se7206_irq
,
.
irq_eoi
=
eoi_se7206_irq
,
};
static
void
make_se7206_irq
(
unsigned
int
irq
)
...
...
@@ -126,7 +128,7 @@ static void make_se7206_irq(unsigned int irq)
disable_irq_nosync
(
irq
);
set_irq_chip_and_handler_name
(
irq
,
&
se7206_irq_chip
,
handle_level_irq
,
"level"
);
disable_se7206_irq
(
irq
);
disable_se7206_irq
(
irq
_get_irq_data
(
irq
)
);
}
/*
...
...
arch/sh/boards/mach-se/7343/irq.c
浏览文件 @
15ff2c67
...
...
@@ -18,23 +18,22 @@
unsigned
int
se7343_fpga_irq
[
SE7343_FPGA_IRQ_NR
]
=
{
0
,
};
static
void
disable_se7343_irq
(
unsigned
int
irq
)
static
void
disable_se7343_irq
(
struct
irq_data
*
data
)
{
unsigned
int
bit
=
(
unsigned
int
)
get_irq_chip_data
(
irq
);
unsigned
int
bit
=
(
unsigned
int
)
irq_data_get_irq_chip_data
(
data
);
__raw_writew
(
__raw_readw
(
PA_CPLD_IMSK
)
|
1
<<
bit
,
PA_CPLD_IMSK
);
}
static
void
enable_se7343_irq
(
unsigned
int
irq
)
static
void
enable_se7343_irq
(
struct
irq_data
*
data
)
{
unsigned
int
bit
=
(
unsigned
int
)
get_irq_chip_data
(
irq
);
unsigned
int
bit
=
(
unsigned
int
)
irq_data_get_irq_chip_data
(
data
);
__raw_writew
(
__raw_readw
(
PA_CPLD_IMSK
)
&
~
(
1
<<
bit
),
PA_CPLD_IMSK
);
}
static
struct
irq_chip
se7343_irq_chip
__read_mostly
=
{
.
name
=
"SE7343-FPGA"
,
.
mask
=
disable_se7343_irq
,
.
unmask
=
enable_se7343_irq
,
.
mask_ack
=
disable_se7343_irq
,
.
name
=
"SE7343-FPGA"
,
.
irq_mask
=
disable_se7343_irq
,
.
irq_unmask
=
enable_se7343_irq
,
};
static
void
se7343_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
...
...
arch/sh/boards/mach-se/7722/irq.c
浏览文件 @
15ff2c67
...
...
@@ -18,23 +18,22 @@
unsigned
int
se7722_fpga_irq
[
SE7722_FPGA_IRQ_NR
]
=
{
0
,
};
static
void
disable_se7722_irq
(
unsigned
int
irq
)
static
void
disable_se7722_irq
(
struct
irq_data
*
data
)
{
unsigned
int
bit
=
(
unsigned
int
)
get_irq_chip_data
(
irq
);
unsigned
int
bit
=
(
unsigned
int
)
irq_data_get_irq_chip_data
(
data
);
__raw_writew
(
__raw_readw
(
IRQ01_MASK
)
|
1
<<
bit
,
IRQ01_MASK
);
}
static
void
enable_se7722_irq
(
unsigned
int
irq
)
static
void
enable_se7722_irq
(
struct
irq_data
*
data
)
{
unsigned
int
bit
=
(
unsigned
int
)
get_irq_chip_data
(
irq
);
unsigned
int
bit
=
(
unsigned
int
)
irq_data_get_irq_chip_data
(
data
);
__raw_writew
(
__raw_readw
(
IRQ01_MASK
)
&
~
(
1
<<
bit
),
IRQ01_MASK
);
}
static
struct
irq_chip
se7722_irq_chip
__read_mostly
=
{
.
name
=
"SE7722-FPGA"
,
.
mask
=
disable_se7722_irq
,
.
unmask
=
enable_se7722_irq
,
.
mask_ack
=
disable_se7722_irq
,
.
name
=
"SE7722-FPGA"
,
.
irq_mask
=
disable_se7722_irq
,
.
irq_unmask
=
enable_se7722_irq
,
};
static
void
se7722_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
...
...
arch/sh/boards/mach-se/7724/irq.c
浏览文件 @
15ff2c67
...
...
@@ -68,25 +68,26 @@ static struct fpga_irq get_fpga_irq(unsigned int irq)
return
set
;
}
static
void
disable_se7724_irq
(
unsigned
int
irq
)
static
void
disable_se7724_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
struct
fpga_irq
set
=
get_fpga_irq
(
fpga2irq
(
irq
));
unsigned
int
bit
=
irq
-
set
.
base
;
__raw_writew
(
__raw_readw
(
set
.
mraddr
)
|
0x0001
<<
bit
,
set
.
mraddr
);
}
static
void
enable_se7724_irq
(
unsigned
int
irq
)
static
void
enable_se7724_irq
(
struct
irq_data
*
data
)
{
unsigned
int
irq
=
data
->
irq
;
struct
fpga_irq
set
=
get_fpga_irq
(
fpga2irq
(
irq
));
unsigned
int
bit
=
irq
-
set
.
base
;
__raw_writew
(
__raw_readw
(
set
.
mraddr
)
&
~
(
0x0001
<<
bit
),
set
.
mraddr
);
}
static
struct
irq_chip
se7724_irq_chip
__read_mostly
=
{
.
name
=
"SE7724-FPGA"
,
.
mask
=
disable_se7724_irq
,
.
unmask
=
enable_se7724_irq
,
.
mask_ack
=
disable_se7724_irq
,
.
name
=
"SE7724-FPGA"
,
.
irq_mask
=
disable_se7724_irq
,
.
irq_unmask
=
enable_se7724_irq
,
};
static
void
se7724_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录