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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B23E4C05027 for ; Wed, 8 Feb 2023 14:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbjBHOYe (ORCPT ); Wed, 8 Feb 2023 09:24:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjBHOY3 (ORCPT ); Wed, 8 Feb 2023 09:24:29 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A075B11E9B for ; Wed, 8 Feb 2023 06:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675866268; x=1707402268; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gx+h2J07uC09J4mp83Cnkr7HYdM2lGx3Da2TpLhDkc0=; b=IC2uFgtiWbpAaZLyuFV5ze6y2Qo17g3BcfBWp/Q/K08M7Uxw4XuUb7zi S5TjHMJi+4siBhhbaSlR2HWGKQ5g596S97ZoW004cPzDQ6I2b2dddcROc mi9W+ZHsyz8owoD2LodjL7OhPgMWM6mW3zMiXzrS/IrVYTNIJR8vAtjp1 IaEiSrSl8MHYUWEcMMVybz8CFGU+mZIcvePfhx85J1sC2mg6g7ru/pIXG RNPiU55XVef9Ksyo6IpdlUYd+IG22dAMZqVrn4KLBmm9pcik9JB5Q/plO bJgmu57qs1YxA8Dxsegyf2ms0aUHCCZvUWmkLrjPyxA7xK6aRZ+BwRppB w==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="392201360" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="392201360" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 06:24:18 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="791214076" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="791214076" Received: from twinkler-lnx.jer.intel.com ([10.12.87.42]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 06:24:16 -0800 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , Vitaly Lubart , Ceraolo Spurio Daniele , Alan Previn , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, Tomas Winkler Subject: [char-misc-next v3 1/2] drm/i915/mtl: Define GSC Proxy component interface Date: Wed, 8 Feb 2023 16:23:57 +0200 Message-Id: <20230208142358.1401618-2-tomas.winkler@intel.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230208142358.1401618-1-tomas.winkler@intel.com> References: <20230208142358.1401618-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Usyskin GSC Proxy component is used for communication between the Intel graphics driver and MEI driver. Cc: Daniele Ceraolo Spurio Cc: Alan Previn Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- V2: This patch was missing in the first series V3: Don't maintain the interface header under mei but under drm include/drm/i915_component.h | 3 +- include/drm/i915_gsc_proxy_mei_interface.h | 36 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 include/drm/i915_gsc_proxy_mei_interface.h diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h index c1e2a43d2d1e..56a84ee1c64c 100644 --- a/include/drm/i915_component.h +++ b/include/drm/i915_component.h @@ -29,7 +29,8 @@ enum i915_component_type { I915_COMPONENT_AUDIO = 1, I915_COMPONENT_HDCP, - I915_COMPONENT_PXP + I915_COMPONENT_PXP, + I915_COMPONENT_GSC_PROXY, }; /* MAX_PORT is the number of port diff --git a/include/drm/i915_gsc_proxy_mei_interface.h b/include/drm/i915_gsc_proxy_mei_interface.h new file mode 100644 index 000000000000..e817bb316d5c --- /dev/null +++ b/include/drm/i915_gsc_proxy_mei_interface.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright (c) 2022-2023 Intel Corporation + */ + +#ifndef _I915_GSC_PROXY_MEI_INTERFACE_H_ +#define _I915_GSC_PROXY_MEI_INTERFACE_H_ + +#include +#include + +/** + * struct i915_gsc_proxy_component_ops - ops for GSC Proxy services. + * @owner: Module providing the ops + * @send: sends data through GSC proxy + * @recv: receives data through GSC proxy + */ +struct i915_gsc_proxy_component_ops { + struct module *owner; + + int (*send)(struct device *dev, const void *buf, size_t size); + int (*recv)(struct device *dev, void *buf, size_t size); +}; + +/** + * struct i915_gsc_proxy_component - Used for communication between i915 and + * MEI drivers for GSC proxy services + * @mei_dev: device that provide the GSC proxy service. + * @ops: Ops implemented by GSC proxy driver, used by i915 driver. + */ +struct i915_gsc_proxy_component { + struct device *mei_dev; + const struct i915_gsc_proxy_component_ops *ops; +}; + +#endif /* _I915_GSC_PROXY_MEI_INTERFACE_H_ */ -- 2.39.1