1 #ifndef __ASM_MPSPEC_DEF_H
2 #define __ASM_MPSPEC_DEF_H
5 * Structure definitions for SMP machines following the
6 * Intel Multiprocessing Specification 1.1 and 1.4.
10 * This tag identifies where the SMP configuration
14 #define SMP_MAGIC_IDENT (('_'<<24)|('P'<<16)|('M'<<8)|'_')
16 #define MAX_MPC_ENTRY 1024
19 struct intel_mp_floating
21 char mpf_signature
[4]; /* "_MP_" */
22 unsigned long mpf_physptr
; /* Configuration table address */
23 unsigned char mpf_length
; /* Our length (paragraphs) */
24 unsigned char mpf_specification
;/* Specification version */
25 unsigned char mpf_checksum
; /* Checksum (makes sum 0) */
26 unsigned char mpf_feature1
; /* Standard or configuration ? */
27 unsigned char mpf_feature2
; /* Bit7 set for IMCR|PIC */
28 unsigned char mpf_feature3
; /* Unused (0) */
29 unsigned char mpf_feature4
; /* Unused (0) */
30 unsigned char mpf_feature5
; /* Unused (0) */
33 struct mp_config_table
35 char mpc_signature
[4];
36 #define MPC_SIGNATURE "PCMP"
37 unsigned short mpc_length
; /* Size of table */
38 char mpc_spec
; /* 0x01 */
41 char mpc_productid
[12];
42 unsigned long mpc_oemptr
; /* 0 if not present */
43 unsigned short mpc_oemsize
; /* 0 if not present */
44 unsigned short mpc_oemcount
;
45 unsigned long mpc_lapic
; /* APIC address */
46 unsigned long reserved
;
49 /* Followed by entries */
51 #define MP_PROCESSOR 0
56 #define MP_TRANSLATION 192 /* Used by IBM NUMA-Q to describe node locality */
58 struct mpc_config_processor
60 unsigned char mpc_type
;
61 unsigned char mpc_apicid
; /* Local APIC number */
62 unsigned char mpc_apicver
; /* Its versions */
63 unsigned char mpc_cpuflag
;
64 #define CPU_ENABLED 1 /* Processor is available */
65 #define CPU_BOOTPROCESSOR 2 /* Processor is the BP */
66 unsigned long mpc_cpufeature
;
67 #define CPU_STEPPING_MASK 0x0F
68 #define CPU_MODEL_MASK 0xF0
69 #define CPU_FAMILY_MASK 0xF00
70 unsigned long mpc_featureflag
; /* CPUID feature value */
71 unsigned long mpc_reserved
[2];
76 unsigned char mpc_type
;
77 unsigned char mpc_busid
;
78 unsigned char mpc_bustype
[6];
81 /* List of Bus Type string values, Intel MP Spec. */
82 #define BUSTYPE_EISA "EISA"
83 #define BUSTYPE_ISA "ISA"
84 #define BUSTYPE_INTERN "INTERN" /* Internal BUS */
85 #define BUSTYPE_MCA "MCA"
86 #define BUSTYPE_VL "VL" /* Local bus */
87 #define BUSTYPE_PCI "PCI"
88 #define BUSTYPE_PCMCIA "PCMCIA"
89 #define BUSTYPE_CBUS "CBUS"
90 #define BUSTYPE_CBUSII "CBUSII"
91 #define BUSTYPE_FUTURE "FUTURE"
92 #define BUSTYPE_MBI "MBI"
93 #define BUSTYPE_MBII "MBII"
94 #define BUSTYPE_MPI "MPI"
95 #define BUSTYPE_MPSA "MPSA"
96 #define BUSTYPE_NUBUS "NUBUS"
97 #define BUSTYPE_TC "TC"
98 #define BUSTYPE_VME "VME"
99 #define BUSTYPE_XPRESS "XPRESS"
100 #define BUSTYPE_NEC98 "NEC98"
102 struct mpc_config_ioapic
104 unsigned char mpc_type
;
105 unsigned char mpc_apicid
;
106 unsigned char mpc_apicver
;
107 unsigned char mpc_flags
;
108 #define MPC_APIC_USABLE 0x01
109 unsigned long mpc_apicaddr
;
112 struct mpc_config_intsrc
114 unsigned char mpc_type
;
115 unsigned char mpc_irqtype
;
116 unsigned short mpc_irqflag
;
117 unsigned char mpc_srcbus
;
118 unsigned char mpc_srcbusirq
;
119 unsigned char mpc_dstapic
;
120 unsigned char mpc_dstirq
;
123 enum mp_irq_source_types
{
130 #define MP_IRQDIR_DEFAULT 0
131 #define MP_IRQDIR_HIGH 1
132 #define MP_IRQDIR_LOW 3
135 struct mpc_config_lintsrc
137 unsigned char mpc_type
;
138 unsigned char mpc_irqtype
;
139 unsigned short mpc_irqflag
;
140 unsigned char mpc_srcbusid
;
141 unsigned char mpc_srcbusirq
;
142 unsigned char mpc_destapic
;
143 #define MP_APIC_ALL 0xFF
144 unsigned char mpc_destapiclint
;
147 struct mp_config_oemtable
149 char oem_signature
[4];
150 #define MPC_OEM_SIGNATURE "_OEM"
151 unsigned short oem_length
; /* Size of table */
152 char oem_rev
; /* 0x01 */
157 struct mpc_config_translation
159 unsigned char mpc_type
;
160 unsigned char trans_len
;
161 unsigned char trans_type
;
162 unsigned char trans_quad
;
163 unsigned char trans_global
;
164 unsigned char trans_local
;
165 unsigned short trans_reserved
;
169 * Default configurations
171 * 1 2 CPU ISA 82489DX
172 * 2 2 CPU EISA 82489DX neither IRQ 0 timer nor IRQ 13 DMA chaining
173 * 3 2 CPU EISA 82489DX
174 * 4 2 CPU MCA 82489DX