2008-10-11 04:39:38 +08:00
|
|
|
#ifndef __IDE_FLOPPY_H
|
|
|
|
#define __IDE_FLOPPY_H
|
|
|
|
|
2008-10-18 00:09:14 +08:00
|
|
|
#include "ide-gd.h"
|
2008-10-18 00:09:13 +08:00
|
|
|
|
2008-10-18 00:09:14 +08:00
|
|
|
#ifdef CONFIG_IDE_GD_ATAPI
|
2008-10-11 04:39:38 +08:00
|
|
|
/*
|
|
|
|
* Pages of the SELECT SENSE / MODE SENSE packet commands.
|
|
|
|
* See SFF-8070i spec.
|
|
|
|
*/
|
|
|
|
#define IDEFLOPPY_CAPABILITIES_PAGE 0x1b
|
|
|
|
#define IDEFLOPPY_FLEXIBLE_DISK_PAGE 0x05
|
|
|
|
|
|
|
|
/* IOCTLs used in low-level formatting. */
|
|
|
|
#define IDEFLOPPY_IOCTL_FORMAT_SUPPORTED 0x4600
|
|
|
|
#define IDEFLOPPY_IOCTL_FORMAT_GET_CAPACITY 0x4601
|
|
|
|
#define IDEFLOPPY_IOCTL_FORMAT_START 0x4602
|
|
|
|
#define IDEFLOPPY_IOCTL_FORMAT_GET_PROGRESS 0x4603
|
|
|
|
|
|
|
|
/* ide-floppy.c */
|
2008-10-18 00:09:14 +08:00
|
|
|
extern const struct ide_disk_ops ide_atapi_disk_ops;
|
2008-10-11 04:39:38 +08:00
|
|
|
void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8);
|
|
|
|
void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *);
|
|
|
|
|
|
|
|
/* ide-floppy_ioctl.c */
|
2008-10-18 00:09:14 +08:00
|
|
|
int ide_floppy_ioctl(ide_drive_t *, struct inode *, struct file *, unsigned int,
|
|
|
|
unsigned long);
|
2008-10-11 04:39:38 +08:00
|
|
|
|
2008-10-14 03:39:44 +08:00
|
|
|
#ifdef CONFIG_IDE_PROC_FS
|
|
|
|
/* ide-floppy_proc.c */
|
|
|
|
extern ide_proc_entry_t ide_floppy_proc[];
|
|
|
|
extern const struct ide_proc_devset ide_floppy_settings[];
|
|
|
|
#endif
|
2008-10-18 00:09:14 +08:00
|
|
|
#else
|
|
|
|
#define ide_floppy_proc NULL
|
|
|
|
#define ide_floppy_settings NULL
|
|
|
|
#endif
|
2008-10-14 03:39:44 +08:00
|
|
|
|
2008-10-11 04:39:38 +08:00
|
|
|
#endif /*__IDE_FLOPPY_H */
|