1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
// SPDX-License-Identifier: GPL-2.0-or-later
#undef CMD_INC_FILE
#define CMD_INC_FILE plugins/wdc/wdc-nvme
#if !defined(WDC_NVME) || defined(CMD_HEADER_MULTI_READ)
#define WDC_NVME
#define WDC_PLUGIN_VERSION "2.7.0"
#include "cmd.h"
PLUGIN(NAME("wdc", "Western Digital vendor specific extensions", WDC_PLUGIN_VERSION),
COMMAND_LIST(
ENTRY("cap-diag", "WDC Capture-Diagnostics", wdc_cap_diag)
ENTRY("drive-log", "WDC Drive Log", wdc_drive_log)
ENTRY("get-crash-dump", "WDC Crash Dump", wdc_get_crash_dump)
ENTRY("get-pfail-dump", "WDC Pfail Dump", wdc_get_pfail_dump)
ENTRY("id-ctrl", "WDC identify controller", wdc_id_ctrl)
ENTRY("purge", "WDC Purge", wdc_purge)
ENTRY("purge-monitor", "WDC Purge Monitor", wdc_purge_monitor)
ENTRY("vs-internal-log", "WDC Internal Firmware Log",
wdc_vs_internal_fw_log)
ENTRY("vs-nand-stats", "WDC NAND Statistics", wdc_vs_nand_stats)
ENTRY("vs-smart-add-log", "WDC Additional Smart Log",
wdc_vs_smart_add_log)
ENTRY("clear-pcie-correctable-errors",
"WDC Clear PCIe Correctable Error Count",
wdc_clear_pcie_correctable_errors)
ENTRY("drive-essentials", "WDC Drive Essentials",
wdc_drive_essentials)
ENTRY("get-drive-status", "WDC Get Drive Status",
wdc_drive_status)
ENTRY("clear-assert-dump", "WDC Clear Assert Dump",
wdc_clear_assert_dump)
ENTRY("drive-resize", "WDC Drive Resize", wdc_drive_resize)
ENTRY("vs-fw-activate-history", "WDC Get FW Activate History",
wdc_vs_fw_activate_history)
ENTRY("clear-fw-activate-history",
"WDC Clear FW Activate History",
wdc_clear_fw_activate_history)
ENTRY("enc-get-log", "WDC Get Enclosure Log", wdc_enc_get_log)
ENTRY("vs-telemetry-controller-option",
"WDC Enable/Disable Controller Initiated Telemetry Log",
wdc_vs_telemetry_controller_option)
ENTRY("vs-error-reason-identifier",
"WDC Telemetry Reason Identifier",
wdc_reason_identifier)
ENTRY("log-page-directory", "WDC Get Log Page Directory",
wdc_log_page_directory)
ENTRY("namespace-resize", "WDC NamespaceDrive Resize",
wdc_namespace_resize)
ENTRY("vs-drive-info", "WDC Get Drive Info", wdc_vs_drive_info)
ENTRY("vs-temperature-stats", "WDC Get Temperature Stats",
wdc_vs_temperature_stats)
ENTRY("capabilities", "WDC Device Capabilities",
wdc_capabilities)
ENTRY("cloud-SSD-plugin-version",
"WDC Cloud SSD Plugin Version",
wdc_cloud_ssd_plugin_version)
ENTRY("vs-pcie-stats", "WDC VS PCIE Statistics",
wdc_vs_pcie_stats)
ENTRY("get-latency-monitor-log",
"WDC Get Latency Monitor Log Page",
wdc_get_latency_monitor_log)
ENTRY("get-error-recovery-log",
"WDC Get Error Recovery Log Page",
wdc_get_error_recovery_log)
ENTRY("get-dev-capabilities-log",
"WDC Get Device Capabilities Log Page",
wdc_get_dev_capabilities_log)
ENTRY("get-unsupported-reqs-log",
"WDC Get Unsupported Requirements Log Page",
wdc_get_unsupported_reqs_log)
ENTRY("cloud-boot-SSD-version",
"WDC Get the Cloud Boot SSD Version",
wdc_cloud_boot_SSD_version)
ENTRY("vs-cloud-log", "WDC Get the Cloud Log Page",
wdc_vs_cloud_log)
ENTRY("vs-hw-rev-log", "WDC Get the Hardware Revision Log Page",
wdc_vs_hw_rev_log)
ENTRY("vs-device-waf",
"WDC Calculate Device Write Amplication Factor",
wdc_vs_device_waf)
ENTRY("set-latency-monitor-feature",
"WDC set Latency Monitor feature",
wdc_set_latency_monitor_feature)
)
);
#endif
#include "define_cmd.h"
|