ide-floppy: ->{srfp,wp} -> IDE_AFLAG_{SRFP,WP}

Add IDE_AFLAG_{SRFP,WP} drive->atapi_flags and use them
instead of ->{srfp,wp} struct ide_floppy_obj fields.

There should be no functional changes caused by this patch.

Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz
2008-10-10 22:39:38 +02:00
parent 2ac07d9206
commit 49cac39e71
2 changed files with 25 additions and 17 deletions
+11 -7
View File
@@ -356,21 +356,25 @@ enum {
IDE_AFLAG_CLIK_DRIVE = (1 << 19),
/* Requires BH algorithm for packets */
IDE_AFLAG_ZIP_DRIVE = (1 << 20),
/* Write protect */
IDE_AFLAG_WP = (1 << 21),
/* Supports format progress report */
IDE_AFLAG_SRFP = (1 << 22),
/* ide-tape */
IDE_AFLAG_IGNORE_DSC = (1 << 21),
IDE_AFLAG_IGNORE_DSC = (1 << 23),
/* 0 When the tape position is unknown */
IDE_AFLAG_ADDRESS_VALID = (1 << 22),
IDE_AFLAG_ADDRESS_VALID = (1 << 24),
/* Device already opened */
IDE_AFLAG_BUSY = (1 << 23),
IDE_AFLAG_BUSY = (1 << 25),
/* Attempt to auto-detect the current user block size */
IDE_AFLAG_DETECT_BS = (1 << 24),
IDE_AFLAG_DETECT_BS = (1 << 26),
/* Currently on a filemark */
IDE_AFLAG_FILEMARK = (1 << 25),
IDE_AFLAG_FILEMARK = (1 << 27),
/* 0 = no tape is loaded, so we don't rewind after ejecting */
IDE_AFLAG_MEDIUM_PRESENT = (1 << 26),
IDE_AFLAG_MEDIUM_PRESENT = (1 << 28),
IDE_AFLAG_NO_AUTOCLOSE = (1 << 27),
IDE_AFLAG_NO_AUTOCLOSE = (1 << 29),
};
struct ide_drive_s {