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.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 46d5bfe2fefb..a28823297edc 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -308,7 +308,7 @@ struct ide_acpi_drive_link;
308struct ide_acpi_hwif_link; 308struct ide_acpi_hwif_link;
309#endif 309#endif
310 310
311typedef struct ide_drive_s { 311struct ide_drive_s {
312 char name[4]; /* drive name, such as "hda" */ 312 char name[4]; /* drive name, such as "hda" */
313 char driver_req[10]; /* requests specific driver */ 313 char driver_req[10]; /* requests specific driver */
314 314
@@ -400,7 +400,12 @@ typedef struct ide_drive_s {
400 struct list_head list; 400 struct list_head list;
401 struct device gendev; 401 struct device gendev;
402 struct completion gendev_rel_comp; /* to deal with device release() */ 402 struct completion gendev_rel_comp; /* to deal with device release() */
403} ide_drive_t; 403
404 /* callback for packet commands */
405 void (*pc_callback)(struct ide_drive_s *);
406};
407
408typedef struct ide_drive_s ide_drive_t;
404 409
405#define to_ide_device(dev)container_of(dev, ide_drive_t, gendev) 410#define to_ide_device(dev)container_of(dev, ide_drive_t, gendev)
406 411