diff options
author | Tejun Heo <htejun@gmail.com> | 2007-12-05 02:43:09 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-01-23 05:24:14 -0500 |
commit | 001102d7859be0e7f7b9f2d62b841f2c0f9c2640 (patch) | |
tree | 3ba29a129314307bafc5ac4e6cab49ee98eb8698 /include/linux | |
parent | 55dba3120fbcbea6800f9a18503d25f73212a347 (diff) |
libata: kill non-sg DMA interface
With atapi_request_sense() converted to use sg, there's no user of
non-sg interface. Kill non-sg interface.
* ATA_QCFLAG_SINGLE and ATA_QCFLAG_SG are removed. ATA_QCFLAG_DMAMAP
is used instead. (this way no LLD change is necessary)
* qc->buf_virt is removed.
* ata_sg_init_one() and ata_sg_setup_one() are removed.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libata.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 7fa96cb4f6db..acd90ad78417 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -219,9 +219,7 @@ enum { | |||
219 | 219 | ||
220 | /* struct ata_queued_cmd flags */ | 220 | /* struct ata_queued_cmd flags */ |
221 | ATA_QCFLAG_ACTIVE = (1 << 0), /* cmd not yet ack'd to scsi lyer */ | 221 | ATA_QCFLAG_ACTIVE = (1 << 0), /* cmd not yet ack'd to scsi lyer */ |
222 | ATA_QCFLAG_SG = (1 << 1), /* have s/g table? */ | 222 | ATA_QCFLAG_DMAMAP = (1 << 1), /* SG table is DMA mapped */ |
223 | ATA_QCFLAG_SINGLE = (1 << 2), /* no s/g, just a single buffer */ | ||
224 | ATA_QCFLAG_DMAMAP = ATA_QCFLAG_SG | ATA_QCFLAG_SINGLE, | ||
225 | ATA_QCFLAG_IO = (1 << 3), /* standard IO command */ | 223 | ATA_QCFLAG_IO = (1 << 3), /* standard IO command */ |
226 | ATA_QCFLAG_RESULT_TF = (1 << 4), /* result TF requested */ | 224 | ATA_QCFLAG_RESULT_TF = (1 << 4), /* result TF requested */ |
227 | ATA_QCFLAG_CLEAR_EXCL = (1 << 5), /* clear excl_link on completion */ | 225 | ATA_QCFLAG_CLEAR_EXCL = (1 << 5), /* clear excl_link on completion */ |
@@ -475,7 +473,6 @@ struct ata_queued_cmd { | |||
475 | 473 | ||
476 | struct scatterlist sgent; | 474 | struct scatterlist sgent; |
477 | struct scatterlist pad_sgent; | 475 | struct scatterlist pad_sgent; |
478 | void *buf_virt; | ||
479 | 476 | ||
480 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ | 477 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ |
481 | struct scatterlist *__sg; | 478 | struct scatterlist *__sg; |
@@ -891,8 +888,6 @@ extern void ata_dumb_qc_prep(struct ata_queued_cmd *qc); | |||
891 | extern void ata_qc_prep(struct ata_queued_cmd *qc); | 888 | extern void ata_qc_prep(struct ata_queued_cmd *qc); |
892 | extern void ata_noop_qc_prep(struct ata_queued_cmd *qc); | 889 | extern void ata_noop_qc_prep(struct ata_queued_cmd *qc); |
893 | extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc); | 890 | extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc); |
894 | extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, | ||
895 | unsigned int buflen); | ||
896 | extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, | 891 | extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, |
897 | unsigned int n_elem); | 892 | unsigned int n_elem); |
898 | extern unsigned int ata_dev_classify(const struct ata_taskfile *tf); | 893 | extern unsigned int ata_dev_classify(const struct ata_taskfile *tf); |