Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a8e4f435
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
7
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看板
提交
a8e4f435
编写于
8月 29, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge refs/heads/upstream from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
上级
8bc2bee2
502c7f1d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
43 addition
and
7 deletion
+43
-7
drivers/scsi/sata_promise.c
drivers/scsi/sata_promise.c
+43
-7
未找到文件。
drivers/scsi/sata_promise.c
浏览文件 @
a8e4f435
...
...
@@ -84,7 +84,8 @@ static irqreturn_t pdc_interrupt (int irq, void *dev_instance, struct pt_regs *r
static
void
pdc_eng_timeout
(
struct
ata_port
*
ap
);
static
int
pdc_port_start
(
struct
ata_port
*
ap
);
static
void
pdc_port_stop
(
struct
ata_port
*
ap
);
static
void
pdc_phy_reset
(
struct
ata_port
*
ap
);
static
void
pdc_pata_phy_reset
(
struct
ata_port
*
ap
);
static
void
pdc_sata_phy_reset
(
struct
ata_port
*
ap
);
static
void
pdc_qc_prep
(
struct
ata_queued_cmd
*
qc
);
static
void
pdc_tf_load_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
static
void
pdc_exec_command_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
...
...
@@ -111,19 +112,22 @@ static Scsi_Host_Template pdc_ata_sht = {
.
ordered_flush
=
1
,
};
static
struct
ata_port_operations
pdc_ata_ops
=
{
static
struct
ata_port_operations
pdc_
s
ata_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
pdc_tf_load_mmio
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
pdc_exec_command_mmio
,
.
dev_select
=
ata_std_dev_select
,
.
phy_reset
=
pdc_phy_reset
,
.
phy_reset
=
pdc_sata_phy_reset
,
.
qc_prep
=
pdc_qc_prep
,
.
qc_issue
=
pdc_qc_issue_prot
,
.
eng_timeout
=
pdc_eng_timeout
,
.
irq_handler
=
pdc_interrupt
,
.
irq_clear
=
pdc_irq_clear
,
.
scr_read
=
pdc_sata_scr_read
,
.
scr_write
=
pdc_sata_scr_write
,
.
port_start
=
pdc_port_start
,
...
...
@@ -131,6 +135,27 @@ static struct ata_port_operations pdc_ata_ops = {
.
host_stop
=
ata_host_stop
,
};
static
struct
ata_port_operations
pdc_pata_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
pdc_tf_load_mmio
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
pdc_exec_command_mmio
,
.
dev_select
=
ata_std_dev_select
,
.
phy_reset
=
pdc_pata_phy_reset
,
.
qc_prep
=
pdc_qc_prep
,
.
qc_issue
=
pdc_qc_issue_prot
,
.
eng_timeout
=
pdc_eng_timeout
,
.
irq_handler
=
pdc_interrupt
,
.
irq_clear
=
pdc_irq_clear
,
.
port_start
=
pdc_port_start
,
.
port_stop
=
pdc_port_stop
,
.
host_stop
=
ata_host_stop
,
};
static
struct
ata_port_info
pdc_port_info
[]
=
{
/* board_2037x */
{
...
...
@@ -140,7 +165,7 @@ static struct ata_port_info pdc_port_info[] = {
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
port_ops
=
&
pdc_ata_ops
,
.
port_ops
=
&
pdc_
s
ata_ops
,
},
/* board_20319 */
...
...
@@ -151,7 +176,7 @@ static struct ata_port_info pdc_port_info[] = {
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
port_ops
=
&
pdc_ata_ops
,
.
port_ops
=
&
pdc_
s
ata_ops
,
},
/* board_20619 */
...
...
@@ -162,7 +187,7 @@ static struct ata_port_info pdc_port_info[] = {
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
port_ops
=
&
pdc_ata_ops
,
.
port_ops
=
&
pdc_
p
ata_ops
,
},
};
...
...
@@ -277,12 +302,23 @@ static void pdc_reset_port(struct ata_port *ap)
readl
(
mmio
);
/* flush */
}
static
void
pdc_phy_reset
(
struct
ata_port
*
ap
)
static
void
pdc_
sata_
phy_reset
(
struct
ata_port
*
ap
)
{
pdc_reset_port
(
ap
);
sata_phy_reset
(
ap
);
}
static
void
pdc_pata_phy_reset
(
struct
ata_port
*
ap
)
{
/* FIXME: add cable detect. Don't assume 40-pin cable */
ap
->
cbl
=
ATA_CBL_PATA40
;
ap
->
udma_mask
&=
ATA_UDMA_MASK_40C
;
pdc_reset_port
(
ap
);
ata_port_probe
(
ap
);
ata_bus_reset
(
ap
);
}
static
u32
pdc_sata_scr_read
(
struct
ata_port
*
ap
,
unsigned
int
sc_reg
)
{
if
(
sc_reg
>
SCR_CONTROL
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录