Message ID | 20190531061351.22973-21-stewart@linux.ibm.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45FZFk6l5Kz9s00 for <incoming@patchwork.ozlabs.org>; Fri, 31 May 2019 16:25:46 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45FZFk5vNfzDqZ2 for <incoming@patchwork.ozlabs.org>; Fri, 31 May 2019 16:25:46 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=stewart@linux.ibm.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45FZ0L4V7wzDqY6 for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 16:14:10 +1000 (AEST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4V6B3Tn086894 for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 02:14:06 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0b-001b2d01.pphosted.com with ESMTP id 2stxsbg1t9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 02:14:06 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <skiboot@lists.ozlabs.org> from <stewart@linux.ibm.com>; Fri, 31 May 2019 07:14:05 +0100 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 31 May 2019 07:14:03 +0100 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4V6E2gS36831314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 06:14:02 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F94D28060 for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 06:14:02 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0F8C28058 for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 06:14:01 +0000 (GMT) Received: from birb.localdomain (unknown [9.185.142.91]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP for <skiboot@lists.ozlabs.org>; Fri, 31 May 2019 06:14:01 +0000 (GMT) Received: by birb.localdomain (Postfix, from userid 1000) id B1BB4503F61; Fri, 31 May 2019 16:13:56 +1000 (AEST) From: Stewart Smith <stewart@linux.ibm.com> To: skiboot@lists.ozlabs.org Date: Fri, 31 May 2019 16:12:21 +1000 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531061351.22973-1-stewart@linux.ibm.com> References: <20190531061351.22973-1-stewart@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 19053106-0040-0000-0000-000004F6E3CF X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011189; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01211088; UDB=6.00636341; IPR=6.00992124; MB=3.00027126; MTD=3.00000008; XFM=3.00000015; UTC=2019-05-31 06:14:04 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19053106-0041-0000-0000-00000902FE9E Message-Id: <20190531061351.22973-21-stewart@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-31_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905310040 Subject: [Skiboot] [PATCH 020/110] doc: prettify OPAL_PCI_[GET|SET]_POWER_STATE X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Big documentation cleanup/expansion
|
expand
|
diff --git a/doc/opal-api/opal-pci-get-power-state-120.rst b/doc/opal-api/opal-pci-get-power-state-120.rst index 9e6f94b7084d..fa0375d83e85 100644 --- a/doc/opal-api/opal-pci-get-power-state-120.rst +++ b/doc/opal-api/opal-pci-get-power-state-120.rst @@ -1,6 +1,14 @@ +.. _OPAL_PCI_GET_POWER_STATE: + OPAL_PCI_GET_POWER_STATE ======================== +.. code-block:: c + + #define OPAL_PCI_GET_POWER_STATE 120 + + int64_t opal_pci_get_power_state(uint64_t id, uint64_t data); + Get PCI slot power state Parameter @@ -20,11 +28,10 @@ in buffer pointed by @data. Return Codes ------------ -OPAL_SUCCESS - PCI slot's power state is retrieved successfully -OPAL_PARAMETER +:ref:`OPAL_SUCCESS` + PCI slot's power state is retrieved successfully +:ref:`OPAL_PARAMETER` The indicated PCI slot isn't found - -OPAL_UNSUPPORTED +:ref:`OPAL_UNSUPPORTED` Power state retrieval not supported on the PCI slot diff --git a/doc/opal-api/opal-pci-set-power-state-121.rst b/doc/opal-api/opal-pci-set-power-state-121.rst index 54c1a33ac2ff..0209efb79316 100644 --- a/doc/opal-api/opal-pci-set-power-state-121.rst +++ b/doc/opal-api/opal-pci-set-power-state-121.rst @@ -1,6 +1,14 @@ +.. _OPAL_PCI_SET_POWER_STATE: + OPAL_PCI_SET_POWER_STATE ======================== +.. code-block:: c + + #define OPAL_PCI_SET_POWER_STATE 121 + + int64_t opal_pci_set_power_state(uint64_t async_token, uint64_t id, uint64_t data); + Set PCI slot power state Parameters @@ -27,8 +35,8 @@ indicated PCI slot (by @id) in PCI hotplug path. User will receive an asychronous message after calling the API. The message contains the API completion status: event (Power off or on), device node's -phandle identifying the PCI slot, errcode (e.g. OPAL_SUCCESS). The API returns -OPAL_ASYNC_COMPLETION for the case. +phandle identifying the PCI slot, errcode (e.g. :ref:`OPAL_SUCCESS`). The API returns +:ref:`OPAL_ASYNC_COMPLETION` for the case. The states OPAL_PCI_SLOT_OFFLINE and OPAL_PCI_SLOT_ONLINE are used for removing or adding devices behind the slot. The device nodes in the device tree are @@ -39,14 +47,11 @@ message will be sent. Return Codes ------------ -OPAL_SUCCESS +:ref:`OPAL_SUCCESS` PCI hotplug on the slot is completed successfully - -OPAL_ASYNC_COMPLETION +:ref:`OPAL_ASYNC_COMPLETION` PCI hotplug needs further message to confirm - -OPAL_PARAMETER +:ref:`OPAL_PARAMETER` The indicated PCI slot isn't found - -OPAL_UNSUPPORTED +:ref:`OPAL_UNSUPPORTED` Setting power state not supported on the PCI slot
Signed-off-by: Stewart Smith <stewart@linux.ibm.com> --- doc/opal-api/opal-pci-get-power-state-120.rst | 17 ++++++++++---- doc/opal-api/opal-pci-set-power-state-121.rst | 23 +++++++++++-------- 2 files changed, 26 insertions(+), 14 deletions(-)