diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index e887927e00e6..d963c1929c84 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -87,12 +87,13 @@ struct ide_io_ports { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) | 89 | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
90 | #define BAD_R_STAT (BUSY_STAT | ERR_STAT) | ||
91 | #define BAD_W_STAT (BAD_R_STAT | WRERR_STAT) | ||
92 | #define BAD_STAT (BAD_R_STAT | DRQ_STAT) | ||
93 | #define DRIVE_READY (READY_STAT | SEEK_STAT) | ||
94 | 90 | ||
95 | #define BAD_CRC (ABRT_ERR | ICRC_ERR) | 91 | #define BAD_R_STAT (ATA_BUSY | ATA_ERR) |
92 | #define BAD_W_STAT (BAD_R_STAT | ATA_DF) | ||
93 | #define BAD_STAT (BAD_R_STAT | ATA_DRQ) | ||
94 | #define DRIVE_READY (ATA_DRDY | ATA_DSC) | ||
95 | |||
96 | #define BAD_CRC (ATA_ABORTED | ATA_ICRC) | ||
96 | 97 | ||
97 | #define SATA_NR_PORTS (3) /* 16 possible ?? */ | 98 | #define SATA_NR_PORTS (3) /* 16 possible ?? */ |
98 | 99 | ||
@@ -438,8 +439,8 @@ struct ide_drive_s { | |||
438 | u8 mult_req; /* requested multiple sector setting */ | 439 | u8 mult_req; /* requested multiple sector setting */ |
439 | u8 tune_req; /* requested drive tuning setting */ | 440 | u8 tune_req; /* requested drive tuning setting */ |
440 | u8 io_32bit; /* 0=16-bit, 1=32-bit, 2/3=32bit+sync */ | 441 | u8 io_32bit; /* 0=16-bit, 1=32-bit, 2/3=32bit+sync */ |
441 | u8 bad_wstat; /* used for ignoring WRERR_STAT */ | 442 | u8 bad_wstat; /* used for ignoring ATA_DF */ |
442 | u8 nowerr; /* used for ignoring WRERR_STAT */ | 443 | u8 nowerr; /* used for ignoring ATA_DF */ |
443 | u8 sect0; /* offset of first sector for DM6:DDO */ | 444 | u8 sect0; /* offset of first sector for DM6:DDO */ |
444 | u8 head; /* "real" number of heads */ | 445 | u8 head; /* "real" number of heads */ |
445 | u8 sect; /* "real" sectors per track */ | 446 | u8 sect; /* "real" sectors per track */ |