aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index e43570a19200..9cebf3054080 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -579,7 +579,9 @@ typedef struct hwif_s {
579 unsigned mmio : 1; /* host uses MMIO */ 579 unsigned mmio : 1; /* host uses MMIO */
580 unsigned straight8 : 1; /* Alan's straight 8 check */ 580 unsigned straight8 : 1; /* Alan's straight 8 check */
581 581
582 struct device gendev; 582 struct device gendev;
583 struct device *portdev;
584
583 struct completion gendev_rel_comp; /* To deal with device release() */ 585 struct completion gendev_rel_comp; /* To deal with device release() */
584 586
585 void *hwif_data; /* extra hwif data */ 587 void *hwif_data; /* extra hwif data */
@@ -1275,6 +1277,7 @@ extern struct mutex ide_cfg_mtx;
1275#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable_in_hardirq(); } while (0) 1277#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable_in_hardirq(); } while (0)
1276 1278
1277extern struct bus_type ide_bus_type; 1279extern struct bus_type ide_bus_type;
1280extern struct class *ide_port_class;
1278 1281
1279/* check if CACHE FLUSH (EXT) command is supported (bits defined in ATA-6) */ 1282/* check if CACHE FLUSH (EXT) command is supported (bits defined in ATA-6) */
1280#define ide_id_has_flush_cache(id) ((id)->cfs_enable_2 & 0x3000) 1283#define ide_id_has_flush_cache(id) ((id)->cfs_enable_2 & 0x3000)