blob: 50d674b91c8b5f2666006b871e582cf2071813ee [file] [log] [blame]
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +02001#ifndef __IDE_DISK_H
2#define __IDE_DISK_H
3
4struct ide_disk_obj {
5 ide_drive_t *drive;
6 ide_driver_t *driver;
7 struct gendisk *disk;
8 struct kref kref;
9 unsigned int openers; /* protected by BKL for now */
10};
11
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020012/* ide-disk.c */
Bartlomiej Zolnierkiewicz06b89512008-10-13 21:39:45 +020013sector_t ide_disk_capacity(ide_drive_t *);
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020014ide_decl_devset(address);
15ide_decl_devset(multcount);
16ide_decl_devset(nowerr);
17ide_decl_devset(wcache);
18ide_decl_devset(acoustic);
19
20/* ide-disk_ioctl.c */
21int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
22
Bartlomiej Zolnierkiewicz06b89512008-10-13 21:39:45 +020023#ifdef CONFIG_IDE_PROC_FS
24/* ide-disk_proc.c */
25extern ide_proc_entry_t ide_disk_proc[];
26extern const struct ide_proc_devset ide_disk_settings[];
27#endif
28
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020029#endif /* __IDE_DISK_H */