Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89338
b: refs/heads/master
c: eaec3e7
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Apr 17, 2008
1 parent ba57c06 commit d2464d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2b2b29361dde5f1d9169a487c3021b14cf36518
refs/heads/master: eaec3e7ded9dbc88bad393c076b65f4b7b11d30d
14 changes: 0 additions & 14 deletions trunk/drivers/ide/ide-floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@
*/
#define IDEFLOPPY_PC_STACK (10 + IDEFLOPPY_MAX_PC_RETRIES)

/* Packet command flag bits. */
enum {
/* 1 when we prefer to use DMA if possible */
PC_FLAG_DMA_RECOMMENDED = (1 << 0),
/* 1 while DMA in progress */
PC_FLAG_DMA_IN_PROGRESS = (1 << 1),
/* 1 when encountered problem during DMA */
PC_FLAG_DMA_ERROR = (1 << 2),
/* Data direction */
PC_FLAG_WRITING = (1 << 3),
/* Suppress error reporting */
PC_FLAG_SUPPRESS_ERROR = (1 << 4),
};

/* format capacities descriptor codes */
#define CAPACITY_INVALID 0x00
#define CAPACITY_UNFORMATTED 0x01
Expand Down
16 changes: 0 additions & 16 deletions trunk/drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,6 @@ struct idetape_bh {
char *b_data;
};

/* Packet command flag bits. */
enum {
/* Set when an error is considered normal - We won't retry */
PC_FLAG_ABORT = (1 << 0),
/* 1 When polling for DSC on a media access command */
PC_FLAG_WAIT_FOR_DSC = (1 << 1),
/* 1 when we prefer to use DMA if possible */
PC_FLAG_DMA_RECOMMENDED = (1 << 2),
/* 1 while DMA in progress */
PC_FLAG_DMA_IN_PROGRESS = (1 << 3),
/* 1 when encountered problem during DMA */
PC_FLAG_DMA_ERROR = (1 << 4),
/* Data direction */
PC_FLAG_WRITING = (1 << 5),
};

/* Tape door status */
#define DOOR_UNLOCKED 0
#define DOOR_LOCKED 1
Expand Down
15 changes: 15 additions & 0 deletions trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d2464d8

Please sign in to comment.