1 #ifndef _ASM_X86_MPSPEC_DEF_H
2 #define _ASM_X86_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) | '_')
17 # define MAX_MPC_ENTRY 1024
18 # define MAX_APICS 256
21 # define MAX_APICS 255
23 # define MAX_APICS 32768
27 /* Intel MP Floating Pointer Structure */
29 char signature[4]; /* "_MP_" */
30 unsigned int physptr; /* Configuration table address */
31 unsigned char length; /* Our length (paragraphs) */
32 unsigned char specification; /* Specification version */
33 unsigned char checksum; /* Checksum (makes sum 0) */
34 unsigned char feature1; /* Standard or configuration ? */
35 unsigned char feature2; /* Bit7 set for IMCR|PIC */
36 unsigned char feature3; /* Unused (0) */
37 unsigned char feature4; /* Unused (0) */
38 unsigned char feature5; /* Unused (0) */
41 #define MPC_SIGNATURE "PCMP"
45 unsigned short length; /* Size of table */
50 unsigned int oemptr; /* 0 if not present */
51 unsigned short oemsize; /* 0 if not present */
52 unsigned short oemcount;
53 unsigned int lapic; /* APIC address */
54 unsigned int reserved;
57 /* Followed by entries */
59 #define MP_PROCESSOR 0
64 /* Used by IBM NUMA-Q to describe node locality */
65 #define MP_TRANSLATION 192
67 #define CPU_ENABLED 1 /* Processor is available */
68 #define CPU_BOOTPROCESSOR 2 /* Processor is the BP */
70 #define CPU_STEPPING_MASK 0x000F
71 #define CPU_MODEL_MASK 0x00F0
72 #define CPU_FAMILY_MASK 0x0F00
76 unsigned char apicid; /* Local APIC number */
77 unsigned char apicver; /* Its versions */
78 unsigned char cpuflag;
79 unsigned int cpufeature;
80 unsigned int featureflag; /* CPUID feature value */
81 unsigned int reserved[2];
87 unsigned char bustype[6];
90 /* List of Bus Type string values, Intel MP Spec. */
91 #define BUSTYPE_EISA "EISA"
92 #define BUSTYPE_ISA "ISA"
93 #define BUSTYPE_INTERN "INTERN" /* Internal BUS */
94 #define BUSTYPE_MCA "MCA"
95 #define BUSTYPE_VL "VL" /* Local bus */
96 #define BUSTYPE_PCI "PCI"
97 #define BUSTYPE_PCMCIA "PCMCIA"
98 #define BUSTYPE_CBUS "CBUS"
99 #define BUSTYPE_CBUSII "CBUSII"
100 #define BUSTYPE_FUTURE "FUTURE"
101 #define BUSTYPE_MBI "MBI"
102 #define BUSTYPE_MBII "MBII"
103 #define BUSTYPE_MPI "MPI"
104 #define BUSTYPE_MPSA "MPSA"
105 #define BUSTYPE_NUBUS "NUBUS"
106 #define BUSTYPE_TC "TC"
107 #define BUSTYPE_VME "VME"
108 #define BUSTYPE_XPRESS "XPRESS"
110 #define MPC_APIC_USABLE 0x01
114 unsigned char apicid;
115 unsigned char apicver;
117 unsigned int apicaddr;
122 unsigned char irqtype;
123 unsigned short irqflag;
124 unsigned char srcbus;
125 unsigned char srcbusirq;
126 unsigned char dstapic;
127 unsigned char dstirq;
130 enum mp_irq_source_types {
137 #define MP_IRQDIR_DEFAULT 0
138 #define MP_IRQDIR_HIGH 1
139 #define MP_IRQDIR_LOW 3
141 #define MP_APIC_ALL 0xFF
145 unsigned char irqtype;
146 unsigned short irqflag;
147 unsigned char srcbusid;
148 unsigned char srcbusirq;
149 unsigned char destapic;
150 unsigned char destapiclint;
153 #define MPC_OEM_SIGNATURE "_OEM"
155 struct mpc_oemtable {
157 unsigned short length; /* Size of table */
164 * Default configurations
166 * 1 2 CPU ISA 82489DX
167 * 2 2 CPU EISA 82489DX neither IRQ 0 timer nor IRQ 13 DMA chaining
168 * 3 2 CPU EISA 82489DX
169 * 4 2 CPU MCA 82489DX
181 #endif /* _ASM_X86_MPSPEC_DEF_H */