1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2020 Intel Corporation
6 #ifndef _I915_PXP_TEE_INTERFACE_H_
7 #define _I915_PXP_TEE_INTERFACE_H_
9 #include <linux/mutex.h>
10 #include <linux/device.h>
13 * struct i915_pxp_component_ops - ops for PXP services.
14 * @owner: Module providing the ops
15 * @send: sends data to PXP
16 * @receive: receives data from PXP
18 struct i915_pxp_component_ops {
20 * @owner: owner of the module provding the ops
24 int (*send)(struct device *dev, const void *message, size_t size);
25 int (*recv)(struct device *dev, void *buffer, size_t size);
29 * struct i915_pxp_component - Used for communication between i915 and TEE
30 * drivers for the PXP services
31 * @tee_dev: device that provide the PXP service from TEE Bus.
32 * @pxp_ops: Ops implemented by TEE driver, used by i915 driver.
34 struct i915_pxp_component {
35 struct device *tee_dev;
36 const struct i915_pxp_component_ops *ops;
38 /* To protect the above members. */
42 #endif /* _I915_TEE_PXP_INTERFACE_H_ */