diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-04-17 18:46:27 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:27 -0400 |
commit | eaec3e7ded9dbc88bad393c076b65f4b7b11d30d (patch) | |
tree | 360c145015b4afd5174676cc2b6ac7225ff0896f /drivers/ide | |
parent | c2b2b29361dde5f1d9169a487c3021b14cf36518 (diff) |
ide: use generic ATAPI packet command flags in ide-{floppy,tape}
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-floppy.c | 14 | ||||
-rw-r--r-- | drivers/ide/ide-tape.c | 16 |
2 files changed, 0 insertions, 30 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index bf1ef60a5a07..5f133dfb541c 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -78,20 +78,6 @@ | |||
78 | */ | 78 | */ |
79 | #define IDEFLOPPY_PC_STACK (10 + IDEFLOPPY_MAX_PC_RETRIES) | 79 | #define IDEFLOPPY_PC_STACK (10 + IDEFLOPPY_MAX_PC_RETRIES) |
80 | 80 | ||
81 | /* Packet command flag bits. */ | ||
82 | enum { | ||
83 | /* 1 when we prefer to use DMA if possible */ | ||
84 | PC_FLAG_DMA_RECOMMENDED = (1 << 0), | ||
85 | /* 1 while DMA in progress */ | ||
86 | PC_FLAG_DMA_IN_PROGRESS = (1 << 1), | ||
87 | /* 1 when encountered problem during DMA */ | ||
88 | PC_FLAG_DMA_ERROR = (1 << 2), | ||
89 | /* Data direction */ | ||
90 | PC_FLAG_WRITING = (1 << 3), | ||
91 | /* Suppress error reporting */ | ||
92 | PC_FLAG_SUPPRESS_ERROR = (1 << 4), | ||
93 | }; | ||
94 | |||
95 | /* format capacities descriptor codes */ | 81 | /* format capacities descriptor codes */ |
96 | #define CAPACITY_INVALID 0x00 | 82 | #define CAPACITY_INVALID 0x00 |
97 | #define CAPACITY_UNFORMATTED 0x01 | 83 | #define CAPACITY_UNFORMATTED 0x01 |
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3f9dcca6f092..f43fd070f1b6 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -181,22 +181,6 @@ struct idetape_bh { | |||
181 | char *b_data; | 181 | char *b_data; |
182 | }; | 182 | }; |
183 | 183 | ||
184 | /* Packet command flag bits. */ | ||
185 | enum { | ||
186 | /* Set when an error is considered normal - We won't retry */ | ||
187 | PC_FLAG_ABORT = (1 << 0), | ||
188 | /* 1 When polling for DSC on a media access command */ | ||
189 | PC_FLAG_WAIT_FOR_DSC = (1 << 1), | ||
190 | /* 1 when we prefer to use DMA if possible */ | ||
191 | PC_FLAG_DMA_RECOMMENDED = (1 << 2), | ||
192 | /* 1 while DMA in progress */ | ||
193 | PC_FLAG_DMA_IN_PROGRESS = (1 << 3), | ||
194 | /* 1 when encountered problem during DMA */ | ||
195 | PC_FLAG_DMA_ERROR = (1 << 4), | ||
196 | /* Data direction */ | ||
197 | PC_FLAG_WRITING = (1 << 5), | ||
198 | }; | ||
199 | |||
200 | /* Tape door status */ | 184 | /* Tape door status */ |
201 | #define DOOR_UNLOCKED 0 | 185 | #define DOOR_UNLOCKED 0 |
202 | #define DOOR_LOCKED 1 | 186 | #define DOOR_LOCKED 1 |