X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ataprint.h;h=e83020fa4ea6398c803b745908bb4fbdae6b5992;hb=6c5eb127c873bd2414f28b25ba1f9bae494cf516;hp=7a7a9bcbbab4b6afa51069f69cb0d079a06e7698;hpb=a3628d53b3b5aa7d9a93922ad6d3f3cd17cdfce8;p=mirror_smartmontools-debian.git diff --git a/ataprint.h b/ataprint.h index 7a7a9bc..e83020f 100644 --- a/ataprint.h +++ b/ataprint.h @@ -13,8 +13,7 @@ * any later version. * * You should have received a copy of the GNU General Public License - * (for example COPYING); if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * (for example COPYING); If not, see . * * This code was originally developed as a Senior Thesis by Michael Cornwell * at the Concurrent Systems Laboratory (now part of the Storage Systems @@ -26,7 +25,7 @@ #ifndef ATAPRINT_H_ #define ATAPRINT_H_ -#define ATAPRINT_H_CVSID "$Id: ataprint.h 3508 2012-02-12 15:47:56Z chrfranke $\n" +#define ATAPRINT_H_CVSID "$Id: ataprint.h 3825 2013-07-06 21:38:25Z samm2 $\n" #include @@ -47,6 +46,7 @@ struct ata_log_request struct ata_print_options { bool drive_info; + int identify_word_level, identify_bit_level; bool smart_check_status; bool smart_general_values; bool smart_vendor_attrib; @@ -81,8 +81,10 @@ struct ata_print_options unsigned sct_temp_int; bool sct_temp_int_pers; - unsigned char output_format; // 0=old, 1=brief - unsigned char fix_firmwarebug; // FIX_*, see atacmds.h + enum { FMT_BRIEF = 0x01, FMT_HEX_ID = 0x02, FMT_HEX_VAL = 0x04 }; + unsigned char output_format; // FMT_* flags + + firmwarebug_defs firmwarebugs; // -F options bool fix_swapped_id; // Fix swapped ID strings returned by some buggy drivers ata_vendor_attr_defs attribute_defs; // -v options @@ -104,9 +106,12 @@ struct ata_print_options bool set_security_freeze; // Freeze ATA security bool get_wcache; // print write cache status int set_wcache; // disable(-1), enable(1) write cache + bool sct_wcache_reorder_get; // print write cache reordering status + int sct_wcache_reorder_set; // disable(-1), enable(1) write cache reordering ata_print_options() : drive_info(false), + identify_word_level(-1), identify_bit_level(-1), smart_check_status(false), smart_general_values(false), smart_vendor_attrib(false), @@ -129,7 +134,6 @@ struct ata_print_options smart_selftest_type(-1), smart_selftest_force(false), sct_temp_int(0), sct_temp_int_pers(false), output_format(0), - fix_firmwarebug(FIX_NOTSPECIFIED), fix_swapped_id(false), ignore_presets(false), show_presets(false), @@ -140,7 +144,8 @@ struct ata_print_options get_lookahead(false), set_lookahead(0), set_standby(0), set_standby_now(false), get_security(false), set_security_freeze(false), - get_wcache(false), set_wcache(0) + get_wcache(false), set_wcache(0), + sct_wcache_reorder_get(false), sct_wcache_reorder_set(0) { } };