aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2008-04-17 18:46:27 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:27 -0400
commiteaec3e7ded9dbc88bad393c076b65f4b7b11d30d (patch)
tree360c145015b4afd5174676cc2b6ac7225ff0896f /include/linux/ide.h
parentc2b2b29361dde5f1d9169a487c3021b14cf36518 (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 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h15
1 files changed, 15 insertions, 0 deletions
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];