diff options
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 41ea7dbc1755..e828e172ccbf 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -136,6 +136,8 @@ enum { | |||
136 | ATA_TMOUT_BOOT_QUICK = 7 * HZ, /* hueristic */ | 136 | ATA_TMOUT_BOOT_QUICK = 7 * HZ, /* hueristic */ |
137 | ATA_TMOUT_CDB = 30 * HZ, | 137 | ATA_TMOUT_CDB = 30 * HZ, |
138 | ATA_TMOUT_CDB_QUICK = 5 * HZ, | 138 | ATA_TMOUT_CDB_QUICK = 5 * HZ, |
139 | ATA_TMOUT_INTERNAL = 30 * HZ, | ||
140 | ATA_TMOUT_INTERNAL_QUICK = 5 * HZ, | ||
139 | 141 | ||
140 | /* ATA bus states */ | 142 | /* ATA bus states */ |
141 | BUS_UNKNOWN = 0, | 143 | BUS_UNKNOWN = 0, |
@@ -195,7 +197,7 @@ struct ata_port; | |||
195 | struct ata_queued_cmd; | 197 | struct ata_queued_cmd; |
196 | 198 | ||
197 | /* typedefs */ | 199 | /* typedefs */ |
198 | 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); |
199 | 201 | ||
200 | struct ata_ioports { | 202 | struct ata_ioports { |
201 | unsigned long cmd_addr; | 203 | unsigned long cmd_addr; |
@@ -280,9 +282,9 @@ struct ata_queued_cmd { | |||
280 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ | 282 | /* DO NOT iterate over __sg manually, use ata_for_each_sg() */ |
281 | struct scatterlist *__sg; | 283 | struct scatterlist *__sg; |
282 | 284 | ||
283 | ata_qc_cb_t complete_fn; | 285 | unsigned int err_mask; |
284 | 286 | ||
285 | struct completion *waiting; | 287 | ata_qc_cb_t complete_fn; |
286 | 288 | ||
287 | void *private_data; | 289 | void *private_data; |
288 | }; | 290 | }; |
@@ -331,8 +333,6 @@ struct ata_port { | |||
331 | 333 | ||
332 | u8 ctl; /* cache of ATA control register */ | 334 | u8 ctl; /* cache of ATA control register */ |
333 | u8 last_ctl; /* Cache last written value */ | 335 | u8 last_ctl; /* Cache last written value */ |
334 | unsigned int bus_state; | ||
335 | unsigned int port_state; | ||
336 | unsigned int pio_mask; | 336 | unsigned int pio_mask; |
337 | unsigned int mwdma_mask; | 337 | unsigned int mwdma_mask; |
338 | unsigned int udma_mask; | 338 | unsigned int udma_mask; |
@@ -478,7 +478,7 @@ extern void ata_bmdma_start (struct ata_queued_cmd *qc); | |||
478 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); | 478 | extern void ata_bmdma_stop(struct ata_queued_cmd *qc); |
479 | extern u8 ata_bmdma_status(struct ata_port *ap); | 479 | extern u8 ata_bmdma_status(struct ata_port *ap); |
480 | extern void ata_bmdma_irq_clear(struct ata_port *ap); | 480 | extern void ata_bmdma_irq_clear(struct ata_port *ap); |
481 | 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); |
482 | extern void ata_eng_timeout(struct ata_port *ap); | 482 | extern void ata_eng_timeout(struct ata_port *ap); |
483 | extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, | 483 | extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, |
484 | void (*done)(struct scsi_cmnd *)); | 484 | void (*done)(struct scsi_cmnd *)); |
@@ -670,6 +670,7 @@ static inline void ata_qc_reinit(struct ata_queued_cmd *qc) | |||
670 | qc->cursect = qc->cursg = qc->cursg_ofs = 0; | 670 | qc->cursect = qc->cursg = qc->cursg_ofs = 0; |
671 | qc->nsect = 0; | 671 | qc->nsect = 0; |
672 | qc->nbytes = qc->curbytes = 0; | 672 | qc->nbytes = qc->curbytes = 0; |
673 | qc->err_mask = 0; | ||
673 | 674 | ||
674 | ata_tf_init(qc->ap, &qc->tf, qc->dev->devno); | 675 | ata_tf_init(qc->ap, &qc->tf, qc->dev->devno); |
675 | } | 676 | } |