pcitool_usage.c revision 09b1eac246a4e627fcbd1ce5bf8005746cbe45ea
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * CDDL HEADER START
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * The contents of this file are subject to the terms of the
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * Common Development and Distribution License (the "License").
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * You may not use this file except in compliance with the License.
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * See the License for the specific language governing permissions
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * and limitations under the License.
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * When distributing Covered Code, include this CDDL HEADER in each
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * If applicable, add the following below this CDDL HEADER, with the
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * fields enclosed by brackets "[]" replaced with your own identifying
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * information: Portions Copyright [yyyy] [name of copyright owner]
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * CDDL HEADER END
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth * Use is subject to license terms.
b1dd958f54f8bfa984d306bb8ca8264855761d7bcthstatic char *pcitool_usage_reg[] = {
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"Register peek/poke mode:",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" %s <PCI nexus node>",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -n bank=<register bank>",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" where register bank is 0 for mapped jbus space and 1 for pcie space",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" (only on applicable platforms)",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -n base=<base address>",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" where base address is a physical base address of a register bank",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" (only on applicable platforms (e.g. sun4v) where bank info is "
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth "unavailable)",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -d bus=<bus>,dev=<dev>,func=<func>,bank=<register bank>",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -d bdf=<bus>.<dev>.<func>,bank=<register bank>",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -d bus=<bus>,dev=<dev>,func=<func> | bdf=<bus>.<dev>.<func> ,",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ config | bar0 | bar1 | bar2 | bar3 | bar4 | bar5 | rom ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" (spaces added for clarity but are not allowed in the command)",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -n and -d options may also include:",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -w <value to write> ] [ -r ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -o <offset> ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -s 1 | 2 | 4 | 8 ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -e b | l ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" [ -b <number bytes to dump> [ -c ] [ -x ] ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" -n may also include:",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"Probe mode:",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" %s [ <PCI nexus node> ] [ -a ] [ -p ] [ -v ] [ -q ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" %s <PCI nexus node> [ -p [ bus=<bus>,dev=<dev>,func=<func> ] [ -v ] [ -q ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" %s <PCI nexus node> [ -p [ bdf=<bus>.<dev>.<func> ] [ -v ] [-q ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"Probe mode",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"----------",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"-p [ bus=<bus>,dev=<dev>,func=<func> | bdf=<bus>.<dev>.<func> ]",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth" Specify bus, device and/or function of devices to search for and dump.",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"-a Probe all buses. By default, pcitool checks the PCI nexus node's",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"bus-range property to restrict which buses are probed. This option",
b1dd958f54f8bfa984d306bb8ca8264855761d7bcth"cannot be combined with an explicit bus specification.",
static char *pcitool_usage_intr[] = {