Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 1 | #ifndef __IDE_FLOPPY_H |
| 2 | #define __IDE_FLOPPY_H |
| 3 | |
Bartlomiej Zolnierkiewicz | 806f80a | 2008-10-17 18:09:14 +0200 | [diff] [blame^] | 4 | #include "ide-gd.h" |
Bartlomiej Zolnierkiewicz | c84d9bb | 2008-10-17 18:09:13 +0200 | [diff] [blame] | 5 | |
Bartlomiej Zolnierkiewicz | 806f80a | 2008-10-17 18:09:14 +0200 | [diff] [blame^] | 6 | #ifdef CONFIG_IDE_GD_ATAPI |
| 7 | typedef struct ide_disk_obj idefloppy_floppy_t; |
Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 8 | |
| 9 | /* |
| 10 | * Pages of the SELECT SENSE / MODE SENSE packet commands. |
| 11 | * See SFF-8070i spec. |
| 12 | */ |
| 13 | #define IDEFLOPPY_CAPABILITIES_PAGE 0x1b |
| 14 | #define IDEFLOPPY_FLEXIBLE_DISK_PAGE 0x05 |
| 15 | |
| 16 | /* IOCTLs used in low-level formatting. */ |
| 17 | #define IDEFLOPPY_IOCTL_FORMAT_SUPPORTED 0x4600 |
| 18 | #define IDEFLOPPY_IOCTL_FORMAT_GET_CAPACITY 0x4601 |
| 19 | #define IDEFLOPPY_IOCTL_FORMAT_START 0x4602 |
| 20 | #define IDEFLOPPY_IOCTL_FORMAT_GET_PROGRESS 0x4603 |
| 21 | |
| 22 | /* ide-floppy.c */ |
Bartlomiej Zolnierkiewicz | 806f80a | 2008-10-17 18:09:14 +0200 | [diff] [blame^] | 23 | extern const struct ide_disk_ops ide_atapi_disk_ops; |
Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 24 | void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8); |
| 25 | void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *); |
Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 26 | |
| 27 | /* ide-floppy_ioctl.c */ |
Bartlomiej Zolnierkiewicz | 806f80a | 2008-10-17 18:09:14 +0200 | [diff] [blame^] | 28 | int ide_floppy_ioctl(ide_drive_t *, struct inode *, struct file *, unsigned int, |
| 29 | unsigned long); |
Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 30 | |
Bartlomiej Zolnierkiewicz | b9103da | 2008-10-13 21:39:44 +0200 | [diff] [blame] | 31 | #ifdef CONFIG_IDE_PROC_FS |
| 32 | /* ide-floppy_proc.c */ |
| 33 | extern ide_proc_entry_t ide_floppy_proc[]; |
| 34 | extern const struct ide_proc_devset ide_floppy_settings[]; |
| 35 | #endif |
Bartlomiej Zolnierkiewicz | 806f80a | 2008-10-17 18:09:14 +0200 | [diff] [blame^] | 36 | #else |
| 37 | #define ide_floppy_proc NULL |
| 38 | #define ide_floppy_settings NULL |
| 39 | #endif |
Bartlomiej Zolnierkiewicz | b9103da | 2008-10-13 21:39:44 +0200 | [diff] [blame] | 40 | |
Bartlomiej Zolnierkiewicz | 0127854 | 2008-10-10 22:39:38 +0200 | [diff] [blame] | 41 | #endif /*__IDE_FLOPPY_H */ |