Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
59f99880
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
59f99880
编写于
5月 28, 2007
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libata] drivers: remove 'void __iomem *' casts from pre-iomap days
Signed-off-by:
N
Jeff Garzik
<
jeff@garzik.org
>
上级
1d2808fd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
12 deletion
+13
-12
drivers/ata/pata_ixp4xx_cf.c
drivers/ata/pata_ixp4xx_cf.c
+1
-1
drivers/ata/sata_inic162x.c
drivers/ata/sata_inic162x.c
+2
-2
drivers/ata/sata_promise.c
drivers/ata/sata_promise.c
+4
-4
drivers/ata/sata_svw.c
drivers/ata/sata_svw.c
+6
-5
未找到文件。
drivers/ata/pata_ixp4xx_cf.c
浏览文件 @
59f99880
...
...
@@ -56,7 +56,7 @@ static void ixp4xx_mmio_data_xfer(struct ata_device *adev, unsigned char *buf,
unsigned
int
words
=
buflen
>>
1
;
u16
*
buf16
=
(
u16
*
)
buf
;
struct
ata_port
*
ap
=
adev
->
ap
;
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
data_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
data_addr
;
struct
ixp4xx_pata_data
*
data
=
ap
->
host
->
dev
->
platform_data
;
/* set the expansion bus in 16bit mode and restore
...
...
drivers/ata/sata_inic162x.c
浏览文件 @
59f99880
...
...
@@ -192,7 +192,7 @@ static void inic_reset_port(void __iomem *port_base)
static
u32
inic_scr_read
(
struct
ata_port
*
ap
,
unsigned
sc_reg
)
{
void
__iomem
*
scr_addr
=
(
void
__iomem
*
)
ap
->
ioaddr
.
scr_addr
;
void
__iomem
*
scr_addr
=
ap
->
ioaddr
.
scr_addr
;
void
__iomem
*
addr
;
u32
val
;
...
...
@@ -210,7 +210,7 @@ static u32 inic_scr_read(struct ata_port *ap, unsigned sc_reg)
static
void
inic_scr_write
(
struct
ata_port
*
ap
,
unsigned
sc_reg
,
u32
val
)
{
void
__iomem
*
scr_addr
=
(
void
__iomem
*
)
ap
->
ioaddr
.
scr_addr
;
void
__iomem
*
scr_addr
=
ap
->
ioaddr
.
scr_addr
;
void
__iomem
*
addr
;
if
(
unlikely
(
sc_reg
>=
ARRAY_SIZE
(
scr_map
)))
...
...
drivers/ata/sata_promise.c
浏览文件 @
59f99880
...
...
@@ -382,7 +382,7 @@ static int pdc_sata_port_start(struct ata_port *ap)
/* fix up PHYMODE4 align timing */
if
(
ap
->
flags
&
PDC_FLAG_GEN_II
)
{
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
scr_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
scr_addr
;
unsigned
int
tmp
;
tmp
=
readl
(
mmio
+
0x014
);
...
...
@@ -418,7 +418,7 @@ static void pdc_reset_port(struct ata_port *ap)
static
int
pdc_pata_cable_detect
(
struct
ata_port
*
ap
)
{
u8
tmp
;
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
cmd_addr
+
PDC_CTLSTAT
+
0x03
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
cmd_addr
+
PDC_CTLSTAT
+
0x03
;
tmp
=
readb
(
mmio
);
if
(
tmp
&
0x01
)
...
...
@@ -573,7 +573,7 @@ static void pdc_qc_prep(struct ata_queued_cmd *qc)
static
void
pdc_freeze
(
struct
ata_port
*
ap
)
{
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
cmd_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
cmd_addr
;
u32
tmp
;
tmp
=
readl
(
mmio
+
PDC_CTLSTAT
);
...
...
@@ -585,7 +585,7 @@ static void pdc_freeze(struct ata_port *ap)
static
void
pdc_thaw
(
struct
ata_port
*
ap
)
{
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
cmd_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
cmd_addr
;
u32
tmp
;
/* clear IRQ */
...
...
drivers/ata/sata_svw.c
浏览文件 @
59f99880
...
...
@@ -107,7 +107,7 @@ static u32 k2_sata_scr_read (struct ata_port *ap, unsigned int sc_reg)
{
if
(
sc_reg
>
SCR_CONTROL
)
return
0xffffffffU
;
return
readl
(
(
void
__iomem
*
)
ap
->
ioaddr
.
scr_addr
+
(
sc_reg
*
4
));
return
readl
(
ap
->
ioaddr
.
scr_addr
+
(
sc_reg
*
4
));
}
...
...
@@ -116,7 +116,7 @@ static void k2_sata_scr_write (struct ata_port *ap, unsigned int sc_reg,
{
if
(
sc_reg
>
SCR_CONTROL
)
return
;
writel
(
val
,
(
void
__iomem
*
)
ap
->
ioaddr
.
scr_addr
+
(
sc_reg
*
4
));
writel
(
val
,
ap
->
ioaddr
.
scr_addr
+
(
sc_reg
*
4
));
}
...
...
@@ -197,7 +197,8 @@ static void k2_bmdma_setup_mmio (struct ata_queued_cmd *qc)
struct
ata_port
*
ap
=
qc
->
ap
;
unsigned
int
rw
=
(
qc
->
tf
.
flags
&
ATA_TFLAG_WRITE
);
u8
dmactl
;
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
bmdma_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
bmdma_addr
;
/* load PRD table addr. */
mb
();
/* make sure PRD table writes are visible to controller */
writel
(
ap
->
prd_dma
,
mmio
+
ATA_DMA_TABLE_OFS
);
...
...
@@ -225,7 +226,7 @@ static void k2_bmdma_setup_mmio (struct ata_queued_cmd *qc)
static
void
k2_bmdma_start_mmio
(
struct
ata_queued_cmd
*
qc
)
{
struct
ata_port
*
ap
=
qc
->
ap
;
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
bmdma_addr
;
void
__iomem
*
mmio
=
ap
->
ioaddr
.
bmdma_addr
;
u8
dmactl
;
/* start host DMA transaction */
...
...
@@ -253,7 +254,7 @@ static void k2_bmdma_start_mmio (struct ata_queued_cmd *qc)
static
u8
k2_stat_check_status
(
struct
ata_port
*
ap
)
{
return
readl
(
(
void
__iomem
*
)
ap
->
ioaddr
.
status_addr
);
return
readl
(
ap
->
ioaddr
.
status_addr
);
}
#ifdef CONFIG_PPC_OF
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录