ide-floppy.h 1.1 KB

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