summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/apicreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-12-09 21:08:52 +0000
committerjhb <jhb@FreeBSD.org>2013-12-09 21:08:52 +0000
commit8f255ea165a896995147f9fa6bed650719514134 (patch)
tree204e60af766b8e06ddafeecaaaad50fd6ac19188 /sys/x86/include/apicreg.h
parent36411863bc92774bbdd1043ad1ad0aa5e98fef7d (diff)
downloadFreeBSD-src-8f255ea165a896995147f9fa6bed650719514134.zip
FreeBSD-src-8f255ea165a896995147f9fa6bed650719514134.tar.gz
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.
Diffstat (limited to 'sys/x86/include/apicreg.h')
-rw-r--r--sys/x86/include/apicreg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/x86/include/apicreg.h b/sys/x86/include/apicreg.h
index 00cb571..283d50e 100644
--- a/sys/x86/include/apicreg.h
+++ b/sys/x86/include/apicreg.h
@@ -357,6 +357,16 @@ typedef struct IOAPIC ioapic_t;
#define APIC_TDCR_128 0x0a
#define APIC_TDCR_1 0x0b
+/* LVT table indices */
+#define APIC_LVT_LINT0 0
+#define APIC_LVT_LINT1 1
+#define APIC_LVT_TIMER 2
+#define APIC_LVT_ERROR 3
+#define APIC_LVT_PMC 4
+#define APIC_LVT_THERMAL 5
+#define APIC_LVT_CMCI 6
+#define APIC_LVT_MAX APIC_LVT_CMCI
+
/******************************************************************************
* I/O APIC defines
*/
OpenPOWER on IntegriCloud