mcap: linux: Options -c and -C may be confusing
This patch modifies the Access Device Configuration Space option to -a instead of -c. Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
This commit is contained in:
parent
7f27f03c84
commit
fab2546cd5
2 changed files with 6 additions and 6 deletions
|
@ -34,7 +34,7 @@ Steps to Run
|
|||
-d Dump all the MCAP Registers
|
||||
-v Verbose information of MCAP Device
|
||||
-h/H Help
|
||||
-c <address> [type [data]] Access Device Configuration Space
|
||||
-a <address> [type [data]] Access Device Configuration Space
|
||||
here type[data] - b for byte data [8 bits]
|
||||
here type[data] - h for half word data [16 bits]
|
||||
here type[data] - w for word data [32 bits]
|
||||
|
@ -54,7 +54,7 @@ NOTES
|
|||
be either b/h/w (byte/half-word/word). For example,
|
||||
|
||||
-> Reading a byte
|
||||
./mcap -x 0x8011 -c 0x354 b
|
||||
./mcap -x 0x8011 -a 0x354 b
|
||||
|
||||
-> Writing a word
|
||||
./mcap -x 0x8011 -c 0x354 w 0x3
|
||||
./mcap -x 0x8011 -a 0x354 w 0x3
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include "mcap_lib.h"
|
||||
|
||||
static const char options[] = "x:pC:rmfdvHhDc::";
|
||||
static const char options[] = "x:pC:rmfdvHhDa::";
|
||||
static char help_msg[] =
|
||||
"Usage: mcap [options]\n"
|
||||
"\n"
|
||||
|
@ -53,7 +53,7 @@ static char help_msg[] =
|
|||
"\t-d\t\tDump all the MCAP Registers\n"
|
||||
"\t-v\t\tVerbose information of MCAP Device\n"
|
||||
"\t-h/H\t\tHelp\n"
|
||||
"\t-c <address> [type [data]] Access Device Configuration Space\n"
|
||||
"\t-a <address> [type [data]] Access Device Configuration Space\n"
|
||||
"\t\t here type[data] - b for byte data [8 bits]\n"
|
||||
"\t\t here type[data] - h for half word data [16 bits]\n"
|
||||
"\t\t here type[data] - w for word data [32 bits]\n"
|
||||
|
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
|||
|
||||
while ((i = getopt(argc, argv, options)) != -1) {
|
||||
switch (i) {
|
||||
case 'c':
|
||||
case 'a':
|
||||
access_config = 1;
|
||||
break;
|
||||
case 'd':
|
||||
|
|
Loading…
Add table
Reference in a new issue