summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthick Sundarrajan <karthick.sundarrajan@intel.com>2019-12-05 04:56:51 +0300
committerBills, Jason M <jason.m.bills@intel.com>2019-12-05 22:31:55 +0300
commit91085296c36ed724df2dcb43023bf4768300f3fc (patch)
tree2e74b17a04e6eedba91ae3297d0cdbf87946130b
parente1dbcef575309efeb04d275565a6e9649f3b89dd (diff)
downloadprovingground-91085296c36ed724df2dcb43023bf4768300f3fc.tar.xz
Update usage info of peci_cmds utility
peci_cmds utility is modified to accept both decimal and hex numbers recently. Updating the usage/help information accordingly. Tested: Usage: ./peci_cmds [-a <addr>] [-s <size>] <command> [parameters] Options: -h Display this help information -v Display additional information about the command -a Address of the target. Accepted values are 48-55 (0x30-0x37). Default is 48 (0x30) -s Size of data to read or write in bytes. Accepted values are 1, 2, 4, 8, and 16. Default is 4 Commands: Ping Ping the target GetTemp Get the temperature GetDIB Get the DIB RdPkgConfig Read Package Config <Index Parameter> WrPkgConfig Write Package Config <Index Parameter Data> RdIAMSR MSR Read <Thread Address> RdPCIConfig PCI Read <Bus Dev Func [Reg]> RdPCIConfigLocal Local PCI Read <Bus Dev Func [Reg]> WrPCIConfigLocal Local PCI Write <Bus Dev Func Reg Data> RdEndpointConfigPCILocal Endpoint Local PCI Config Read <Seg Bus Dev Func Reg> WrEndpointConfigPCILocal Endpoint Local PCI Config Write <Seg Bus Dev Func Reg Data> RdEndpointConfigPCI Endpoint PCI Config Read <Seg Bus Dev Func Reg> WrEndpointConfigPCI Endpoint PCI Config Write <Seg Bus Dev Func Reg Data> RdEndpointConfigMMIO Endpoint MMIO Read <AType Bar Seg Bus Dev Func Reg> raw Raw PECI command in bytes Change-Id: I91c9a3775dde47051e558dba7fc54dfeadb924e4 Signed-off-by: Karthick Sundarrajan <karthick.sundarrajan@intel.com>
-rw-r--r--libpeci/peci_cmds.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpeci/peci_cmds.c b/libpeci/peci_cmds.c
index b705e91..62edc53 100644
--- a/libpeci/peci_cmds.c
+++ b/libpeci/peci_cmds.c
@@ -49,12 +49,11 @@ void Usage(char* progname)
printf("\t%-28s%s\n", "WrPkgConfig",
"Write Package Config <Index Parameter Data>");
printf("\t%-28s%s\n", "RdIAMSR", "MSR Read <Thread Address>");
- printf("\t%-28s%s\n", "RdPCIConfig",
- "PCI Read for specific hex address <Bus Dev Func [Reg]>");
+ printf("\t%-28s%s\n", "RdPCIConfig", "PCI Read <Bus Dev Func [Reg]>");
printf("\t%-28s%s\n", "RdPCIConfigLocal",
- "Local PCI Read for specific hex address <Bus Dev Func [Reg]>");
+ "Local PCI Read <Bus Dev Func [Reg]>");
printf("\t%-28s%s\n", "WrPCIConfigLocal",
- "Local PCI Write for specific hex address <Bus Dev Func Reg Data>");
+ "Local PCI Write <Bus Dev Func Reg Data>");
printf("\t%-28s%s\n", "RdEndpointConfigPCILocal",
"Endpoint Local PCI Config Read <Seg Bus Dev Func Reg>");
printf("\t%-28s%s\n", "WrEndpointConfigPCILocal",
@@ -65,7 +64,7 @@ void Usage(char* progname)
"Endpoint PCI Config Write <Seg Bus Dev Func Reg Data>");
printf("\t%-28s%s\n", "RdEndpointConfigMMIO",
"Endpoint MMIO Read <AType Bar Seg Bus Dev Func Reg>");
- printf("\t%-28s%s\n", "raw", "Raw PECI command in hex bytes");
+ printf("\t%-28s%s\n", "raw", "Raw PECI command in bytes");
printf("\n");
}