diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 08:27:11 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 08:27:11 -0400 |
commit | 6250d3af2a1036fb356264442211a4246c7d64c7 (patch) | |
tree | 12474d59b96c0dc518159cb694f0e654cb18b5f6 /include | |
parent | 4c9773ed7946fc375edba057770f5ef16d8b44fe (diff) | |
parent | 075affcbe01d4d7cefcd0e30a98df1253bcf8d92 (diff) |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 2 | ||||
-rw-r--r-- | include/linux/genhd.h | 1 | ||||
-rw-r--r-- | include/linux/ide.h | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 6f841fb1be30..a2d7298be351 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1106,6 +1106,8 @@ struct block_device_operations { | |||
1106 | int (*direct_access) (struct block_device *, sector_t, | 1106 | int (*direct_access) (struct block_device *, sector_t, |
1107 | void **, unsigned long *); | 1107 | void **, unsigned long *); |
1108 | int (*media_changed) (struct gendisk *); | 1108 | int (*media_changed) (struct gendisk *); |
1109 | unsigned long long (*set_capacity) (struct gendisk *, | ||
1110 | unsigned long long); | ||
1109 | int (*revalidate_disk) (struct gendisk *); | 1111 | int (*revalidate_disk) (struct gendisk *); |
1110 | int (*getgeo)(struct block_device *, struct hd_geometry *); | 1112 | int (*getgeo)(struct block_device *, struct hd_geometry *); |
1111 | struct module *owner; | 1113 | struct module *owner; |
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 634c53028fb8..239e24b081a9 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -113,6 +113,7 @@ struct hd_struct { | |||
113 | #define GENHD_FL_UP 16 | 113 | #define GENHD_FL_UP 16 |
114 | #define GENHD_FL_SUPPRESS_PARTITION_INFO 32 | 114 | #define GENHD_FL_SUPPRESS_PARTITION_INFO 32 |
115 | #define GENHD_FL_EXT_DEVT 64 /* allow extended devt */ | 115 | #define GENHD_FL_EXT_DEVT 64 /* allow extended devt */ |
116 | #define GENHD_FL_NATIVE_CAPACITY 128 | ||
116 | 117 | ||
117 | #define BLK_SCSI_MAX_CMDS (256) | 118 | #define BLK_SCSI_MAX_CMDS (256) |
118 | #define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8)) | 119 | #define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8)) |
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; | |||
381 | struct ide_disk_ops { | 381 | struct 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 */ |