aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-06-07 08:27:11 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-06-07 08:27:11 -0400
commit6250d3af2a1036fb356264442211a4246c7d64c7 (patch)
tree12474d59b96c0dc518159cb694f0e654cb18b5f6 /include/linux/ide.h
parent4c9773ed7946fc375edba057770f5ef16d8b44fe (diff)
parent075affcbe01d4d7cefcd0e30a98df1253bcf8d92 (diff)
Merge branch 'for-linus' into for-next
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 015955632091..c8f7b9673710 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -381,6 +381,7 @@ struct ide_drive_s;
381struct ide_disk_ops { 381struct ide_disk_ops {
382 int (*check)(struct ide_drive_s *, const char *); 382 int (*check)(struct ide_drive_s *, const char *);
383 int (*get_capacity)(struct ide_drive_s *); 383 int (*get_capacity)(struct ide_drive_s *);
384 u64 (*set_capacity)(struct ide_drive_s *, u64);
384 void (*setup)(struct ide_drive_s *); 385 void (*setup)(struct ide_drive_s *);
385 void (*flush)(struct ide_drive_s *); 386 void (*flush)(struct ide_drive_s *);
386 int (*init_media)(struct ide_drive_s *, struct gendisk *); 387 int (*init_media)(struct ide_drive_s *, struct gendisk *);
@@ -458,6 +459,8 @@ enum {
458 IDE_DFLAG_NICE1 = (1 << 5), 459 IDE_DFLAG_NICE1 = (1 << 5),
459 /* device is physically present */ 460 /* device is physically present */
460 IDE_DFLAG_PRESENT = (1 << 6), 461 IDE_DFLAG_PRESENT = (1 << 6),
462 /* disable Host Protected Area */
463 IDE_DFLAG_NOHPA = (1 << 7),
461 /* id read from device (synthetic if not set) */ 464 /* id read from device (synthetic if not set) */
462 IDE_DFLAG_ID_READ = (1 << 8), 465 IDE_DFLAG_ID_READ = (1 << 8),
463 IDE_DFLAG_NOPROBE = (1 << 9), 466 IDE_DFLAG_NOPROBE = (1 << 9),
@@ -552,8 +555,7 @@ struct ide_drive_s {
552 unsigned int drive_data; /* used by set_pio_mode/dev_select() */ 555 unsigned int drive_data; /* used by set_pio_mode/dev_select() */
553 unsigned int failures; /* current failure count */ 556 unsigned int failures; /* current failure count */
554 unsigned int max_failures; /* maximum allowed failure count */ 557 unsigned int max_failures; /* maximum allowed failure count */
555 u64 probed_capacity;/* initial reported media capacity (ide-cd only currently) */ 558 u64 probed_capacity;/* initial/native media capacity */
556
557 u64 capacity64; /* total number of sectors */ 559 u64 capacity64; /* total number of sectors */
558 560
559 int lun; /* logical unit */ 561 int lun; /* logical unit */