aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-01-04 19:32:33 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-04 19:32:33 -0500
commit1cb9e8e01d2c73184e2074f37cd155b3c4fdaae6 (patch)
tree3c8d1716cd53ed77a935036090323a1ae9a7963b /include/linux
parentd779188d2baf436e67fe8816fca2ef53d246900f (diff)
parenta18ceba7b40e24a9da87249bd74f16ea5abd6894 (diff)
Merge branch 'upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/libata.h13
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;
195struct ata_queued_cmd; 197struct ata_queued_cmd;
196 198
197/* typedefs */ 199/* typedefs */
198typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc, unsigned int err_mask); 200typedef int (*ata_qc_cb_t) (struct ata_queued_cmd *qc);
199 201
200struct ata_ioports { 202struct 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);
478extern void ata_bmdma_stop(struct ata_queued_cmd *qc); 478extern void ata_bmdma_stop(struct ata_queued_cmd *qc);
479extern u8 ata_bmdma_status(struct ata_port *ap); 479extern u8 ata_bmdma_status(struct ata_port *ap);
480extern void ata_bmdma_irq_clear(struct ata_port *ap); 480extern void ata_bmdma_irq_clear(struct ata_port *ap);
481extern void ata_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask); 481extern void ata_qc_complete(struct ata_queued_cmd *qc);
482extern void ata_eng_timeout(struct ata_port *ap); 482extern void ata_eng_timeout(struct ata_port *ap);
483extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, 483extern 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}