From patchwork Mon Feb 27 14:01:34 2023 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: 657047 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2376122wrb; Mon, 27 Feb 2023 06:18:19 -0800 (PST) X-Google-Smtp-Source: AK7set9LinriMNDjjVnv4xm0EEPp5dPUrQjkrYY9p1PvEaBxPulu6UDwj8z4SLuxroTVqzdr8RQl X-Received: by 2002:ac8:4e41:0:b0:3bf:e2ff:4c2f with SMTP id e1-20020ac84e41000000b003bfe2ff4c2fmr1258309qtw.51.1677507499032; Mon, 27 Feb 2023 06:18:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507499; cv=none; d=google.com; s=arc-20160816; b=KqZd1j9HToZVrh5rRVUB+5XbpZsT5EYgCK6ijSo5GNfa2SZgx10fGPy4j4mmNItGIp mdsGCCXTS8CjBjKDM3/CgWdtlsbQ5TgFIXk2vwJEZW+SbDkAQDWvdUU1pAFKfLL59/7t 7XXDI9OEYVJIW/lGn2wO9LpZNDtZpQvNjZT4BEPITL/WzsuufSIAk8Q4FclywaUK1Mys qrxsvb3NzRF0N2g/JMNrUR09xSKk/MbDmT5/CO9M1DitYNqXgH2ZzVkoZW9x5mfCpZSv b3tYzpycJ+j9wEvUQL2JzDpmnOFcuphFFH8gfebLwBN2kiHFKYvo9BPFKx+G1tOaMukl bibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=vrhLzk8HW2g05OSZG+hwxdkUshGUicJmNC2ENXTKq80=; b=BftqN82PuDiolsUEOS7Mu/46acoScYVbaqStB2fXLyNaJTYms/IVchklMyFq6+jMvV yN5MsjdDXKsmIXgd3tOT0wrXuMPiv60wFGpi17muMj6D5FouO1jmikHn3x/IsUo5X3Nn NwvwwFyAFDRYJETwSvkaIF4hakuQV2yyV/CRCdu7oAwGAWaFE0T1Kfg3sQNG4Bccpm55 CRco5dhc2/BZ9awQCQ6L9TjEXQ+ZVCxmgxtLMvNXbn+x+i7lG1aR6pQdDVywlrVD23t3 e4n7epgLSlQ5S0yWBYPjLTHQAk2gwaisGdJoTyOjL64LppVyCr1YPg6FW95AsISJFhAR p7yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=feGgLKga; 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 z19-20020ac87f93000000b003b63a6cc22dsi6931770qtj.701.2023.02.27.06.18.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:18:19 -0800 (PST) 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=feGgLKga; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWeCI-00053e-5A; Mon, 27 Feb 2023 09:09:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWeBt-0004ZG-R9 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:22 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeBr-0000Wv-Tq for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:21 -0500 Received: by mail-wm1-x32c.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso2270000wmo.0 for ; Mon, 27 Feb 2023 06:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=vrhLzk8HW2g05OSZG+hwxdkUshGUicJmNC2ENXTKq80=; b=feGgLKgaCHgd+HjWFrrbfUsA/+rdkZp6v8Xvu+irLptmSmsXjOE67Rr+6fUR5tX3Vl l9c6N8UDrN38TqKAtcGHpLnzJzHEMvhphtOmymHTAyWQUYIxrtmnz8nuwbQ/WoUvPCHS zV5+aHfOi+8ZZzprfdMcBjma3Su5wjfJLkeo5miMgvZIfize1v40SjddUmjhwdh5m269 rA2a+3ZJBTKcdMOk/evQX72gf5EDe8FyRGRBpUY8iCs7AG77S97gPzoRIEJKDXnpV53V 3Jl65MVpZAfVtkV2DfkJI/s6li1hIQv/Wv+zmiZAJu6rWk2CBwtAMy3onwTVWbRpbxSU 3spQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vrhLzk8HW2g05OSZG+hwxdkUshGUicJmNC2ENXTKq80=; b=SdNrFaWehp6Cgd1ngCPR3bfmvtrB3d5hxAVWER0ys8znNyuoM2JoD+/8SSIp/1eapl L8IybFKGDJ0ZmlntAZp34iKdnZKgV4o5Q6zrRC57qgNWGSnagPVsZmcPqSDX/nx2Bh1R uA6gDpMfnjoCnBFgt/7/L1bbnRciTl87Y6/ug+rvonm4wcrnNiEn2BLontgp4iSQthQ0 ftOHx09Pn0lBr/UNiy9LlNhBRYSejb7uXV51G/vgqemUBRSXjJNixx4WB5BCcYJwu+dx 4Dh2Xz8racImYkeBGVB65jMBsiiWCrYlcTSPC3/oalQx8cyNnx5dgxx0kNbheBP384t9 uXjQ== X-Gm-Message-State: AO0yUKUnV+L2E+uXe7JMwxDwCkwQiWS54KAvcrElX4JBZIHYP+UFuPDI lrBA3c5/3D807cggx8eCzbmtIo8Bji8lTvPj X-Received: by 2002:a05:600c:491f:b0:3eb:3974:aad7 with SMTP id f31-20020a05600c491f00b003eb3974aad7mr6048404wmp.24.1677506958489; Mon, 27 Feb 2023 06:09:18 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id i14-20020a05600c354e00b003e91b9a92c9sm9704286wmq.24.2023.02.27.06.09.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:09:18 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 087/126] hw/usb/xhci-nec: Declare QOM macros for NEC_XHCI Date: Mon, 27 Feb 2023 15:01:34 +0100 Message-Id: <20230227140213.35084-78-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org NEC_XHCI is a QOM object type. Declare its macros / typedefs using OBJECT_DECLARE_SIMPLE_TYPE(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230220150515.32549-7-philmd@linaro.org> --- hw/usb/hcd-xhci-nec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c index 13c9ac5dbd..d732be0ef9 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -27,14 +27,16 @@ #include "hcd-xhci-pci.h" -typedef struct XHCINecState { +OBJECT_DECLARE_SIMPLE_TYPE(XHCINecState, NEC_XHCI) + +struct XHCINecState { /*< private >*/ XHCIPciState parent_obj; /*< public >*/ uint32_t flags; uint32_t intrs; uint32_t slots; -} XHCINecState; +}; static Property nec_xhci_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msi", XHCIPciState, msi, ON_OFF_AUTO_AUTO),