From owner-svn-src-head@freebsd.org Fri Oct 30 18:55:08 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C3967459503; Fri, 30 Oct 2020 18:55:08 +0000 (UTC) (envelope-from kibab@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CNBMJ4dVhz4MmP; Fri, 30 Oct 2020 18:55:08 +0000 (UTC) (envelope-from kibab@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7EDDB1B418; Fri, 30 Oct 2020 18:55:08 +0000 (UTC) (envelope-from kibab@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09UIt8oX039865; Fri, 30 Oct 2020 18:55:08 GMT (envelope-from kibab@FreeBSD.org) Received: (from kibab@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09UIt8kp039864; Fri, 30 Oct 2020 18:55:08 GMT (envelope-from kibab@FreeBSD.org) Message-Id: <202010301855.09UIt8kp039864@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kibab set sender to kibab@FreeBSD.org using -f From: Ilya Bakulin Date: Fri, 30 Oct 2020 18:55:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367180 - head/sbin/camcontrol X-SVN-Group: head X-SVN-Commit-Author: kibab X-SVN-Commit-Paths: head/sbin/camcontrol X-SVN-Commit-Revision: 367180 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2020 18:55:08 -0000 Author: kibab Date: Fri Oct 30 18:55:08 2020 New Revision: 367180 URL: https://svnweb.freebsd.org/changeset/base/367180 Log: 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 Modified: head/sbin/camcontrol/camcontrol.c Modified: head/sbin/camcontrol/camcontrol.c ============================================================================== --- head/sbin/camcontrol/camcontrol.c Fri Oct 30 18:48:09 2020 (r367179) +++ head/sbin/camcontrol/camcontrol.c Fri Oct 30 18:55:08 2020 (r367180) @@ -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" ); }