of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / arm64 / include / asm / xen / events.h
blob4318866d053c513738c5fb3194652ceaf2a7770a
1 #ifndef _ASM_ARM64_XEN_EVENTS_H
2 #define _ASM_ARM64_XEN_EVENTS_H
4 #include <asm/ptrace.h>
5 #include <asm/atomic.h>
7 enum ipi_vector {
8 XEN_PLACEHOLDER_VECTOR,
10 /* Xen IPIs go here */
11 XEN_NR_IPIS,
14 static inline int xen_irqs_disabled(struct pt_regs *regs)
16 return raw_irqs_disabled_flags((unsigned long) regs->pstate);
19 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
21 /* Rebind event channel is supported by default */
22 static inline bool xen_support_evtchn_rebind(void)
24 return true;
27 #endif /* _ASM_ARM64_XEN_EVENTS_H */