mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00

Add heci_cscfi support bit for new CSC engine type. It has same mmio offsets as DG2 GSC but separate interrupt flow. Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240708084906.2827024-1-alexander.usyskin@intel.com
42 lines
997 B
C
42 lines
997 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright(c) 2023, Intel Corporation. All rights reserved.
|
|
*/
|
|
#ifndef __XE_HECI_GSC_DEV_H__
|
|
#define __XE_HECI_GSC_DEV_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_device;
|
|
struct mei_aux_device;
|
|
|
|
/*
|
|
* GSC HECI1 bit corresponds to bit15 and HECI2 to bit14.
|
|
* The reason for this is to allow growth for more interfaces in the future.
|
|
*/
|
|
#define GSC_IRQ_INTF(_x) BIT(15 - (_x))
|
|
|
|
/*
|
|
* CSC HECI1 bit corresponds to bit9 and HECI2 to bit10.
|
|
*/
|
|
#define CSC_IRQ_INTF(_x) BIT(9 + (_x))
|
|
|
|
/**
|
|
* struct xe_heci_gsc - graphics security controller for xe, HECI interface
|
|
*
|
|
* @adev : pointer to mei auxiliary device structure
|
|
* @irq : irq number
|
|
*
|
|
*/
|
|
struct xe_heci_gsc {
|
|
struct mei_aux_device *adev;
|
|
int irq;
|
|
};
|
|
|
|
void xe_heci_gsc_init(struct xe_device *xe);
|
|
void xe_heci_gsc_fini(struct xe_device *xe);
|
|
void xe_heci_gsc_irq_handler(struct xe_device *xe, u32 iir);
|
|
void xe_heci_csc_irq_handler(struct xe_device *xe, u32 iir);
|
|
|
|
#endif /* __XE_HECI_GSC_DEV_H__ */
|