diff options
author | 2009-06-07 14:27:11 +0200 | |
---|---|---|
committer | 2009-06-07 14:27:11 +0200 | |
commit | 6250d3af2a1036fb356264442211a4246c7d64c7 (patch) | |
tree | 12474d59b96c0dc518159cb694f0e654cb18b5f6 /include/linux/ide.h | |
parent | Merge branch 'for-linus' into for-next (diff) | |
parent | ide: preserve Host Protected Area by default (v2) (diff) | |
download | linux-6250d3af2a1036fb356264442211a4246c7d64c7.tar.gz linux-6250d3af2a1036fb356264442211a4246c7d64c7.tar.bz2 linux-6250d3af2a1036fb356264442211a4246c7d64c7.zip |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 6 |
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; struct ide_disk_ops { int (*check)(struct ide_drive_s *, const char *); int (*get_capacity)(struct ide_drive_s *); + u64 (*set_capacity)(struct ide_drive_s *, u64); void (*setup)(struct ide_drive_s *); void (*flush)(struct ide_drive_s *); int (*init_media)(struct ide_drive_s *, struct gendisk *); @@ -458,6 +459,8 @@ enum { IDE_DFLAG_NICE1 = (1 << 5), /* device is physically present */ IDE_DFLAG_PRESENT = (1 << 6), + /* disable Host Protected Area */ + IDE_DFLAG_NOHPA = (1 << 7), /* id read from device (synthetic if not set) */ IDE_DFLAG_ID_READ = (1 << 8), IDE_DFLAG_NOPROBE = (1 << 9), @@ -552,8 +555,7 @@ struct ide_drive_s { unsigned int drive_data; /* used by set_pio_mode/dev_select() */ unsigned int failures; /* current failure count */ unsigned int max_failures; /* maximum allowed failure count */ - u64 probed_capacity;/* initial reported media capacity (ide-cd only currently) */ - + u64 probed_capacity;/* initial/native media capacity */ u64 capacity64; /* total number of sectors */ int lun; /* logical unit */ |