/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM gic

#define TRACE_INCLUDE_PATH trace/hooks

#if !defined(_TRACE_HOOK_GIC_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_GIC_H

#include <trace/hooks/vendor_hooks.h>

#ifdef __GENKSYMS__
#include <linux/cpumask.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#endif

struct cpumask;
struct irq_data;
struct irq_domain;

DECLARE_HOOK(android_vh_gic_v2_resume,
	TP_PROTO(struct irq_domain *domain, void __iomem *dist_base),
	TP_ARGS(domain, dist_base));

DECLARE_HOOK(android_vh_gic_set_affinity,
	TP_PROTO(struct irq_data *d, const struct cpumask *mask_val,
		 bool force, u8 *gic_cpu_map, void __iomem *reg),
	TP_ARGS(d, mask_val, force, gic_cpu_map, reg));

#endif 

#include <trace/define_trace.h>
