Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c15fcafe
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,发现更多精彩内容 >>
提交
c15fcafe
编写于
10月 14, 2007
作者:
A
Al Viro
提交者:
Jeff Garzik
10月 25, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix pata_icside build for recent libata API changes
Signed-off-by:
N
Jeff Garzik
<
jeff@garzik.org
>
上级
0e06d9ce
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
20 deletion
+22
-20
drivers/ata/pata_icside.c
drivers/ata/pata_icside.c
+22
-20
未找到文件。
drivers/ata/pata_icside.c
浏览文件 @
c15fcafe
...
...
@@ -332,12 +332,13 @@ static void ata_dummy_noret(struct ata_port *port)
{
}
static
void
pata_icside_postreset
(
struct
ata_
port
*
ap
,
unsigned
int
*
classes
)
static
void
pata_icside_postreset
(
struct
ata_
link
*
link
,
unsigned
int
*
classes
)
{
struct
ata_port
*
ap
=
link
->
ap
;
struct
pata_icside_state
*
state
=
ap
->
host
->
private_data
;
if
(
classes
[
0
]
!=
ATA_DEV_NONE
||
classes
[
1
]
!=
ATA_DEV_NONE
)
return
ata_std_postreset
(
ap
,
classes
);
return
ata_std_postreset
(
link
,
classes
);
state
->
port
[
ap
->
port_no
].
disabled
=
1
;
...
...
@@ -395,29 +396,30 @@ static struct ata_port_operations pata_icside_port_ops = {
static
void
__devinit
pata_icside_setup_ioaddr
(
struct
ata_port
*
ap
,
void
__iomem
*
base
,
const
struct
portinfo
*
info
)
struct
pata_icside_info
*
info
,
const
struct
portinfo
*
port
)
{
struct
ata_ioports
*
ioaddr
=
&
ap
->
ioaddr
;
void
__iomem
*
cmd
=
base
+
info
->
dataoffset
;
void
__iomem
*
cmd
=
base
+
port
->
dataoffset
;
ioaddr
->
cmd_addr
=
cmd
;
ioaddr
->
data_addr
=
cmd
+
(
ATA_REG_DATA
<<
info
->
stepping
);
ioaddr
->
error_addr
=
cmd
+
(
ATA_REG_ERR
<<
info
->
stepping
);
ioaddr
->
feature_addr
=
cmd
+
(
ATA_REG_FEATURE
<<
info
->
stepping
);
ioaddr
->
nsect_addr
=
cmd
+
(
ATA_REG_NSECT
<<
info
->
stepping
);
ioaddr
->
lbal_addr
=
cmd
+
(
ATA_REG_LBAL
<<
info
->
stepping
);
ioaddr
->
lbam_addr
=
cmd
+
(
ATA_REG_LBAM
<<
info
->
stepping
);
ioaddr
->
lbah_addr
=
cmd
+
(
ATA_REG_LBAH
<<
info
->
stepping
);
ioaddr
->
device_addr
=
cmd
+
(
ATA_REG_DEVICE
<<
info
->
stepping
);
ioaddr
->
status_addr
=
cmd
+
(
ATA_REG_STATUS
<<
info
->
stepping
);
ioaddr
->
command_addr
=
cmd
+
(
ATA_REG_CMD
<<
info
->
stepping
);
ioaddr
->
ctl_addr
=
base
+
info
->
ctrloffset
;
ioaddr
->
data_addr
=
cmd
+
(
ATA_REG_DATA
<<
port
->
stepping
);
ioaddr
->
error_addr
=
cmd
+
(
ATA_REG_ERR
<<
port
->
stepping
);
ioaddr
->
feature_addr
=
cmd
+
(
ATA_REG_FEATURE
<<
port
->
stepping
);
ioaddr
->
nsect_addr
=
cmd
+
(
ATA_REG_NSECT
<<
port
->
stepping
);
ioaddr
->
lbal_addr
=
cmd
+
(
ATA_REG_LBAL
<<
port
->
stepping
);
ioaddr
->
lbam_addr
=
cmd
+
(
ATA_REG_LBAM
<<
port
->
stepping
);
ioaddr
->
lbah_addr
=
cmd
+
(
ATA_REG_LBAH
<<
port
->
stepping
);
ioaddr
->
device_addr
=
cmd
+
(
ATA_REG_DEVICE
<<
port
->
stepping
);
ioaddr
->
status_addr
=
cmd
+
(
ATA_REG_STATUS
<<
port
->
stepping
);
ioaddr
->
command_addr
=
cmd
+
(
ATA_REG_CMD
<<
port
->
stepping
);
ioaddr
->
ctl_addr
=
base
+
port
->
ctrloffset
;
ioaddr
->
altstatus_addr
=
ioaddr
->
ctl_addr
;
ata_port_desc
(
ap
,
"cmd 0x%lx ctl 0x%lx"
,
info
->
raw_base
+
info
->
dataoffset
,
info
->
raw_base
+
info
->
ctrloffset
);
info
->
raw_base
+
port
->
dataoffset
,
info
->
raw_base
+
port
->
ctrloffset
);
if
(
info
->
raw_ioc_base
)
ata_port_desc
(
ap
,
"iocbase 0x%lx"
,
info
->
raw_ioc_base
);
...
...
@@ -441,7 +443,7 @@ static int __devinit pata_icside_register_v5(struct pata_icside_info *info)
info
->
nr_ports
=
1
;
info
->
port
[
0
]
=
&
pata_icside_portinfo_v5
;
info
->
raw_base
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
info
->
raw_base
=
ecard_resource_start
(
info
->
ec
,
ECARD_RES_MEMC
);
return
0
;
}
...
...
@@ -522,7 +524,7 @@ static int __devinit pata_icside_add_ports(struct pata_icside_info *info)
ap
->
flags
|=
ATA_FLAG_SLAVE_POSS
;
ap
->
ops
=
&
pata_icside_port_ops
;
pata_icside_setup_ioaddr
(
ap
,
info
->
base
,
info
->
port
[
i
]);
pata_icside_setup_ioaddr
(
ap
,
info
->
base
,
info
,
info
->
port
[
i
]);
}
return
ata_host_activate
(
host
,
ec
->
irq
,
ata_interrupt
,
0
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录