You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ide: WIN_* -> ATA_CMD_*
* Use ATA_CMD_* defines instead of WIN_* ones.
While at it:
* EXABYTE_ENABLE_NEXT -> ATA_EXABYTE_ENABLE_NEST
* SETFEATURES_{EN,DIS}_WCACHE -> SETFEATURES_WC_{ON,OFF}
* SETFEATURES_{EN,DIS}_AAM -> SETFEATURES_AAM_{ON,OFF}
* SMART_* -> ATA_SMART_*
* Remove stale comment from ide-proc.c.
Partially based on earlier work by Chris Wedgwood.
Acked-by: Chris Wedgwood <cw@f00f.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -12,14 +12,6 @@
|
||||
* "settings" files. e.g. "cat /proc/ide0/hda/settings"
|
||||
* To write a new value "val" into a specific setting "name", use:
|
||||
* echo "name:val" >/proc/ide/ide0/hda/settings
|
||||
*
|
||||
* Also useful, "cat /proc/ide0/hda/[identify, smart_values,
|
||||
* smart_thresholds, capabilities]" will issue an IDENTIFY /
|
||||
* PACKET_IDENTIFY / SMART_READ_VALUES / SMART_READ_THRESHOLDS /
|
||||
* SENSE CAPABILITIES command to /dev/hda, and then dump out the
|
||||
* returned data as 256 16-bit words. The "hdparm" utility will
|
||||
* be updated someday soon to use this mechanism.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
@@ -349,7 +341,7 @@ static int set_xfer_rate (ide_drive_t *drive, int arg)
|
||||
return -EINVAL;
|
||||
|
||||
memset(&task, 0, sizeof(task));
|
||||
task.tf.command = WIN_SETFEATURES;
|
||||
task.tf.command = ATA_CMD_SET_FEATURES;
|
||||
task.tf.feature = SETFEATURES_XFER;
|
||||
task.tf.nsect = (u8)arg;
|
||||
task.tf_flags = IDE_TFLAG_OUT_FEATURE | IDE_TFLAG_OUT_NSECT |
|
||||
|
||||
Reference in New Issue
Block a user