9058f9d795
Command to be sent via the stream interface are written to a local memory page, whose address is then provided to the GSC. The interface supports providing a full sg with multiple pages for both input and output messages, but since for now we only aim to support short and synchronous messages we can use a single page for both input and output. Note that the mei interface expects an sg of 4k pages, while our lmem pages are 64k. If we ever need to support more than 4k we'll need to convert. Added a TODO comment to the code to record this. Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220928004145.745803-9-daniele.ceraolospurio@intel.com
23 lines
596 B
C
23 lines
596 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright(c) 2020, Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __INTEL_PXP_TEE_H__
|
|
#define __INTEL_PXP_TEE_H__
|
|
|
|
#include "intel_pxp.h"
|
|
|
|
int intel_pxp_tee_component_init(struct intel_pxp *pxp);
|
|
void intel_pxp_tee_component_fini(struct intel_pxp *pxp);
|
|
|
|
int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp,
|
|
int arb_session_id);
|
|
|
|
int intel_pxp_tee_stream_message(struct intel_pxp *pxp,
|
|
u8 client_id, u32 fence_id,
|
|
void *msg_in, size_t msg_in_len,
|
|
void *msg_out, size_t msg_out_len);
|
|
|
|
#endif /* __INTEL_PXP_TEE_H__ */
|