]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/ide/ide-disk.h
ide-disk: factor out generic disk handling code to ide-gd.c
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-disk.h
1 #ifndef __IDE_DISK_H
2 #define __IDE_DISK_H
3
4 struct 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 sector_t ide_gd_capacity(ide_drive_t *);
13
14 /* ide-disk.c */
15 void ide_disk_init_capacity(ide_drive_t *);
16 void ide_disk_setup(ide_drive_t *);
17 void ide_disk_flush(ide_drive_t *);
18 int ide_disk_set_doorlock(ide_drive_t *, int);
19 ide_startstop_t ide_do_rw_disk(ide_drive_t *, struct request *, sector_t);
20 ide_decl_devset(address);
21 ide_decl_devset(multcount);
22 ide_decl_devset(nowerr);
23 ide_decl_devset(wcache);
24 ide_decl_devset(acoustic);
25
26 /* ide-disk_ioctl.c */
27 int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
28
29 #ifdef CONFIG_IDE_PROC_FS
30 /* ide-disk_proc.c */
31 extern ide_proc_entry_t ide_disk_proc[];
32 extern const struct ide_proc_devset ide_disk_settings[];
33 #endif
34
35 #endif /* __IDE_DISK_H */