Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
09e1a022
Commit
09e1a022
authored
Sep 13, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata] remove distinction between MMIO/PIO helper functions
Prepare for use of new generic iomap API.
parent
8a0b3ef8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
128 additions
and
93 deletions
+128
-93
drivers/scsi/ata_piix.c
drivers/scsi/ata_piix.c
+12
-12
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+71
-30
drivers/scsi/sata_nv.c
drivers/scsi/sata_nv.c
+6
-6
drivers/scsi/sata_promise.c
drivers/scsi/sata_promise.c
+4
-4
drivers/scsi/sata_sil.c
drivers/scsi/sata_sil.c
+6
-6
drivers/scsi/sata_sis.c
drivers/scsi/sata_sis.c
+6
-6
drivers/scsi/sata_svw.c
drivers/scsi/sata_svw.c
+3
-3
drivers/scsi/sata_sx4.c
drivers/scsi/sata_sx4.c
+4
-4
drivers/scsi/sata_via.c
drivers/scsi/sata_via.c
+6
-6
drivers/scsi/sata_vsc.c
drivers/scsi/sata_vsc.c
+4
-4
include/linux/libata.h
include/linux/libata.h
+6
-12
No files found.
drivers/scsi/ata_piix.c
View file @
09e1a022
...
...
@@ -125,15 +125,15 @@ static struct ata_port_operations piix_pata_ops = {
.
set_piomode
=
piix_set_piomode
,
.
set_dmamode
=
piix_set_dmamode
,
.
tf_load
=
ata_tf_load
_pio
,
.
tf_read
=
ata_tf_read
_pio
,
.
check_status
=
ata_check_status
_pio
,
.
exec_command
=
ata_exec_command
_pio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
piix_pata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_pio
,
.
bmdma_start
=
ata_bmdma_start
_pio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
...
...
@@ -149,15 +149,15 @@ static struct ata_port_operations piix_pata_ops = {
static
struct
ata_port_operations
piix_sata_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
ata_tf_load
_pio
,
.
tf_read
=
ata_tf_read
_pio
,
.
check_status
=
ata_check_status
_pio
,
.
exec_command
=
ata_exec_command
_pio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
piix_sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_pio
,
.
bmdma_start
=
ata_bmdma_start
_pio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
...
...
drivers/scsi/libata-core.c
View file @
09e1a022
...
...
@@ -78,7 +78,7 @@ MODULE_LICENSE("GPL");
* Inherited from caller.
*/
void
ata_tf_load_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_tf_load_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
struct
ata_ioports
*
ioaddr
=
&
ap
->
ioaddr
;
unsigned
int
is_addr
=
tf
->
flags
&
ATA_TFLAG_ISADDR
;
...
...
@@ -136,7 +136,7 @@ void ata_tf_load_pio(struct ata_port *ap, struct ata_taskfile *tf)
* Inherited from caller.
*/
void
ata_tf_load_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_tf_load_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
struct
ata_ioports
*
ioaddr
=
&
ap
->
ioaddr
;
unsigned
int
is_addr
=
tf
->
flags
&
ATA_TFLAG_ISADDR
;
...
...
@@ -183,6 +183,14 @@ void ata_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf)
ata_wait_idle
(
ap
);
}
void
ata_tf_load
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
if
(
ap
->
flags
&
ATA_FLAG_MMIO
)
ata_tf_load_mmio
(
ap
,
tf
);
else
ata_tf_load_pio
(
ap
,
tf
);
}
/**
* ata_exec_command_pio - issue ATA command to host controller
* @ap: port to which command is being issued
...
...
@@ -195,7 +203,7 @@ void ata_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf)
* spin_lock_irqsave(host_set lock)
*/
void
ata_exec_command_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_exec_command_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
DPRINTK
(
"ata%u: cmd 0x%X
\n
"
,
ap
->
id
,
tf
->
command
);
...
...
@@ -216,7 +224,7 @@ void ata_exec_command_pio(struct ata_port *ap, struct ata_taskfile *tf)
* spin_lock_irqsave(host_set lock)
*/
void
ata_exec_command_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_exec_command_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
DPRINTK
(
"ata%u: cmd 0x%X
\n
"
,
ap
->
id
,
tf
->
command
);
...
...
@@ -224,6 +232,14 @@ void ata_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf)
ata_pause
(
ap
);
}
void
ata_exec_command
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
if
(
ap
->
flags
&
ATA_FLAG_MMIO
)
ata_exec_command_mmio
(
ap
,
tf
);
else
ata_exec_command_pio
(
ap
,
tf
);
}
/**
* ata_exec - issue ATA command to host controller
* @ap: port to which command is being issued
...
...
@@ -297,7 +313,7 @@ void ata_tf_to_host_nolock(struct ata_port *ap, struct ata_taskfile *tf)
* Inherited from caller.
*/
void
ata_tf_read_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_tf_read_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
struct
ata_ioports
*
ioaddr
=
&
ap
->
ioaddr
;
...
...
@@ -329,7 +345,7 @@ void ata_tf_read_pio(struct ata_port *ap, struct ata_taskfile *tf)
* Inherited from caller.
*/
void
ata_tf_read_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
static
void
ata_tf_read_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
struct
ata_ioports
*
ioaddr
=
&
ap
->
ioaddr
;
...
...
@@ -349,6 +365,14 @@ void ata_tf_read_mmio(struct ata_port *ap, struct ata_taskfile *tf)
}
}
void
ata_tf_read
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
)
{
if
(
ap
->
flags
&
ATA_FLAG_MMIO
)
ata_tf_read_mmio
(
ap
,
tf
);
else
ata_tf_read_pio
(
ap
,
tf
);
}
/**
* ata_check_status_pio - Read device status reg & clear interrupt
* @ap: port where the device is
...
...
@@ -360,7 +384,7 @@ void ata_tf_read_mmio(struct ata_port *ap, struct ata_taskfile *tf)
* LOCKING:
* Inherited from caller.
*/
u8
ata_check_status_pio
(
struct
ata_port
*
ap
)
static
u8
ata_check_status_pio
(
struct
ata_port
*
ap
)
{
return
inb
(
ap
->
ioaddr
.
status_addr
);
}
...
...
@@ -376,11 +400,18 @@ u8 ata_check_status_pio(struct ata_port *ap)
* LOCKING:
* Inherited from caller.
*/
u8
ata_check_status_mmio
(
struct
ata_port
*
ap
)
static
u8
ata_check_status_mmio
(
struct
ata_port
*
ap
)
{
return
readb
((
void
__iomem
*
)
ap
->
ioaddr
.
status_addr
);
}
u8
ata_check_status
(
struct
ata_port
*
ap
)
{
if
(
ap
->
flags
&
ATA_FLAG_MMIO
)
return
ata_check_status_mmio
(
ap
);
return
ata_check_status_pio
(
ap
);
}
/**
* ata_tf_to_fis - Convert ATA taskfile to SATA FIS structure
* @tf: Taskfile to convert
...
...
@@ -671,7 +702,7 @@ static unsigned int ata_mmio_devchk(struct ata_port *ap,
}
/**
* ata_dev
_dev
chk - PATA device presence detection
* ata_devchk - PATA device presence detection
* @ap: ATA channel to examine
* @device: Device to examine (starting at zero)
*
...
...
@@ -683,7 +714,7 @@ static unsigned int ata_mmio_devchk(struct ata_port *ap,
* caller.
*/
static
unsigned
int
ata_dev
_dev
chk
(
struct
ata_port
*
ap
,
static
unsigned
int
ata_devchk
(
struct
ata_port
*
ap
,
unsigned
int
device
)
{
if
(
ap
->
flags
&
ATA_FLAG_MMIO
)
...
...
@@ -1439,13 +1470,13 @@ static void ata_bus_post_reset(struct ata_port *ap, unsigned int devmask)
unsigned
int
dev1
=
devmask
&
(
1
<<
1
);
unsigned
long
timeout
;
/* if device 0 was found in ata_dev
_dev
chk, wait for its
/* if device 0 was found in ata_devchk, wait for its
* BSY bit to clear
*/
if
(
dev0
)
ata_busy_sleep
(
ap
,
ATA_TMOUT_BOOT_QUICK
,
ATA_TMOUT_BOOT
);
/* if device 1 was found in ata_dev
_dev
chk, wait for
/* if device 1 was found in ata_devchk, wait for
* register access, then wait for BSY to clear
*/
timeout
=
jiffies
+
ATA_TMOUT_BOOT
;
...
...
@@ -1580,9 +1611,9 @@ void ata_bus_reset(struct ata_port *ap)
if
(
ap
->
flags
&
ATA_FLAG_SATA_RESET
)
dev0
=
1
;
else
{
dev0
=
ata_dev
_dev
chk
(
ap
,
0
);
dev0
=
ata_devchk
(
ap
,
0
);
if
(
slave_possible
)
dev1
=
ata_dev
_dev
chk
(
ap
,
1
);
dev1
=
ata_devchk
(
ap
,
1
);
}
if
(
dev0
)
...
...
@@ -2613,7 +2644,7 @@ int ata_qc_issue_prot(struct ata_queued_cmd *qc)
* spin_lock_irqsave(host_set lock)
*/
void
ata_bmdma_setup_mmio
(
struct
ata_queued_cmd
*
qc
)
static
void
ata_bmdma_setup_mmio
(
struct
ata_queued_cmd
*
qc
)
{
struct
ata_port
*
ap
=
qc
->
ap
;
unsigned
int
rw
=
(
qc
->
tf
.
flags
&
ATA_TFLAG_WRITE
);
...
...
@@ -2643,7 +2674,7 @@ void ata_bmdma_setup_mmio (struct ata_queued_cmd *qc)
* spin_lock_irqsave(host_set lock)
*/
void
ata_bmdma_start_mmio
(
struct
ata_queued_cmd
*
qc
)
static
void
ata_bmdma_start_mmio
(
struct
ata_queued_cmd
*
qc
)
{
struct
ata_port
*
ap
=
qc
->
ap
;
void
__iomem
*
mmio
=
(
void
__iomem
*
)
ap
->
ioaddr
.
bmdma_addr
;
...
...
@@ -2674,7 +2705,7 @@ void ata_bmdma_start_mmio (struct ata_queued_cmd *qc)
* spin_lock_irqsave(host_set lock)
*/
void
ata_bmdma_setup_pio
(
struct
ata_queued_cmd
*
qc
)
static
void
ata_bmdma_setup_pio
(
struct
ata_queued_cmd
*
qc
)
{
struct
ata_port
*
ap
=
qc
->
ap
;
unsigned
int
rw
=
(
qc
->
tf
.
flags
&
ATA_TFLAG_WRITE
);
...
...
@@ -2702,7 +2733,7 @@ void ata_bmdma_setup_pio (struct ata_queued_cmd *qc)
* spin_lock_irqsave(host_set lock)
*/
void
ata_bmdma_start_pio
(
struct
ata_queued_cmd
*
qc
)
static
void
ata_bmdma_start_pio
(
struct
ata_queued_cmd
*
qc
)
{
struct
ata_port
*
ap
=
qc
->
ap
;
u8
dmactl
;
...
...
@@ -2713,6 +2744,22 @@ void ata_bmdma_start_pio (struct ata_queued_cmd *qc)
ap
->
ioaddr
.
bmdma_addr
+
ATA_DMA_CMD
);
}
void
ata_bmdma_start
(
struct
ata_queued_cmd
*
qc
)
{
if
(
qc
->
ap
->
flags
&
ATA_FLAG_MMIO
)
ata_bmdma_start_mmio
(
qc
);
else
ata_bmdma_start_pio
(
qc
);
}
void
ata_bmdma_setup
(
struct
ata_queued_cmd
*
qc
)
{
if
(
qc
->
ap
->
flags
&
ATA_FLAG_MMIO
)
ata_bmdma_setup_mmio
(
qc
);
else
ata_bmdma_setup_pio
(
qc
);
}
void
ata_bmdma_irq_clear
(
struct
ata_port
*
ap
)
{
ata_bmdma_ack_irq
(
ap
);
...
...
@@ -3535,24 +3582,18 @@ EXPORT_SYMBOL_GPL(ata_sg_init_one);
EXPORT_SYMBOL_GPL
(
ata_qc_complete
);
EXPORT_SYMBOL_GPL
(
ata_qc_issue_prot
);
EXPORT_SYMBOL_GPL
(
ata_eng_timeout
);
EXPORT_SYMBOL_GPL
(
ata_tf_load_pio
);
EXPORT_SYMBOL_GPL
(
ata_tf_load_mmio
);
EXPORT_SYMBOL_GPL
(
ata_tf_read_pio
);
EXPORT_SYMBOL_GPL
(
ata_tf_read_mmio
);
EXPORT_SYMBOL_GPL
(
ata_tf_load
);
EXPORT_SYMBOL_GPL
(
ata_tf_read
);
EXPORT_SYMBOL_GPL
(
ata_tf_to_fis
);
EXPORT_SYMBOL_GPL
(
ata_tf_from_fis
);
EXPORT_SYMBOL_GPL
(
ata_check_status_pio
);
EXPORT_SYMBOL_GPL
(
ata_check_status_mmio
);
EXPORT_SYMBOL_GPL
(
ata_exec_command_pio
);
EXPORT_SYMBOL_GPL
(
ata_exec_command_mmio
);
EXPORT_SYMBOL_GPL
(
ata_check_status
);
EXPORT_SYMBOL_GPL
(
ata_exec_command
);
EXPORT_SYMBOL_GPL
(
ata_port_start
);
EXPORT_SYMBOL_GPL
(
ata_port_stop
);
EXPORT_SYMBOL_GPL
(
ata_interrupt
);
EXPORT_SYMBOL_GPL
(
ata_qc_prep
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_setup_pio
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_start_pio
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_setup_mmio
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_start_mmio
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_setup
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_start
);
EXPORT_SYMBOL_GPL
(
ata_bmdma_irq_clear
);
EXPORT_SYMBOL_GPL
(
ata_port_probe
);
EXPORT_SYMBOL_GPL
(
sata_phy_reset
);
...
...
drivers/scsi/sata_nv.c
View file @
09e1a022
...
...
@@ -200,13 +200,13 @@ static Scsi_Host_Template nv_sht = {
static
struct
ata_port_operations
nv_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
ata_tf_load
_pio
,
.
tf_read
=
ata_tf_read
_pio
,
.
exec_command
=
ata_exec_command
_pio
,
.
check_status
=
ata_check_status
_pio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
exec_command
=
ata_exec_command
,
.
check_status
=
ata_check_status
,
.
phy_reset
=
sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_pio
,
.
bmdma_start
=
ata_bmdma_start
_pio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
.
eng_timeout
=
ata_eng_timeout
,
...
...
drivers/scsi/sata_promise.c
View file @
09e1a022
...
...
@@ -107,8 +107,8 @@ static Scsi_Host_Template pdc_sata_sht = {
static
struct
ata_port_operations
pdc_sata_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
pdc_tf_load_mmio
,
.
tf_read
=
ata_tf_read
_mmio
,
.
check_status
=
ata_check_status
_mmio
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
pdc_exec_command_mmio
,
.
phy_reset
=
pdc_phy_reset
,
.
qc_prep
=
pdc_qc_prep
,
...
...
@@ -468,7 +468,7 @@ static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf)
{
WARN_ON
(
tf
->
protocol
==
ATA_PROT_DMA
||
tf
->
protocol
==
ATA_PROT_NODATA
);
ata_tf_load
_mmio
(
ap
,
tf
);
ata_tf_load
(
ap
,
tf
);
}
...
...
@@ -476,7 +476,7 @@ static void pdc_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf)
{
WARN_ON
(
tf
->
protocol
==
ATA_PROT_DMA
||
tf
->
protocol
==
ATA_PROT_NODATA
);
ata_exec_command
_mmio
(
ap
,
tf
);
ata_exec_command
(
ap
,
tf
);
}
...
...
drivers/scsi/sata_sil.c
View file @
09e1a022
...
...
@@ -125,14 +125,14 @@ static Scsi_Host_Template sil_sht = {
static
struct
ata_port_operations
sil_ops
=
{
.
port_disable
=
ata_port_disable
,
.
dev_config
=
sil_dev_config
,
.
tf_load
=
ata_tf_load
_mmio
,
.
tf_read
=
ata_tf_read
_mmio
,
.
check_status
=
ata_check_status
_mmio
,
.
exec_command
=
ata_exec_command
_mmio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
sata_phy_reset
,
.
post_set_mode
=
sil_post_set_mode
,
.
bmdma_setup
=
ata_bmdma_setup
_mmio
,
.
bmdma_start
=
ata_bmdma_start
_mmio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
.
eng_timeout
=
ata_eng_timeout
,
...
...
drivers/scsi/sata_sis.c
View file @
09e1a022
...
...
@@ -94,13 +94,13 @@ static Scsi_Host_Template sis_sht = {
static
struct
ata_port_operations
sis_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
ata_tf_load
_pio
,
.
tf_read
=
ata_tf_read
_pio
,
.
check_status
=
ata_check_status
_pio
,
.
exec_command
=
ata_exec_command
_pio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_pio
,
.
bmdma_start
=
ata_bmdma_start
_pio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
.
eng_timeout
=
ata_eng_timeout
,
...
...
drivers/scsi/sata_svw.c
View file @
09e1a022
...
...
@@ -230,10 +230,10 @@ static struct ata_port_operations k2_sata_ops = {
.
tf_load
=
k2_sata_tf_load
,
.
tf_read
=
k2_sata_tf_read
,
.
check_status
=
k2_stat_check_status
,
.
exec_command
=
ata_exec_command
_mmio
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_mmio
,
.
bmdma_start
=
ata_bmdma_start
_mmio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
.
eng_timeout
=
ata_eng_timeout
,
...
...
drivers/scsi/sata_sx4.c
View file @
09e1a022
...
...
@@ -193,8 +193,8 @@ static Scsi_Host_Template pdc_sata_sht = {
static
struct
ata_port_operations
pdc_20621_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
pdc_tf_load_mmio
,
.
tf_read
=
ata_tf_read
_mmio
,
.
check_status
=
ata_check_status
_mmio
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
pdc_exec_command_mmio
,
.
phy_reset
=
pdc_20621_phy_reset
,
.
qc_prep
=
pdc20621_qc_prep
,
...
...
@@ -887,7 +887,7 @@ static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf)
{
WARN_ON
(
tf
->
protocol
==
ATA_PROT_DMA
||
tf
->
protocol
==
ATA_PROT_NODATA
);
ata_tf_load
_mmio
(
ap
,
tf
);
ata_tf_load
(
ap
,
tf
);
}
...
...
@@ -895,7 +895,7 @@ static void pdc_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf)
{
WARN_ON
(
tf
->
protocol
==
ATA_PROT_DMA
||
tf
->
protocol
==
ATA_PROT_NODATA
);
ata_exec_command
_mmio
(
ap
,
tf
);
ata_exec_command
(
ap
,
tf
);
}
...
...
drivers/scsi/sata_via.c
View file @
09e1a022
...
...
@@ -100,15 +100,15 @@ static Scsi_Host_Template svia_sht = {
static
struct
ata_port_operations
svia_sata_ops
=
{
.
port_disable
=
ata_port_disable
,
.
tf_load
=
ata_tf_load
_pio
,
.
tf_read
=
ata_tf_read
_pio
,
.
check_status
=
ata_check_status
_pio
,
.
exec_command
=
ata_exec_command
_pio
,
.
tf_load
=
ata_tf_load
,
.
tf_read
=
ata_tf_read
,
.
check_status
=
ata_check_status
,
.
exec_command
=
ata_exec_command
,
.
phy_reset
=
sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_pio
,
.
bmdma_start
=
ata_bmdma_start
_pio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
...
...
drivers/scsi/sata_vsc.c
View file @
09e1a022
...
...
@@ -211,11 +211,11 @@ static struct ata_port_operations vsc_sata_ops = {
.
port_disable
=
ata_port_disable
,
.
tf_load
=
vsc_sata_tf_load
,
.
tf_read
=
vsc_sata_tf_read
,
.
exec_command
=
ata_exec_command
_mmio
,
.
check_status
=
ata_check_status
_mmio
,
.
exec_command
=
ata_exec_command
,
.
check_status
=
ata_check_status
,
.
phy_reset
=
sata_phy_reset
,
.
bmdma_setup
=
ata_bmdma_setup
_mmio
,
.
bmdma_start
=
ata_bmdma_start
_mmio
,
.
bmdma_setup
=
ata_bmdma_setup
,
.
bmdma_start
=
ata_bmdma_start
,
.
qc_prep
=
ata_qc_prep
,
.
qc_issue
=
ata_qc_issue_prot
,
.
eng_timeout
=
ata_eng_timeout
,
...
...
include/linux/libata.h
View file @
09e1a022
...
...
@@ -379,16 +379,12 @@ extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc
/*
* Default driver ops implementations
*/
extern
void
ata_tf_load_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_load_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_read_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_read_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_load
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_read
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_tf_to_fis
(
struct
ata_taskfile
*
tf
,
u8
*
fis
,
u8
pmp
);
extern
void
ata_tf_from_fis
(
u8
*
fis
,
struct
ata_taskfile
*
tf
);
extern
u8
ata_check_status_pio
(
struct
ata_port
*
ap
);
extern
u8
ata_check_status_mmio
(
struct
ata_port
*
ap
);
extern
void
ata_exec_command_pio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
void
ata_exec_command_mmio
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
u8
ata_check_status
(
struct
ata_port
*
ap
);
extern
void
ata_exec_command
(
struct
ata_port
*
ap
,
struct
ata_taskfile
*
tf
);
extern
int
ata_port_start
(
struct
ata_port
*
ap
);
extern
void
ata_port_stop
(
struct
ata_port
*
ap
);
extern
irqreturn_t
ata_interrupt
(
int
irq
,
void
*
dev_instance
,
struct
pt_regs
*
regs
);
...
...
@@ -400,10 +396,8 @@ extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
unsigned
int
n_elem
);
extern
void
ata_dev_id_string
(
struct
ata_device
*
dev
,
unsigned
char
*
s
,
unsigned
int
ofs
,
unsigned
int
len
);
extern
void
ata_bmdma_setup_mmio
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_start_mmio
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_setup_pio
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_start_pio
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_setup
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_start
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_irq_clear
(
struct
ata_port
*
ap
);
extern
int
pci_test_config_bits
(
struct
pci_dev
*
pdev
,
struct
pci_bits
*
bits
);
extern
void
ata_qc_complete
(
struct
ata_queued_cmd
*
qc
,
u8
drv_stat
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment