]>
Commit | Line | Data |
---|---|---|
0127854d BZ |
1 | #ifndef __IDE_FLOPPY_H |
2 | #define __IDE_FLOPPY_H | |
3 | ||
806f80a6 | 4 | #include "ide-gd.h" |
c84d9bbe | 5 | |
806f80a6 | 6 | #ifdef CONFIG_IDE_GD_ATAPI |
0127854d BZ |
7 | /* |
8 | * Pages of the SELECT SENSE / MODE SENSE packet commands. | |
9 | * See SFF-8070i spec. | |
10 | */ | |
11 | #define IDEFLOPPY_CAPABILITIES_PAGE 0x1b | |
12 | #define IDEFLOPPY_FLEXIBLE_DISK_PAGE 0x05 | |
13 | ||
14 | /* IOCTLs used in low-level formatting. */ | |
15 | #define IDEFLOPPY_IOCTL_FORMAT_SUPPORTED 0x4600 | |
16 | #define IDEFLOPPY_IOCTL_FORMAT_GET_CAPACITY 0x4601 | |
17 | #define IDEFLOPPY_IOCTL_FORMAT_START 0x4602 | |
18 | #define IDEFLOPPY_IOCTL_FORMAT_GET_PROGRESS 0x4603 | |
19 | ||
20 | /* ide-floppy.c */ | |
806f80a6 | 21 | extern const struct ide_disk_ops ide_atapi_disk_ops; |
0127854d BZ |
22 | void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8); |
23 | void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *); | |
0127854d BZ |
24 | |
25 | /* ide-floppy_ioctl.c */ | |
badf8082 AV |
26 | int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t, |
27 | unsigned int, unsigned long); | |
0127854d | 28 | |
b9103da4 BZ |
29 | #ifdef CONFIG_IDE_PROC_FS |
30 | /* ide-floppy_proc.c */ | |
31 | extern ide_proc_entry_t ide_floppy_proc[]; | |
32 | extern const struct ide_proc_devset ide_floppy_settings[]; | |
33 | #endif | |
806f80a6 BZ |
34 | #else |
35 | #define ide_floppy_proc NULL | |
36 | #define ide_floppy_settings NULL | |
37 | #endif | |
b9103da4 | 38 | |
0127854d | 39 | #endif /*__IDE_FLOPPY_H */ |