Bartlomiej Zolnierkiewicz | f879048 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 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 | |
Bartlomiej Zolnierkiewicz | f879048 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 12 | /* ide-disk.c */ |
Bartlomiej Zolnierkiewicz | 06b8951 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 13 | sector_t ide_disk_capacity(ide_drive_t *); |
Bartlomiej Zolnierkiewicz | f879048 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 14 | ide_decl_devset(address); |
| 15 | ide_decl_devset(multcount); |
| 16 | ide_decl_devset(nowerr); |
| 17 | ide_decl_devset(wcache); |
| 18 | ide_decl_devset(acoustic); |
| 19 | |
| 20 | /* ide-disk_ioctl.c */ |
| 21 | int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
| 22 | |
Bartlomiej Zolnierkiewicz | 06b8951 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 23 | #ifdef CONFIG_IDE_PROC_FS |
| 24 | /* ide-disk_proc.c */ |
| 25 | extern ide_proc_entry_t ide_disk_proc[]; |
| 26 | extern const struct ide_proc_devset ide_disk_settings[]; |
| 27 | #endif |
| 28 | |
Bartlomiej Zolnierkiewicz | f879048 | 2008-10-13 21:39:45 +0200 | [diff] [blame] | 29 | #endif /* __IDE_DISK_H */ |