diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-12-06 04:52:48 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-06 04:52:48 -0500 |
commit | 701db69d6647f61e4660c9102d7f2fd5dffc203d (patch) | |
tree | e3ebe94f72b4bbdfad608d77d7b11719022b8c9b /include | |
parent | 6cf5bcaaf9a92225017f7a3f1a630f6b5147ad4a (diff) | |
parent | fe79e683ccdb29c13b3e0d18507474b4e2d9aab6 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/libata.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 2929282beb..1be43be5b1 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -197,7 +197,7 @@ struct ata_port; | |||
197 | struct ata_queued_cmd; | 197 | struct ata_queued_cmd; |
198 | 198 | ||
199 | /* typedefs */ | 199 | /* typedefs */ |
200 | typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc, unsigned int err_mask); | 200 | typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc); |
201 | 201 | ||
202 | struct ata_ioports { | 202 | struct ata_ioports { |
203 | unsigned long cmd_addr; | 203 | unsigned long cmd_addr; |
@@ -282,6 +282,8 @@ struct ata_queued_cmd { | |||
282 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ | 282 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ |
283 | struct scatterlist *__sg; | 283 | struct scatterlist *__sg; |
284 | 284 | ||
285 | unsigned int err_mask; | ||
286 | |||
285 | ata_qc_cb_t complete_fn; | 287 | ata_qc_cb_t complete_fn; |
286 | 288 | ||
287 | struct completion *waiting; | 289 | struct completion *waiting; |
@@ -476,7 +478,7 @@ extern void ata_bmdma_start (struct ata_queued_cmd *qc); | |||
476 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); | 478 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); |
477 | extern u8 ata_bmdma_status(struct ata_port *ap); | 479 | extern u8 ata_bmdma_status(struct ata_port *ap); |
478 | extern void ata_bmdma_irq_clear(struct ata_port *ap); | 480 | extern void ata_bmdma_irq_clear(struct ata_port *ap); |
479 | extern void ata_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask); | 481 | extern void ata_qc_complete(struct ata_queued_cmd *qc); |
480 | extern void ata_eng_timeout(struct ata_port *ap); | 482 | extern void ata_eng_timeout(struct ata_port *ap); |
481 | extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, | 483 | extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, |
482 | void (*done)(struct scsi_cmnd *)); | 484 | void (*done)(struct scsi_cmnd *)); |
@@ -668,6 +670,7 @@ static inline void ata_qc_reinit(struct ata_queued_cmd *qc) | |||
668 | qc->cursect = qc->cursg = qc->cursg_ofs = 0; | 670 | qc->cursect = qc->cursg = qc->cursg_ofs = 0; |
669 | qc->nsect = 0; | 671 | qc->nsect = 0; |
670 | qc->nbytes = qc->curbytes = 0; | 672 | qc->nbytes = qc->curbytes = 0; |
673 | qc->err_mask = 0; | ||
671 | 674 | ||
672 | ata_tf_init(qc->ap, &qc->tf, qc->dev->devno); | 675 | ata_tf_init(qc->ap, &qc->tf, qc->dev->devno); |
673 | } | 676 | } |