diff options
Diffstat (limited to 'drivers/ide/ide-floppy.h')
-rw-r--r-- | drivers/ide/ide-floppy.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/ide/ide-floppy.h b/drivers/ide/ide-floppy.h index ecadc2bc322d..17cf865e583d 100644 --- a/drivers/ide/ide-floppy.h +++ b/drivers/ide/ide-floppy.h | |||
@@ -13,20 +13,14 @@ typedef struct ide_floppy_obj { | |||
13 | struct kref kref; | 13 | struct kref kref; |
14 | unsigned int openers; /* protected by BKL for now */ | 14 | unsigned int openers; /* protected by BKL for now */ |
15 | 15 | ||
16 | /* Current packet command */ | ||
17 | struct ide_atapi_pc *pc; | ||
18 | /* Last failed packet command */ | 16 | /* Last failed packet command */ |
19 | struct ide_atapi_pc *failed_pc; | 17 | struct ide_atapi_pc *failed_pc; |
20 | /* used for blk_{fs,pc}_request() requests */ | 18 | /* used for blk_{fs,pc}_request() requests */ |
21 | struct ide_atapi_pc queued_pc; | 19 | struct ide_atapi_pc queued_pc; |
22 | 20 | ||
23 | struct ide_atapi_pc request_sense_pc; | ||
24 | struct request request_sense_rq; | ||
25 | |||
26 | /* Last error information */ | 21 | /* Last error information */ |
27 | u8 sense_key, asc, ascq; | 22 | u8 sense_key, asc, ascq; |
28 | /* delay this long before sending packet command */ | 23 | |
29 | u8 ticks; | ||
30 | int progress_indication; | 24 | int progress_indication; |
31 | 25 | ||
32 | /* Device information */ | 26 | /* Device information */ |
@@ -54,10 +48,15 @@ typedef struct ide_floppy_obj { | |||
54 | /* ide-floppy.c */ | 48 | /* ide-floppy.c */ |
55 | void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8); | 49 | void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8); |
56 | void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *); | 50 | void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *); |
57 | void ide_floppy_create_request_sense_cmd(struct ide_atapi_pc *); | 51 | sector_t ide_floppy_capacity(ide_drive_t *); |
58 | 52 | ||
59 | /* ide-floppy_ioctl.c */ | 53 | /* ide-floppy_ioctl.c */ |
60 | int ide_floppy_format_ioctl(ide_drive_t *, struct file *, unsigned int, | 54 | int ide_floppy_ioctl(struct inode *, struct file *, unsigned, unsigned long); |
61 | void __user *); | 55 | |
56 | #ifdef CONFIG_IDE_PROC_FS | ||
57 | /* ide-floppy_proc.c */ | ||
58 | extern ide_proc_entry_t ide_floppy_proc[]; | ||
59 | extern const struct ide_proc_devset ide_floppy_settings[]; | ||
60 | #endif | ||
62 | 61 | ||
63 | #endif /*__IDE_FLOPPY_H */ | 62 | #endif /*__IDE_FLOPPY_H */ |