#ifndef _I915_PXP_TEE_INTERFACE_H_
#define _I915_PXP_TEE_INTERFACE_H_
#include <linux/mutex.h>
#include <linux/device.h>
struct scatterlist;
struct i915_pxp_component_ops {
struct module *owner;
int (*send)(struct device *dev, const void *message, size_t size,
unsigned long timeout_ms);
int (*recv)(struct device *dev, void *buffer, size_t size,
unsigned long timeout_ms);
ssize_t (*gsc_command)(struct device *dev, u8 client_id, u32 fence_id,
struct scatterlist *sg_in, size_t total_in_len,
struct scatterlist *sg_out);
};
struct i915_pxp_component {
struct device *tee_dev;
const struct i915_pxp_component_ops *ops;
struct mutex mutex;
};
#endif