aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-02-27 04:32:58 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-03-27 01:20:42 +0000
commit5f08cdc1fb62d157b6086b3ea844287e81e3c45d (patch)
tree51684ad1562ed998cebcf80d5cefe9a85622ba44
parentf404109e90eee7f67ddaae3f52286d524a190fa0 (diff)
x86: move the NUM_ISA_IRQS symbol from atpic.c into x86/isa/icu.h
This is not the best location, but works for now. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56003
-rw-r--r--sys/x86/isa/atpic.c2
-rw-r--r--sys/x86/isa/icu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/isa/atpic.c b/sys/x86/isa/atpic.c
index 56566ef8d64d..0c884c5fc484 100644
--- a/sys/x86/isa/atpic.c
+++ b/sys/x86/isa/atpic.c
@@ -68,8 +68,6 @@
#define IMEN_MASK(ai) (IRQ_MASK((ai)->at_irq))
-#define NUM_ISA_IRQS 16
-
static void atpic_init(void *dummy);
inthand_t
diff --git a/sys/x86/isa/icu.h b/sys/x86/isa/icu.h
index ae7303c0e36e..35734750b3b1 100644
--- a/sys/x86/isa/icu.h
+++ b/sys/x86/isa/icu.h
@@ -71,4 +71,6 @@
void atpic_handle_intr(u_int vector, struct trapframe *frame);
void atpic_startup(void);
+#define NUM_ISA_IRQS 16
+
#endif /* !_X86_ISA_ICU_H_ */