diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-07-23 13:56:01 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:56:01 -0400 |
commit | be4c916e96bcde629463d7577d4c402c7f6e6f3e (patch) | |
tree | 8d9ec89cbd7118e38f6962d26b93e79ee10d0766 /drivers | |
parent | f2e3ab52afb3b05879b9d82a05740cd924993325 (diff) |
ide-scsi: convert to using the new atapi_flags
Remove unused IDESCSI_PC_RQ while at it.
There should be no functionality change resulting from this patch.
[bart: IDE_FLAG_* -> IDE_AFLAG_*, dev_flags -> atapi_flags]
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 1ec439320018..538552495d48 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -84,7 +84,6 @@ typedef struct ide_scsi_obj { | |||
84 | struct Scsi_Host *host; | 84 | struct Scsi_Host *host; |
85 | 85 | ||
86 | struct ide_atapi_pc *pc; /* Current packet command */ | 86 | struct ide_atapi_pc *pc; /* Current packet command */ |
87 | unsigned long flags; /* Status/Action flags */ | ||
88 | unsigned long transform; /* SCSI cmd translation layer */ | 87 | unsigned long transform; /* SCSI cmd translation layer */ |
89 | unsigned long log; /* log flags */ | 88 | unsigned long log; /* log flags */ |
90 | } idescsi_scsi_t; | 89 | } idescsi_scsi_t; |
@@ -126,16 +125,6 @@ static inline idescsi_scsi_t *drive_to_idescsi(ide_drive_t *ide_drive) | |||
126 | } | 125 | } |
127 | 126 | ||
128 | /* | 127 | /* |
129 | * Per ATAPI device status bits. | ||
130 | */ | ||
131 | #define IDESCSI_DRQ_INTERRUPT 0 /* DRQ interrupt device */ | ||
132 | |||
133 | /* | ||
134 | * ide-scsi requests. | ||
135 | */ | ||
136 | #define IDESCSI_PC_RQ 90 | ||
137 | |||
138 | /* | ||
139 | * PIO data transfer routine using the scatter gather table. | 128 | * PIO data transfer routine using the scatter gather table. |
140 | */ | 129 | */ |
141 | static void ide_scsi_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, | 130 | static void ide_scsi_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, |
@@ -421,10 +410,6 @@ static ide_startstop_t idescsi_do_request (ide_drive_t *drive, struct request *r | |||
421 | 410 | ||
422 | if (blk_sense_request(rq) || blk_special_request(rq)) { | 411 | if (blk_sense_request(rq) || blk_special_request(rq)) { |
423 | struct ide_atapi_pc *pc = (struct ide_atapi_pc *)rq->special; | 412 | struct ide_atapi_pc *pc = (struct ide_atapi_pc *)rq->special; |
424 | idescsi_scsi_t *scsi = drive_to_idescsi(drive); | ||
425 | |||
426 | if (test_bit(IDESCSI_DRQ_INTERRUPT, &scsi->flags)) | ||
427 | pc->flags |= PC_FLAG_DRQ_INTERRUPT; | ||
428 | 413 | ||
429 | if (drive->using_dma && !idescsi_map_sg(drive, pc)) | 414 | if (drive->using_dma && !idescsi_map_sg(drive, pc)) |
430 | pc->flags |= PC_FLAG_DMA_OK; | 415 | pc->flags |= PC_FLAG_DMA_OK; |
@@ -460,7 +445,7 @@ static inline void idescsi_add_settings(ide_drive_t *drive) { ; } | |||
460 | static void idescsi_setup (ide_drive_t *drive, idescsi_scsi_t *scsi) | 445 | static void idescsi_setup (ide_drive_t *drive, idescsi_scsi_t *scsi) |
461 | { | 446 | { |
462 | if (drive->id && (drive->id->config & 0x0060) == 0x20) | 447 | if (drive->id && (drive->id->config & 0x0060) == 0x20) |
463 | set_bit (IDESCSI_DRQ_INTERRUPT, &scsi->flags); | 448 | set_bit(IDE_AFLAG_DRQ_INTERRUPT, &drive->atapi_flags); |
464 | clear_bit(IDESCSI_SG_TRANSFORM, &scsi->transform); | 449 | clear_bit(IDESCSI_SG_TRANSFORM, &scsi->transform); |
465 | #if IDESCSI_DEBUG_LOG | 450 | #if IDESCSI_DEBUG_LOG |
466 | set_bit(IDESCSI_LOG_CMD, &scsi->log); | 451 | set_bit(IDESCSI_LOG_CMD, &scsi->log); |