diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:37 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:37 -0400 |
commit | 7645c1514c7d34ebdf3ea0e8ee3a935c08abceb2 (patch) | |
tree | 98e51341f3f1a259ca89baf7d2e83b7357dc8a22 /include/linux/ide.h | |
parent | 7bf7420a318978cd6042e5a5da34b7cfa18ae559 (diff) |
ide: add ide_queue_pc_head() helper
* Move REQ_IDETAPE_* enums to <linux/ide.h>.
* Add ide_queue_pc_head() and convert ide-{floppy,tape}.c to use it
instead of ide*_queue_pc_head().
* Remove no longer used ide*_queue_pc_head().
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index bba2f73b99a0..1bd49784e4da 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1121,6 +1121,22 @@ int ide_check_atapi_device(ide_drive_t *, const char *); | |||
1121 | 1121 | ||
1122 | void ide_init_pc(struct ide_atapi_pc *); | 1122 | void ide_init_pc(struct ide_atapi_pc *); |
1123 | 1123 | ||
1124 | /* | ||
1125 | * Special requests for ide-tape block device strategy routine. | ||
1126 | * | ||
1127 | * In order to service a character device command, we add special requests to | ||
1128 | * the tail of our block device request queue and wait for their completion. | ||
1129 | */ | ||
1130 | enum { | ||
1131 | REQ_IDETAPE_PC1 = (1 << 0), /* packet command (first stage) */ | ||
1132 | REQ_IDETAPE_PC2 = (1 << 1), /* packet command (second stage) */ | ||
1133 | REQ_IDETAPE_READ = (1 << 2), | ||
1134 | REQ_IDETAPE_WRITE = (1 << 3), | ||
1135 | }; | ||
1136 | |||
1137 | void ide_queue_pc_head(ide_drive_t *, struct gendisk *, struct ide_atapi_pc *, | ||
1138 | struct request *); | ||
1139 | |||
1124 | ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc, | 1140 | ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc, |
1125 | ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry, | 1141 | ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry, |
1126 | void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *), | 1142 | void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *), |