From nobody Tue Feb 10 04:13:03 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1713917289; cv=none; d=zohomail.com; s=zohoarc; b=P6wtXovI1T8pfY4+ClwLpVxslx93SWk3PNapJbFQR861NIiHxCCex19nCzkpmOCmiu59bJwhOruJqbIlBwU3FriTVhyoobI+xlthr6io1aEw8k3jot+suKfhUJVO8+WDFAOQk4ttPCbxb2cD2atF7Dsp02XBjwu2qS9N/HztLcA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1713917289; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=goud9gHsQ1loeXVRRVo0k++ahKQfDIqVQRuZmbG1Fz0=; b=e8UlPRGjLgWJtlMvDcxikz/3G5h8H9e0sI0z0aE5uW0wcvkEYCzusFTIVOzCvzjECQBkrrnPIm9ld6+ASH0qmesvo7vcDW3I7Rt9l2B5poAty4xpxCY2wfk3z+8QifqRKoKqKdIQomuN7vY5FeKBuE1wq3wzHRx6TjhOYR67sfs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1713917289092792.4678051724185; Tue, 23 Apr 2024 17:08:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzQAO-0002M6-2V; Tue, 23 Apr 2024 20:07:16 -0400 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 1rzQA6-0002B2-Pk for qemu-devel@nongnu.org; Tue, 23 Apr 2024 20:07:00 -0400 Received: from mgamail.intel.com ([198.175.65.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzQA1-0003fo-6v for qemu-devel@nongnu.org; Tue, 23 Apr 2024 20:06:56 -0400 Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 17:06:39 -0700 Received: from dongwonk-z390-aorus-ultra.fm.intel.com ([10.105.129.124]) by fmviesa009.fm.intel.com with ESMTP; 23 Apr 2024 17:06:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713917213; x=1745453213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zGPc9BpKFyOaqTNjizaXfLMwnvj0P5Ga7VzHuANs3ys=; b=dFFeyKbLrie+Hb65jkG4CquWUuFl36ThYk3eqoM7zWBDDGKzOH7AIW3z 2WLChfHrPgNDhz19dqcdkyO57DH+HAIqQ/deY4dwsrDjlVZo0eb5Zch4L SipELCP3z2B6Gp87oDyM/wl+p4pIYpGYKDby1YZRiHi26HyKKDSA1lvGH 4V2L0UG0xTBRJt0Aa7YSFM0Nl9k+7PoRBK7jp+wU2OId5a/CMQ0Na08t1 4P8ywWtfBinOZ82/2TZpRtYCJxTtvgUxoH85qU0yXtRG/brpSPQNtf/CF hSMY8YhBsqczzmj4dDqDCOBX8BWg8CYiXr/5iaUTD8bWcOHbx3LXSGxt7 Q==; X-CSE-ConnectionGUID: AtEd0MupTde7yRkEo6Twtw== X-CSE-MsgGUID: mR6a262CRkeOOk+oYHKaFw== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="20950438" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="20950438" X-CSE-ConnectionGUID: Ogd7RRNSSK2DHrvIKy9Gfg== X-CSE-MsgGUID: JccHjq+OQNK2wXBmGE1CWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24533451" From: dongwon.kim@intel.com To: qemu-devel@nongnu.org Cc: marcandre.lureau@redhat.com, berrange@redhat.com, philmd@linaro.org Subject: [PATCH v11 6/6] ui/console: move QemuDmaBuf struct def to dmabuf.c Date: Tue, 23 Apr 2024 17:02:19 -0700 Message-Id: <20240424000219.1025101-7-dongwon.kim@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240424000219.1025101-1-dongwon.kim@intel.com> References: <20240424000219.1025101-1-dongwon.kim@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.175.65.12; envelope-from=dongwon.kim@intel.com; helo=mgamail.intel.com X-Spam_score_int: -50 X-Spam_score: -5.1 X-Spam_bar: ----- X-Spam_report: (-5.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.67, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1713917290556100001 From: Dongwon Kim To complete privatizing process of QemuDmaBuf, QemuDmaBuf struct def is moved to dmabuf.c Suggested-by: Marc-Andr=C3=A9 Lureau Cc: Philippe Mathieu-Daud=C3=A9 Cc: Daniel P. Berrang=C3=A9 Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim --- include/ui/dmabuf.h | 19 +------------------ ui/dmabuf.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/include/ui/dmabuf.h b/include/ui/dmabuf.h index ba7cd3754a..d1f5a946c0 100644 --- a/include/ui/dmabuf.h +++ b/include/ui/dmabuf.h @@ -10,24 +10,7 @@ #ifndef DMABUF_H #define DMABUF_H =20 -typedef struct QemuDmaBuf { - int fd; - uint32_t width; - uint32_t height; - uint32_t stride; - uint32_t fourcc; - uint64_t modifier; - uint32_t texture; - uint32_t x; - uint32_t y; - uint32_t backing_width; - uint32_t backing_height; - bool y0_top; - void *sync; - int fence_fd; - bool allow_fences; - bool draw_submitted; -} QemuDmaBuf; +typedef struct QemuDmaBuf QemuDmaBuf; =20 QemuDmaBuf *qemu_dmabuf_new(uint32_t width, uint32_t height, uint32_t stride, uint32_t x, diff --git a/ui/dmabuf.c b/ui/dmabuf.c index 40f3ed33bf..411e1b6f97 100644 --- a/ui/dmabuf.c +++ b/ui/dmabuf.c @@ -10,6 +10,25 @@ #include "qemu/osdep.h" #include "ui/dmabuf.h" =20 +struct QemuDmaBuf { + int fd; + uint32_t width; + uint32_t height; + uint32_t stride; + uint32_t fourcc; + uint64_t modifier; + uint32_t texture; + uint32_t x; + uint32_t y; + uint32_t backing_width; + uint32_t backing_height; + bool y0_top; + void *sync; + int fence_fd; + bool allow_fences; + bool draw_submitted; +}; + QemuDmaBuf *qemu_dmabuf_new(uint32_t width, uint32_t height, uint32_t stride, uint32_t x, uint32_t y, uint32_t backing_width, --=20 2.34.1