aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index c647a40c0d33..58411591edf3 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -162,6 +162,21 @@ int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk,
162} 162}
163EXPORT_SYMBOL_GPL(ide_queue_pc_tail); 163EXPORT_SYMBOL_GPL(ide_queue_pc_tail);
164 164
165int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start)
166{
167 struct ide_atapi_pc pc;
168
169 ide_init_pc(&pc);
170 pc.c[0] = START_STOP;
171 pc.c[4] = start;
172
173 if (drive->media == ide_tape)
174 pc.flags |= PC_FLAG_WAIT_FOR_DSC;
175
176 return ide_queue_pc_tail(drive, disk, &pc);
177}
178EXPORT_SYMBOL_GPL(ide_do_start_stop);
179
165int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) 180int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on)
166{ 181{
167 struct ide_atapi_pc pc; 182 struct ide_atapi_pc pc;