summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorIlya Bakulin <kibab@FreeBSD.org>2020-10-30 18:55:08 +0000
committerIlya Bakulin <kibab@FreeBSD.org>2020-10-30 18:55:08 +0000
commit3f3878075ecb12ca1e81fdc3f1324938b773ba13 (patch)
tree1cf14ba7587cd85c2100d40bcc96666f857e507d /sbin
parent147eea393fdafa921e49bdb8cccfede3ba04547a (diff)
downloadsrc-test2-3f3878075ecb12ca1e81fdc3f1324938b773ba13.tar.gz
src-test2-3f3878075ecb12ca1e81fdc3f1324938b773ba13.zip
Add help messages for camcontrol(8) MMCCAM functionality
This adds the help messages for camcontrol(8) in-binary help. Man page will follow in the separate change. Reviewed by: bz Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D25963
Notes
Notes: svn path=/head/; revision=367180
Diffstat (limited to 'sbin')
-rw-r--r--sbin/camcontrol/camcontrol.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 0d53b18912f6..079aefb12269 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -9988,6 +9988,13 @@ usage(int printlong)
" camcontrol timestamp [dev_id][generic_args] <-r [-f format|-m|-U]>|\n"
" <-s <-f format -T time | -U >>\n"
" camcontrol devtype [dev_id]\n"
+" camcontrol mmcsdcmd [dev_id] [[-c mmc_opcode] [-a mmc_arg]\n"
+" [-f mmc_flags] [-l data_len]\n"
+" [-W [-b data_byte]]] |\n"
+" [-F frequency] |\n"
+" [-I]\n"
+" [-1 | -4]\n"
+" [-S high|normal]\n"
" \n"
" camcontrol help\n");
if (!printlong)
@@ -10034,6 +10041,7 @@ usage(int printlong)
"epc send ATA Extended Power Conditions commands\n"
"timestamp report or set the device's timestamp\n"
"devtype report the type of device\n"
+"mmcsdcmd send the given MMC command, needs -c and -a as well\n"
"help this message\n"
"Device Identifiers:\n"
"bus:target specify the bus and target, lun defaults to 0\n"
@@ -10242,6 +10250,18 @@ usage(int printlong)
"-f format the format of the time string passed into strptime(3)\n"
"-T time the time value passed into strptime(3)\n"
"-U set the timestamp of the device to UTC time\n"
+"mmcsdcmd arguments:\n"
+"-c mmc_cmd MMC command to send to the card\n"
+"-a mmc_arg Argument for the MMC command\n"
+"-f mmc_flag Flags to set for the MMC command\n"
+"-l data_len Expect data_len bytes of data in reply and display them\n"
+"-W Fill the data buffer before invoking the MMC command\n"
+"-b data_byte One byte of data to fill the data buffer with\n"
+"-F frequency Operating frequency to set on the controller\n"
+"-4 Set bus width to 4 bit\n"
+"-1 Set bus width to 8 bit\n"
+"-S high | std Set high-speed or standard timing\n"
+"-I Display various card and host controller information\n"
);
}