|
@@ -595,6 +595,21 @@ int set_io_32bit(ide_drive_t *, int);
|
|
|
int set_pio_mode(ide_drive_t *, int);
|
|
|
int set_using_dma(ide_drive_t *, int);
|
|
|
|
|
|
+/* ATAPI packet command flags */
|
|
|
+enum {
|
|
|
+ /* set when an error is considered normal - no retry (ide-tape) */
|
|
|
+ PC_FLAG_ABORT = (1 << 0),
|
|
|
+ PC_FLAG_SUPPRESS_ERROR = (1 << 1),
|
|
|
+ PC_FLAG_WAIT_FOR_DSC = (1 << 2),
|
|
|
+ PC_FLAG_DMA_OK = (1 << 3),
|
|
|
+ PC_FLAG_DMA_RECOMMENDED = (1 << 4),
|
|
|
+ PC_FLAG_DMA_IN_PROGRESS = (1 << 5),
|
|
|
+ PC_FLAG_DMA_ERROR = (1 << 6),
|
|
|
+ PC_FLAG_WRITING = (1 << 7),
|
|
|
+ /* command timed out */
|
|
|
+ PC_FLAG_TIMEDOUT = (1 << 8),
|
|
|
+};
|
|
|
+
|
|
|
struct ide_atapi_pc {
|
|
|
/* actual packet bytes */
|
|
|
u8 c[12];
|