mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/riscv: introduce irq.h
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
ebb64781dd
commit
6cb8ced1e8
1 file changed
+37
@@ -0,0 +1,37 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_IRQ_H__
|
||||
#define __ASM_RISCV_IRQ_H__
|
||||
|
||||
#include <xen/bug.h>
|
||||
|
||||
/* TODO */
|
||||
#define nr_irqs 0U
|
||||
#define nr_static_irqs 0
|
||||
#define arch_hwdom_irqs(domid) 0U
|
||||
|
||||
#define domain_pirq_to_irq(d, pirq) (pirq)
|
||||
|
||||
#define arch_evtchn_bind_pirq(d, pirq) ((void)((d) + (pirq)))
|
||||
|
||||
struct arch_pirq {
|
||||
};
|
||||
|
||||
struct arch_irq_desc {
|
||||
unsigned int type;
|
||||
};
|
||||
|
||||
static inline void arch_move_irqs(struct vcpu *v)
|
||||
{
|
||||
BUG_ON("unimplemented");
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_IRQ_H__ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
* c-file-style: "BSD"
|
||||
* c-basic-offset: 4
|
||||
* indent-tabs-mode: nil
|
||||
* End:
|
||||
*/
|
||||