From patchwork Fri Jul 2 10:40:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 469512 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1255313jao; Fri, 2 Jul 2021 03:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0d/kOlhSRw2VaktGkkzIvplpeJNVJaRNe4qSoCZh64CxhJL4PYPRncDqw8aXBtZTklB1g X-Received: by 2002:a37:f60c:: with SMTP id y12mr4804128qkj.261.1625222816105; Fri, 02 Jul 2021 03:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625222816; cv=none; d=google.com; s=arc-20160816; b=H0qf6cDY+9z9MSBfJFRjtbEW7F9+DF1c9qp0v5LAiaXZk2pHBWZJSQz+boB8PING/u 05fETHwMgFq0G9IUuRT+ZPhYXQZyKnVebuWTFsSEBhHU1R+uWNAAdu1qv63/qgz/0ntQ d/xS/ijFTk22gQFgT5VAQDdPg8d8P9wjAqqWNmIaiFD3xz5lTUthnc7N/GL7+ti0aI5y HOeEYr65pVVpshbB3EKBOLdLv5+2ttJo4QuSLW+mw8ZHFgPKAU6tzOJEj23mjRVyo8oC +i96QRoNcsKnY29IiJXgYPvnnd/Iud1L6qWUbDu9UEBbiQYA4eOKna5oU0g6Zrj4UfiY aZQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=b4cQvDxv3U0hq7oSF/cGe7YwUjG/pIr/hMSWdlGoaBw=; b=nY0v9TzUIiHgg9hpuftzqhiJxjI+9fpgyo/FzB8qwdxq6tDhHDXwscolfuVTRLAJ8w MpVuHC44jR56V6w2BpvffOgZ5y4hPe91gmCNPRCLR6qIapZaEV7bRBmbrJWNCVPBySME /aI9PfepsRfRfLzqNidb87BdksKNA5kjfz4zPX0jGbZZdPw4rDJ4Obn11zNxkFaARTSB WwtQYI7JUnuETW00hnJr/f6fDq/tKLXAgXCxE1x5rqPj5cZaJLDxX2TtKRmEbbYYfC62 ZrsBM6SIfrC673X2qbo7cdiYqDmSJFBiZWhlHA03QAU3OgmYmNm7PKen5GZXMA4KXGvD Nemw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PEVszNmT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s66si2254545qkd.358.2021.07.02.03.46.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Jul 2021 03:46:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PEVszNmT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzGhD-0007Jq-Gi for patch@linaro.org; Fri, 02 Jul 2021 06:46:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzGb1-0004h9-0m for qemu-devel@nongnu.org; Fri, 02 Jul 2021 06:40:31 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:45799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzGaw-0006ck-8C for qemu-devel@nongnu.org; Fri, 02 Jul 2021 06:40:30 -0400 Received: by mail-wm1-x32a.google.com with SMTP id u8-20020a7bcb080000b02901e44e9caa2aso6045621wmj.4 for ; Fri, 02 Jul 2021 03:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b4cQvDxv3U0hq7oSF/cGe7YwUjG/pIr/hMSWdlGoaBw=; b=PEVszNmTs/x19yK9bZJV98DZatrUysk+75eEB8JwhZvZSkjxT0VxfFwjdW2pZv2h8Y 5XVZBuqmBXMtW5bWHmHBEuSw6XiZ9uQtDF2TQeLnW336RgyXImdzoJEVU99rhiX0O4da GK5bEC+Lin/VqFdiKOJFSDS0wJ3FrXTnvWwSjE9p2a6S2+kUmdBegUA1mTRuxsS7XAJB CWhcxRvXFKVC1mRldZ4HJ0/MGjehiK10LuUSZjht71W0x53GB8yKhyXoqO0u64kxuIcw qhVTq96fn35DUGHtTrEIPKLSCwY2WiszXGzomqBEBnhx/TINgHMFLLXwJTMsjfATWwdk OiZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b4cQvDxv3U0hq7oSF/cGe7YwUjG/pIr/hMSWdlGoaBw=; b=ZlBjlCGBCjoX+N7s3e2AyLGg87ko7Z5Ih5TmvllwyudyphIW8uHcuyRgUEM9JHVg9w g1KSw2YQM4aU+eJtGo2NdSOBh08/kFObqLiE2+pjFNoC8ho/L+Awq1JD4ecAr3/r8u/0 ZR8xEyNlmVwN3fAHDQ0IXF3nIwGJl0Bd1LWefbKD7Z/rz6ytsZHiizHMJrchhfJ+NJ4g R4VBwIEh2by1ieSmkHYrmgfRrdj/EJVMsMbqF8DZRFjbaFp5KYiaWv3Ao3a22WRUZUjn 40qVdwNod1tQ7MD/fstBx2xywn2GHJIVB2Q6JoI+O7rqvuHZkcLSchyxhQbfxa1cxB5h QKDA== X-Gm-Message-State: AOAM530uZwn3WzbaOE5D09odaA9uKHQkodgnPD3uEMYsw8BCzI1CnRRg 7V+PoCuvqPLknggqH6n41E6KXQ== X-Received: by 2002:a7b:ce82:: with SMTP id q2mr15536075wmj.60.1625222424453; Fri, 02 Jul 2021 03:40:24 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p16sm2745810wrs.52.2021.07.02.03.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 03:40:24 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 05/11] hw/gpio/pl061: Document the interface of this device Date: Fri, 2 Jul 2021 11:40:12 +0100 Message-Id: <20210702104018.19881-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210702104018.19881-1-peter.maydell@linaro.org> References: <20210702104018.19881-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Uvarov Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Add a comment documenting the "QEMU interface" of this device: which MMIO regions, IRQ lines, GPIO lines, etc it exposes. Signed-off-by: Peter Maydell --- hw/gpio/pl061.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/hw/gpio/pl061.c b/hw/gpio/pl061.c index f3b80c7776f..06a1b82a503 100644 --- a/hw/gpio/pl061.c +++ b/hw/gpio/pl061.c @@ -6,6 +6,13 @@ * Written by Paul Brook * * This code is licensed under the GPL. + * + * QEMU interface: + * + sysbus MMIO region 0: the device registers + * + sysbus IRQ: the GPIOINTR interrupt line + * + unnamed GPIO inputs 0..7: inputs to connect to the emulated GPIO lines + * + unnamed GPIO outputs 0..7: the emulated GPIO lines, considered as + * outputs */ #include "qemu/osdep.h"