Author: Pavel Roskin <proski@gnu.org>

struct ata_sector was meant to facilitate taking upper and lower byte of
the sector.  However, the implementation is incorrect, as "struct" and
"union" are swapped in the definition.  What's worse, it's an overkill
for that simple task.  The code should be transparent without knowing
how struct ata_sector is defined.

[laurent: Original patch modified to remove useless "& 0xff"]


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@489 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-05-17 18:59:32 +00:00
parent 45caaecfa6
commit 9611192b8d
2 changed files with 3 additions and 21 deletions

View File

@@ -208,20 +208,6 @@ enum {
atapi_ddir_write,
};
struct ata_sector {
u16 all;
union {
#ifdef CONFIG_BIG_ENDIAN
u8 high;
u8 low;
#endif
#ifdef CONFIG_LITTLE_ENDIAN
u8 low;
u8 high;
#endif
};
};
static int ob_ide_atapi_request_sense(struct ide_drive *drive);
#endif