mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
87a4c85d3a
Create mei-gscfi auxiliary device and configure interrupts to be consumed by mei-gsc device driver. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
35 lines
833 B
C
35 lines
833 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;
|
|
|
|
/*
|
|
* The 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))
|
|
|
|
/**
|
|
* 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);
|
|
|
|
#endif /* __XE_HECI_GSC_DEV_H__ */
|