diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ide.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 776c574c9640..3eccac0a2a36 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -532,12 +532,16 @@ struct ide_dma_ops { | |||
532 | void (*dma_timeout)(struct ide_drive_s *); | 532 | void (*dma_timeout)(struct ide_drive_s *); |
533 | }; | 533 | }; |
534 | 534 | ||
535 | struct ide_host; | ||
536 | |||
535 | typedef struct hwif_s { | 537 | typedef struct hwif_s { |
536 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ | 538 | struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ |
537 | struct hwif_s *mate; /* other hwif from same PCI chip */ | 539 | struct hwif_s *mate; /* other hwif from same PCI chip */ |
538 | struct hwgroup_s *hwgroup; /* actually (ide_hwgroup_t *) */ | 540 | struct hwgroup_s *hwgroup; /* actually (ide_hwgroup_t *) */ |
539 | struct proc_dir_entry *proc; /* /proc/ide/ directory entry */ | 541 | struct proc_dir_entry *proc; /* /proc/ide/ directory entry */ |
540 | 542 | ||
543 | struct ide_host *host; | ||
544 | |||
541 | char name[6]; /* name of interface, eg. "ide0" */ | 545 | char name[6]; /* name of interface, eg. "ide0" */ |
542 | 546 | ||
543 | struct ide_io_ports io_ports; | 547 | struct ide_io_ports io_ports; |
@@ -876,6 +880,9 @@ struct ide_driver_s { | |||
876 | 880 | ||
877 | #define to_ide_driver(drv) container_of(drv, ide_driver_t, gen_driver) | 881 | #define to_ide_driver(drv) container_of(drv, ide_driver_t, gen_driver) |
878 | 882 | ||
883 | int ide_device_get(ide_drive_t *); | ||
884 | void ide_device_put(ide_drive_t *); | ||
885 | |||
879 | int generic_ide_ioctl(ide_drive_t *, struct file *, struct block_device *, unsigned, unsigned long); | 886 | int generic_ide_ioctl(ide_drive_t *, struct file *, struct block_device *, unsigned, unsigned long); |
880 | 887 | ||
881 | extern int ide_vlb_clk; | 888 | extern int ide_vlb_clk; |