From 91085296c36ed724df2dcb43023bf4768300f3fc Mon Sep 17 00:00:00 2001 From: Karthick Sundarrajan Date: Wed, 4 Dec 2019 17:56:51 -0800 Subject: 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 ] [-s ] [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 WrPkgConfig Write Package Config RdIAMSR MSR Read RdPCIConfig PCI Read RdPCIConfigLocal Local PCI Read WrPCIConfigLocal Local PCI Write RdEndpointConfigPCILocal Endpoint Local PCI Config Read WrEndpointConfigPCILocal Endpoint Local PCI Config Write RdEndpointConfigPCI Endpoint PCI Config Read WrEndpointConfigPCI Endpoint PCI Config Write RdEndpointConfigMMIO Endpoint MMIO Read raw Raw PECI command in bytes Change-Id: I91c9a3775dde47051e558dba7fc54dfeadb924e4 Signed-off-by: Karthick Sundarrajan --- libpeci/peci_cmds.c | 9 ++++----- 1 file 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 "); printf("\t%-28s%s\n", "RdIAMSR", "MSR Read "); - printf("\t%-28s%s\n", "RdPCIConfig", - "PCI Read for specific hex address "); + printf("\t%-28s%s\n", "RdPCIConfig", "PCI Read "); printf("\t%-28s%s\n", "RdPCIConfigLocal", - "Local PCI Read for specific hex address "); + "Local PCI Read "); printf("\t%-28s%s\n", "WrPCIConfigLocal", - "Local PCI Write for specific hex address "); + "Local PCI Write "); printf("\t%-28s%s\n", "RdEndpointConfigPCILocal", "Endpoint Local PCI Config Read "); printf("\t%-28s%s\n", "WrEndpointConfigPCILocal", @@ -65,7 +64,7 @@ void Usage(char* progname) "Endpoint PCI Config Write "); printf("\t%-28s%s\n", "RdEndpointConfigMMIO", "Endpoint MMIO Read "); - 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"); } -- cgit v1.2.3