From patchwork Wed Dec 29 22:52:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12701139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 995B9C433F5 for ; Wed, 29 Dec 2021 22:54:22 +0000 (UTC) Received: from localhost ([::1]:42956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2hpt-0006LX-54 for qemu-devel@archiver.kernel.org; Wed, 29 Dec 2021 17:54:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2hnq-0004Pj-RT for qemu-devel@nongnu.org; Wed, 29 Dec 2021 17:52:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:38349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2hno-0000Q8-PV for qemu-devel@nongnu.org; Wed, 29 Dec 2021 17:52:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640818332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LwJfUpmeeEXAK7Kppp3cEs5xp8T8nEqb5Z0Nu1PlcQk=; b=g25qk9+73nFfDut9mwFXdQdx3CKlftJO0jJkjWN1HYagoC2wburX8csglYQUYhdjGMr0hd caLpwo/FkDv9n0Y/ticEwMR0BK4eQAeTeu4mhINUUjNcJS8iiEbrMj8FpuoLT5XCJUn8sK vNKXE5hGFrRaCzYew80X1ToIMK8t2Uw= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-589-nDlcm0TWPt-x0HT1dTWvpw-1; Wed, 29 Dec 2021 17:52:10 -0500 X-MC-Unique: nDlcm0TWPt-x0HT1dTWvpw-1 Received: by mail-wr1-f72.google.com with SMTP id w25-20020adf8bd9000000b001a255212b7cso5392853wra.18 for ; Wed, 29 Dec 2021 14:52:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YM5/7G2bbT2zSiTpibf5KDTYTSxWd5fMK8CWNnzsx5o=; b=6K3a7LouRle7d8td+KhfA7xlYclwBjoZFgpnMJYoL7HlvOlalaIMQqkeVhOAO/ilkp AZwiiAvG/BuBtkoxI+PjuaowMZY2umnOWy1cvR+FLsSPRDdttcfkfaMhYvzgUGsAmJ3x UMOuF0Uk7NI6qHE6JfzHtfb6QfwuDdKdakQSCnnzIeLwkjpytW7LqYgpjnPThLUjrocF OI602hW8/8Rza98nXK11hbnVcFsCf7rOyntThyn/1BeZNRFHQavJYcTPjZXFLLAMyCUw zTi5eQfHQZwyX4e4C5eRO2qN0yI8dFYTnRt+aa6zxsG1L34xsnuejZbrNfkZ4nV8qqXm vLxg== X-Gm-Message-State: AOAM532syjRilbdYiMs3tMNAPxm08Mqq8x+C/LFeeNi79FCflsKJM3Yv /ZpsP4FBMqb0sN63BCOOBV+MBzvqLj9fidELJgoqjCBc+MU9G1YTbJhgtkU0W9MTEuF1xYu/Sz1 Eyd+XO+WFJLb67vcr8ADcLBZ/UsJroTC94ODcHKRIK+7Z6ikvJzZQDzSb/B60nedu X-Received: by 2002:a05:600c:6009:: with SMTP id az9mr23517980wmb.32.1640818329032; Wed, 29 Dec 2021 14:52:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3t5SaJC4GfUu61Mz+Zv99TEOU1JdILr2ps4LNzh/9BTX/Gxgug2G1tlxYQldKlkVRbvaepw== X-Received: by 2002:a05:600c:6009:: with SMTP id az9mr23517958wmb.32.1640818328797; Wed, 29 Dec 2021 14:52:08 -0800 (PST) Received: from x1w.. (26.red-83-50-86.dynamicip.rima-tde.net. [83.50.86.26]) by smtp.gmail.com with ESMTPSA id u9sm24765655wmm.7.2021.12.29.14.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 14:52:08 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/3] hw/sysbus: Document GPIO related functions Date: Wed, 29 Dec 2021 23:52:03 +0100 Message-Id: <20211229225206.171882-1-philmd@redhat.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=170.10.129.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) DKIMWL_WL_HIGH=-0.573, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Peter Maydell , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Richard Henderson , Yanan Wang , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Reduce the scope of a pair of qdev/sysbus functions, then document the sysbus functions related to creating and connecting GPIO lines. Based-on: <20211218130437.1516929-1-f4bug@amsat.org> Philippe Mathieu-Daudé (3): hw/qdev: Restrict qdev_get_gpio_out_connector() to qdev-internal.h hw/sysbus: Restrict sysbus_get_connected_irq() to sysbus-internal.h hw/sysbus: Document GPIO related functions hw/core/qdev-internal.h | 15 +++++++++ hw/core/sysbus-internal.h | 16 +++++++++ include/hw/qdev-core.h | 18 ---------- include/hw/sysbus.h | 69 ++++++++++++++++++++++++++++++++++++--- hw/core/gpio.c | 1 + hw/core/platform-bus.c | 2 +- hw/core/sysbus.c | 2 ++ 7 files changed, 99 insertions(+), 24 deletions(-) create mode 100644 hw/core/qdev-internal.h create mode 100644 hw/core/sysbus-internal.h