xref: /openbsd/sys/dev/pci/drm/include/linux/irqflags.h (revision 7f4dd379)
1 /* Public domain. */
2 
3 #ifndef _LINUX_IRQFLAGS_H
4 #define _LINUX_IRQFLAGS_H
5 
6 #include <machine/intr.h>
7 
8 #define local_irq_save(x)	(x) = splhigh()
9 #define local_irq_restore(x)	splx((x))
10 
11 #define local_irq_disable()	intr_disable()
12 #define local_irq_enable()	intr_enable()
13 
14 static inline int
irqs_disabled(void)15 irqs_disabled(void)
16 {
17 	/* XXX not quite true */
18 	return (1);
19 }
20 
21 #endif
22