summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/apicreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-06-06 17:22:15 +0000
committerjhb <jhb@FreeBSD.org>2003-06-06 17:22:15 +0000
commit55d014b2d90281f91c184837c6d30b05146e83f6 (patch)
tree7c66d69badfb403388f5e9bcae66c55e0ae5c1dc /sys/amd64/include/apicreg.h
parentab21c0675241e6aebed28ab55870d55522f86c2f (diff)
downloadFreeBSD-src-55d014b2d90281f91c184837c6d30b05146e83f6.zip
FreeBSD-src-55d014b2d90281f91c184837c6d30b05146e83f6.tar.gz
- Document the thermal and performance counter LVT entries in the local
APIC. - Add a lvt_thermal member to the LAPIC struct. - Add constants for the SMI and INIT LVT delivery modes.
Diffstat (limited to 'sys/amd64/include/apicreg.h')
-rw-r--r--sys/amd64/include/apicreg.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/amd64/include/apicreg.h b/sys/amd64/include/apicreg.h
index e72ffb1..c47e1db 100644
--- a/sys/amd64/include/apicreg.h
+++ b/sys/amd64/include/apicreg.h
@@ -93,8 +93,8 @@
* 300 ICR_LOW Interrupt Command Reg. (0-31) R/W
* 310 ICR_HI Interrupt Command Reg. (32-63) R/W
* 320 Local Vector Table (Timer) R/W
- * 330 Reserved
- * 340 Reserved
+ * 330 Local Vector Table (Thermal) R/W (PIV+)
+ * 340 Local Vector Table (Performance) R/W (P6+)
* 350 LVT1 Local Vector Table (LINT0) R/W
* 360 LVT2 Local Vector Table (LINT1) R/W
* 370 LVT3 Local Vector Table (ERROR) R/W
@@ -176,7 +176,7 @@ struct LAPIC {
u_int32_t icr_lo; PAD3;
u_int32_t icr_hi; PAD3;
u_int32_t lvt_timer; PAD3;
- /* reserved */ PAD4;
+ u_int32_t lvt_thermal; PAD3;
u_int32_t lvt_pcint; PAD3;
u_int32_t lvt_lint0; PAD3;
u_int32_t lvt_lint1; PAD3;
@@ -297,7 +297,9 @@ typedef struct IOAPIC ioapic_t;
#define APIC_LVT_VECTOR 0x000000ff
#define APIC_LVT_DM 0x00000700
# define APIC_LVT_DM_FIXED 0x00000000
+# define APIC_LVT_DM_SMI 0x00000200
# define APIC_LVT_DM_NMI 0x00000400
+# define APIC_LVT_DM_INIT 0x00000500
# define APIC_LVT_DM_EXTINT 0x00000700
#define APIC_LVT_DS 0x00001000
#define APIC_LVT_IIPP 0x00002000
OpenPOWER on IntegriCloud