blob: a82fa4355665caed6710050a9bc8c64af0b33684 [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
12#define ide_disk_g(disk) \
13 container_of((disk)->private_data, struct ide_disk_obj, driver)
14
15/* ide-disk.c */
Bartlomiej Zolnierkiewicz06b89512008-10-13 21:39:45 +020016sector_t ide_disk_capacity(ide_drive_t *);
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020017ide_decl_devset(address);
18ide_decl_devset(multcount);
19ide_decl_devset(nowerr);
20ide_decl_devset(wcache);
21ide_decl_devset(acoustic);
22
23/* ide-disk_ioctl.c */
24int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
25
Bartlomiej Zolnierkiewicz06b89512008-10-13 21:39:45 +020026#ifdef CONFIG_IDE_PROC_FS
27/* ide-disk_proc.c */
28extern ide_proc_entry_t ide_disk_proc[];
29extern const struct ide_proc_devset ide_disk_settings[];
30#endif
31
Bartlomiej Zolnierkiewiczf8790482008-10-13 21:39:45 +020032#endif /* __IDE_DISK_H */