diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-04-08 08:13:02 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-04-08 08:13:02 -0400 |
commit | 745483f10c6cefb303007c6873e2bfce54efa8ed (patch) | |
tree | 9dc9dca95f017edf279bf3e2d5ec3d07481e75da /drivers/ide/ns87415.c | |
parent | 60f85019c6c8c1aebf3485a313e0da094bc95d07 (diff) |
ide: simplify 'struct ide_taskfile'
Make 'struct ide_taskfile' cover only 8 register values and thus put two such
fields ('tf' and 'hob') into 'struct ide_cmd', dropping unnecessary 'tf_array'
field from it.
This required changing the prototype of ide_get_lba_addr() and ide_tf_dump().
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
[bart: fix setting of ATA_LBA bit for LBA48 commands in __ide_do_rw_disk()]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ns87415.c')
-rw-r--r-- | drivers/ide/ns87415.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/ide/ns87415.c b/drivers/ide/ns87415.c index 0208dd35c1a3..3ab5bb196d2f 100644 --- a/drivers/ide/ns87415.c +++ b/drivers/ide/ns87415.c | |||
@@ -86,18 +86,19 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
86 | if (cmd->tf_flags & IDE_TFLAG_LBA48) { | 86 | if (cmd->tf_flags & IDE_TFLAG_LBA48) { |
87 | outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr); | 87 | outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr); |
88 | 88 | ||
89 | tf = &cmd->hob; | ||
89 | valid = cmd->valid.in.hob; | 90 | valid = cmd->valid.in.hob; |
90 | 91 | ||
91 | if (valid & IDE_VALID_ERROR) | 92 | if (valid & IDE_VALID_ERROR) |
92 | tf->hob_error = inb(io_ports->feature_addr); | 93 | tf->error = inb(io_ports->feature_addr); |
93 | if (valid & IDE_VALID_NSECT) | 94 | if (valid & IDE_VALID_NSECT) |
94 | tf->hob_nsect = inb(io_ports->nsect_addr); | 95 | tf->nsect = inb(io_ports->nsect_addr); |
95 | if (valid & IDE_VALID_LBAL) | 96 | if (valid & IDE_VALID_LBAL) |
96 | tf->hob_lbal = inb(io_ports->lbal_addr); | 97 | tf->lbal = inb(io_ports->lbal_addr); |
97 | if (valid & IDE_VALID_LBAM) | 98 | if (valid & IDE_VALID_LBAM) |
98 | tf->hob_lbam = inb(io_ports->lbam_addr); | 99 | tf->lbam = inb(io_ports->lbam_addr); |
99 | if (valid & IDE_VALID_LBAH) | 100 | if (valid & IDE_VALID_LBAH) |
100 | tf->hob_lbah = inb(io_ports->lbah_addr); | 101 | tf->lbah = inb(io_ports->lbah_addr); |
101 | } | 102 | } |
102 | } | 103 | } |
103 | 104 | ||