1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2023 Intel Corporation
6 #ifndef _ABI_GSC_COMMAND_HEADER_ABI_H
7 #define _ABI_GSC_COMMAND_HEADER_ABI_H
9 #include <linux/types.h>
11 struct intel_gsc_mtl_header {
13 #define GSC_HECI_VALIDITY_MARKER 0xA578875A
20 #define MTL_GSC_HEADER_VERSION 1
22 /* FW allows host to decide host_session handle as it sees fit. */
23 u64 host_session_handle;
25 /* handle generated by FW for messages that need to be re-submitted */
26 u64 gsc_message_handle;
28 u32 message_size; /* lower 20 bits only, upper 12 are reserved */
33 * Bit 1: Session Cleanup;
35 * Bits 16-31: Extension Size
36 * According to internal spec flags are either input or output
37 * we distinguish the flags using OUTFLAG or INFLAG
40 #define GSC_OUTFLAG_MSG_PENDING BIT(0)
41 #define GSC_INFLAG_MSG_CLEANUP BIT(1)