1*0a8e247dSMichal Wajdeczko /* SPDX-License-Identifier: MIT */ 2*0a8e247dSMichal Wajdeczko /* 3*0a8e247dSMichal Wajdeczko * Copyright © 2014-2021 Intel Corporation 4*0a8e247dSMichal Wajdeczko */ 5*0a8e247dSMichal Wajdeczko 6*0a8e247dSMichal Wajdeczko #ifndef _ABI_GUC_MESSAGES_ABI_H 7*0a8e247dSMichal Wajdeczko #define _ABI_GUC_MESSAGES_ABI_H 8*0a8e247dSMichal Wajdeczko 9*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_TYPE_SHIFT 28 10*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_TYPE_MASK (0xF << INTEL_GUC_MSG_TYPE_SHIFT) 11*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_DATA_SHIFT 16 12*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_DATA_MASK (0xFFF << INTEL_GUC_MSG_DATA_SHIFT) 13*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_CODE_SHIFT 0 14*0a8e247dSMichal Wajdeczko #define INTEL_GUC_MSG_CODE_MASK (0xFFFF << INTEL_GUC_MSG_CODE_SHIFT) 15*0a8e247dSMichal Wajdeczko 16*0a8e247dSMichal Wajdeczko enum intel_guc_msg_type { 17*0a8e247dSMichal Wajdeczko INTEL_GUC_MSG_TYPE_REQUEST = 0x0, 18*0a8e247dSMichal Wajdeczko INTEL_GUC_MSG_TYPE_RESPONSE = 0xF, 19*0a8e247dSMichal Wajdeczko }; 20*0a8e247dSMichal Wajdeczko 21*0a8e247dSMichal Wajdeczko #endif /* _ABI_GUC_MESSAGES_ABI_H */ 22