2008-10-14 03:39:45 +08:00
|
|
|
#ifndef __IDE_DISK_H
|
|
|
|
#define __IDE_DISK_H
|
|
|
|
|
|
|
|
struct ide_disk_obj {
|
|
|
|
ide_drive_t *drive;
|
|
|
|
ide_driver_t *driver;
|
|
|
|
struct gendisk *disk;
|
|
|
|
struct kref kref;
|
|
|
|
unsigned int openers; /* protected by BKL for now */
|
|
|
|
};
|
|
|
|
|
2008-10-18 00:09:12 +08:00
|
|
|
sector_t ide_gd_capacity(ide_drive_t *);
|
|
|
|
|
2008-10-14 03:39:45 +08:00
|
|
|
/* ide-disk.c */
|
2008-10-18 00:09:12 +08:00
|
|
|
void ide_disk_init_capacity(ide_drive_t *);
|
|
|
|
void ide_disk_setup(ide_drive_t *);
|
|
|
|
void ide_disk_flush(ide_drive_t *);
|
|
|
|
int ide_disk_set_doorlock(ide_drive_t *, int);
|
|
|
|
ide_startstop_t ide_do_rw_disk(ide_drive_t *, struct request *, sector_t);
|
2008-10-14 03:39:45 +08:00
|
|
|
ide_decl_devset(address);
|
|
|
|
ide_decl_devset(multcount);
|
|
|
|
ide_decl_devset(nowerr);
|
|
|
|
ide_decl_devset(wcache);
|
|
|
|
ide_decl_devset(acoustic);
|
|
|
|
|
|
|
|
/* ide-disk_ioctl.c */
|
|
|
|
int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
|
|
|
|
|
2008-10-14 03:39:45 +08:00
|
|
|
#ifdef CONFIG_IDE_PROC_FS
|
|
|
|
/* ide-disk_proc.c */
|
|
|
|
extern ide_proc_entry_t ide_disk_proc[];
|
|
|
|
extern const struct ide_proc_devset ide_disk_settings[];
|
|
|
|
#endif
|
|
|
|
|
2008-10-14 03:39:45 +08:00
|
|
|
#endif /* __IDE_DISK_H */
|