mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
ata: add/use ata_taskfile::{error|status} fields
Add the explicit error and status register fields to 'struct ata_taskfile'
using the anonymous *union*s ('struct ide_taskfile' had that for ages!) and
update the libata taskfile code accordingly. There should be no object code
changes resulting from that...
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
committed by
Damien Le Moal
parent
f7220eac75
commit
efcef265fd
@@ -518,7 +518,10 @@ struct ata_taskfile {
|
||||
u8 hob_lbam;
|
||||
u8 hob_lbah;
|
||||
|
||||
u8 feature;
|
||||
union {
|
||||
u8 error;
|
||||
u8 feature;
|
||||
};
|
||||
u8 nsect;
|
||||
u8 lbal;
|
||||
u8 lbam;
|
||||
@@ -526,7 +529,10 @@ struct ata_taskfile {
|
||||
|
||||
u8 device;
|
||||
|
||||
u8 command; /* IO operation */
|
||||
union {
|
||||
u8 status;
|
||||
u8 command;
|
||||
};
|
||||
|
||||
u32 auxiliary; /* auxiliary field */
|
||||
/* from SATA 3.1 and */
|
||||
|
||||
Reference in New Issue
Block a user