drm/i915/mtl: Define GSC Proxy component interface

This will be used for communication between the i915 driver
and the mei one for MTL data proxying.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
This commit is contained in:
Alexander Usyskin 2021-10-13 11:07:13 +03:00 committed by Junxiao Chang
parent 1c8eb1a107
commit f3d496183c
2 changed files with 38 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,36 @@
/* SPDX-License-Identifier: MIT */
/*
* Copyright (c) 2022 Intel Corporation
*/
#ifndef _I915_GSC_PROXY_MEI_INTERFACE_H_
#define _I915_GSC_PROXY_MEI_INTERFACE_H_
#include <linux/mutex.h>
#include <linux/device.h>
/**
* 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.
* @proxy_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_ */