blob: 6dd2beb4843492586c78d9e117d82f5676e3cc5e [file] [log] [blame]
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +02001#ifndef __IDE_FLOPPY_H
2#define __IDE_FLOPPY_H
3
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +02004#include "ide-gd.h"
Bartlomiej Zolnierkiewiczc84d9bb2008-10-17 18:09:13 +02005
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +02006#ifdef CONFIG_IDE_GD_ATAPI
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +02007/*
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 */
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020021extern const struct ide_disk_ops ide_atapi_disk_ops;
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020022void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8);
23void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *);
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020024
25/* ide-floppy_ioctl.c */
Al Virobadf8082008-10-16 10:23:20 -040026int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t,
27 unsigned int, unsigned long);
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020028
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020029#ifdef CONFIG_IDE_PROC_FS
30/* ide-floppy_proc.c */
31extern ide_proc_entry_t ide_floppy_proc[];
32extern const struct ide_proc_devset ide_floppy_settings[];
33#endif
Bartlomiej Zolnierkiewicz806f80a2008-10-17 18:09:14 +020034#else
35#define ide_floppy_proc NULL
36#define ide_floppy_settings NULL
37#endif
Bartlomiej Zolnierkiewiczb9103da2008-10-13 21:39:44 +020038
Bartlomiej Zolnierkiewicz01278542008-10-10 22:39:38 +020039#endif /*__IDE_FLOPPY_H */