summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/icu.h
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
committertmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
commit9ce8a6234736b0446ecc22b1092f693c658a25be (patch)
treedfa10a376890935609a85e9cf3ff54855c2ff66c /sys/i386/isa/icu.h
parent831472121170bbeebce019cd7be85fb15d34bd31 (diff)
downloadFreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.zip
FreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.tar.gz
Clean up the code exporting interrupt statistics via sysctl a bit:
- move the sysctl code to kern_intr.c - do not use INTRCNT_COUNT, but rather eintrcnt - intrcnt to determine the length of the intrcnt array - move the declarations of intrnames, eintrnames, intrcnt and eintrcnt from machine-dependent include files to sys/interrupt.h - remove the hw.nintr sysctl, it is not needed. - fix various style bugs Requested by: bde Reviewed by: bde (some time ago)
Diffstat (limited to 'sys/i386/isa/icu.h')
-rw-r--r--sys/i386/isa/icu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/isa/icu.h b/sys/i386/isa/icu.h
index 0176541..3a7390c 100644
--- a/sys/i386/isa/icu.h
+++ b/sys/i386/isa/icu.h
@@ -126,4 +126,6 @@ extern unsigned imen; /* interrupt mask enable */
#endif /* APIC_IO */
+#define INTRCNT_COUNT (1 + ICU_LEN + 2 * ICU_LEN)
+
#endif /* !_I386_ISA_ICU_H_ */
OpenPOWER on IntegriCloud