aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-04-07 09:47:21 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 15:44:25 -0400
commit48515f6c006c2a9d7b624ee8ad068018c2d3fe0e (patch)
tree0ade033552ccb297ac7736a6b2d77dd249be4eb8 /include/linux/libata.h
parent127102aea2ea9ec4e9ca233e2b1a75c8d3b058c4 (diff)
libata: separate PMP support code from core code
Most of PMP support code is already in libata-pmp.c. All that are in libata-core.c are sata_pmp_port_ops and EXPORTs. Move them to libata-pmp.c. Also, collect PMP related prototypes and declarations in header files and move them right above of SFF stuff. This change is to make PMP support optional. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index db77b90003fd..eb86d6f39635 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1027,12 +1027,6 @@ static inline int ata_acpi_cbl_80wire(struct ata_port *ap,
1027#endif 1027#endif
1028 1028
1029/* 1029/*
1030 * PMP - drivers/ata/libata-pmp.c
1031 */
1032extern int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc);
1033extern void sata_pmp_error_handler(struct ata_port *ap);
1034
1035/*
1036 * EH - drivers/ata/libata-eh.c 1030 * EH - drivers/ata/libata-eh.c
1037 */ 1031 */
1038extern void ata_port_schedule_eh(struct ata_port *ap); 1032extern void ata_port_schedule_eh(struct ata_port *ap);
@@ -1075,7 +1069,6 @@ extern void ata_std_error_handler(struct ata_port *ap);
1075 */ 1069 */
1076extern const struct ata_port_operations ata_base_port_ops; 1070extern const struct ata_port_operations ata_base_port_ops;
1077extern const struct ata_port_operations sata_port_ops; 1071extern const struct ata_port_operations sata_port_ops;
1078extern const struct ata_port_operations sata_pmp_port_ops;
1079 1072
1080#define ATA_BASE_SHT(drv_name) \ 1073#define ATA_BASE_SHT(drv_name) \
1081 .module = THIS_MODULE, \ 1074 .module = THIS_MODULE, \
@@ -1352,6 +1345,16 @@ static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host)
1352 return *(struct ata_port **)&host->hostdata[0]; 1345 return *(struct ata_port **)&host->hostdata[0];
1353} 1346}
1354 1347
1348
1349/**************************************************************************
1350 * PMP - drivers/ata/libata-pmp.c
1351 */
1352extern const struct ata_port_operations sata_pmp_port_ops;
1353
1354extern int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc);
1355extern void sata_pmp_error_handler(struct ata_port *ap);
1356
1357
1355/************************************************************************** 1358/**************************************************************************
1356 * SFF - drivers/ata/libata-sff.c 1359 * SFF - drivers/ata/libata-sff.c
1357 */ 1360 */