|
@@ -159,8 +159,8 @@ void ide_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
|
|
/* be sure we're looking at the low order bits */
|
|
/* be sure we're looking at the low order bits */
|
|
tf_outb(ATA_DEVCTL_OBS, io_ports->ctl_addr);
|
|
tf_outb(ATA_DEVCTL_OBS, io_ports->ctl_addr);
|
|
|
|
|
|
- if (cmd->tf_flags & IDE_TFLAG_IN_FEATURE)
|
|
|
|
- tf->feature = tf_inb(io_ports->feature_addr);
|
|
|
|
|
|
+ if (cmd->tf_flags & IDE_TFLAG_IN_ERROR)
|
|
|
|
+ tf->error = tf_inb(io_ports->feature_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_NSECT)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_NSECT)
|
|
tf->nsect = tf_inb(io_ports->nsect_addr);
|
|
tf->nsect = tf_inb(io_ports->nsect_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_LBAL)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_LBAL)
|
|
@@ -175,16 +175,16 @@ void ide_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
|
|
if (cmd->tf_flags & IDE_TFLAG_LBA48) {
|
|
if (cmd->tf_flags & IDE_TFLAG_LBA48) {
|
|
tf_outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr);
|
|
tf_outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr);
|
|
|
|
|
|
- if (cmd->tf_flags & IDE_TFLAG_IN_HOB_FEATURE)
|
|
|
|
- tf->hob_feature = tf_inb(io_ports->feature_addr);
|
|
|
|
|
|
+ if (cmd->tf_flags & IDE_TFLAG_IN_HOB_ERROR)
|
|
|
|
+ tf->hob_error = tf_inb(io_ports->feature_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_NSECT)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_NSECT)
|
|
- tf->hob_nsect = tf_inb(io_ports->nsect_addr);
|
|
|
|
|
|
+ tf->hob_nsect = tf_inb(io_ports->nsect_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAL)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAL)
|
|
- tf->hob_lbal = tf_inb(io_ports->lbal_addr);
|
|
|
|
|
|
+ tf->hob_lbal = tf_inb(io_ports->lbal_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAM)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAM)
|
|
- tf->hob_lbam = tf_inb(io_ports->lbam_addr);
|
|
|
|
|
|
+ tf->hob_lbam = tf_inb(io_ports->lbam_addr);
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAH)
|
|
if (cmd->tf_flags & IDE_TFLAG_IN_HOB_LBAH)
|
|
- tf->hob_lbah = tf_inb(io_ports->lbah_addr);
|
|
|
|
|
|
+ tf->hob_lbah = tf_inb(io_ports->lbah_addr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(ide_tf_read);
|
|
EXPORT_SYMBOL_GPL(ide_tf_read);
|