mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
![Bartlomiej Zolnierkiewicz](/assets/img/avatar_default.png)
While at it: - idedisk_capacity() -> ide_disk_capacity() - idedisk_proc[] -> ide_disk_proc[] - idedisk_settings[] -> ide_disk_settings[] v2/3: Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
32 lines
778 B
C
32 lines
778 B
C
#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 */
|
|
};
|
|
|
|
#define ide_disk_g(disk) \
|
|
container_of((disk)->private_data, struct ide_disk_obj, driver)
|
|
|
|
/* ide-disk.c */
|
|
sector_t ide_disk_capacity(ide_drive_t *);
|
|
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);
|
|
|
|
#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
|
|
|
|
#endif /* __IDE_DISK_H */
|