Merging upstream version 2.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
078c0dbcc0
commit
635faa7346
571 changed files with 10718 additions and 2738 deletions
|
@ -7,12 +7,11 @@
|
|||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include "util/types.h"
|
||||
#include "ocp-nvme.h"
|
||||
#include "ocp-utils.h"
|
||||
#include "nvme-print.h"
|
||||
|
||||
static const __u8 OCP_FID_CLEAR_FW_ACTIVATION_HISTORY = 0xC1;
|
||||
static const __u8 OCP_FID_CLEAR_PCIE_CORRECTABLE_ERROR_COUNTERS = 0xC3;
|
||||
|
||||
static int ocp_clear_feature(int argc, char **argv, const char *desc, const __u8 fid)
|
||||
{
|
||||
__u32 result = 0;
|
||||
|
@ -80,14 +79,13 @@ int ocp_clear_fw_update_history(int argc, char **argv, struct command *cmd, stru
|
|||
{
|
||||
const char *desc = "OCP Clear Firmware Update History";
|
||||
|
||||
return ocp_clear_feature(argc, argv, desc, OCP_FID_CLEAR_FW_ACTIVATION_HISTORY);
|
||||
return ocp_clear_feature(argc, argv, desc, OCP_FID_CFUH);
|
||||
}
|
||||
|
||||
int ocp_clear_pcie_correctable_errors(int argc, char **argv, struct command *cmd,
|
||||
struct plugin *plugin)
|
||||
struct plugin *plugin)
|
||||
{
|
||||
const char *desc = "OCP Clear PCIe Correctable Error Counters";
|
||||
|
||||
return ocp_clear_feature(argc, argv, desc,
|
||||
OCP_FID_CLEAR_PCIE_CORRECTABLE_ERROR_COUNTERS);
|
||||
return ocp_clear_feature(argc, argv, desc, OCP_FID_CPCIE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue