brintos

brintos / linux-shallow public Read only

0
0
Text · 997 B · 48b3b18 Raw
42 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright(c) 2023, Intel Corporation. All rights reserved.4 */5#ifndef __XE_HECI_GSC_DEV_H__6#define __XE_HECI_GSC_DEV_H__7 8#include <linux/types.h>9 10struct xe_device;11struct mei_aux_device;12 13/*14 * GSC HECI1 bit corresponds to bit15 and HECI2 to bit14.15 * The reason for this is to allow growth for more interfaces in the future.16 */17#define GSC_IRQ_INTF(_x) BIT(15 - (_x))18 19/*20 * CSC HECI1 bit corresponds to bit9 and HECI2 to bit10.21 */22#define CSC_IRQ_INTF(_x) BIT(9 + (_x))23 24/**25 * struct xe_heci_gsc - graphics security controller for xe, HECI interface26 *27 * @adev : pointer to mei auxiliary device structure28 * @irq : irq number29 *30 */31struct xe_heci_gsc {32	struct mei_aux_device *adev;33	int irq;34};35 36void xe_heci_gsc_init(struct xe_device *xe);37void xe_heci_gsc_fini(struct xe_device *xe);38void xe_heci_gsc_irq_handler(struct xe_device *xe, u32 iir);39void xe_heci_csc_irq_handler(struct xe_device *xe, u32 iir);40 41#endif /* __XE_HECI_GSC_DEV_H__ */42