--- embedaddon/smartmontools/atacmds.h 2013/07/22 01:17:35 1.1.1.3 +++ embedaddon/smartmontools/atacmds.h 2013/10/14 07:54:03 1.1.1.4 @@ -25,7 +25,7 @@ #ifndef ATACMDS_H_ #define ATACMDS_H_ -#define ATACMDS_H_CVSID "$Id: atacmds.h,v 1.1.1.3 2013/07/22 01:17:35 misho Exp $" +#define ATACMDS_H_CVSID "$Id: atacmds.h,v 1.1.1.4 2013/10/14 07:54:03 misho Exp $" #include "dev_interface.h" // ata_device @@ -834,6 +834,12 @@ int ataDoesSmartWork(ata_device * device); // returns 1 if SMART supported, 0 if not supported or can't tell int ataSmartSupport(const ata_identify_device * drive); + +// Return values: +// 1: Write Cache Reordering enabled +// 2: Write Cache Reordering disabled +// -1: error +int ataGetSetSCTWriteCacheReordering(ata_device * device, bool enable, bool persistent, bool set); // Return values: // 1: SMART enabled