aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ide/ide-floppy.c14
-rw-r--r--drivers/ide/ide-tape.c16
-rw-r--r--include/linux/ide.h15
3 files changed, 15 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. */
82enum {
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. */
185enum {
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
diff --git a/include/linux/ide.h b/include/linux/ide.h
index e9b1def1e66a..65445b7efc63 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -595,6 +595,21 @@ int set_io_32bit(ide_drive_t *, int);
595int set_pio_mode(ide_drive_t *, int); 595int set_pio_mode(ide_drive_t *, int);
596int set_using_dma(ide_drive_t *, int); 596int set_using_dma(ide_drive_t *, int);
597 597
598/* ATAPI packet command flags */
599enum {
600 /* set when an error is considered normal - no retry (ide-tape) */
601 PC_FLAG_ABORT = (1 << 0),
602 PC_FLAG_SUPPRESS_ERROR = (1 << 1),
603 PC_FLAG_WAIT_FOR_DSC = (1 << 2),
604 PC_FLAG_DMA_OK = (1 << 3),
605 PC_FLAG_DMA_RECOMMENDED = (1 << 4),
606 PC_FLAG_DMA_IN_PROGRESS = (1 << 5),
607 PC_FLAG_DMA_ERROR = (1 << 6),
608 PC_FLAG_WRITING = (1 << 7),
609 /* command timed out */
610 PC_FLAG_TIMEDOUT = (1 << 8),
611};
612
598struct ide_atapi_pc { 613struct ide_atapi_pc {
599 /* actual packet bytes */ 614 /* actual packet bytes */
600 u8 c[12]; 615 u8 c[12];