x86, mce: remove oops_begin() use in 64bit machine check
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / include / asm / numaq.h
blob9f0a5f5d29ec6ff29aae7d427484ad9c2416822f
1 /*
2 * Written by: Patricia Gaughen, IBM Corporation
4 * Copyright (C) 2002, IBM Corp.
6 * All rights reserved.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
16 * NON INFRINGEMENT. See the GNU General Public License for more
17 * details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * Send feedback to <gone@us.ibm.com>
26 #ifndef _ASM_X86_NUMAQ_H
27 #define _ASM_X86_NUMAQ_H
29 #ifdef CONFIG_X86_NUMAQ
31 extern int found_numaq;
32 extern int get_memcfg_numaq(void);
34 extern void *xquad_portio;
37 * SYS_CFG_DATA_PRIV_ADDR, struct eachquadmem, and struct sys_cfg_data are the
39 #define SYS_CFG_DATA_PRIV_ADDR 0x0009d000 /* place for scd in private
40 quad space */
43 * Communication area for each processor on lynxer-processor tests.
45 * NOTE: If you change the size of this eachproc structure you need
46 * to change the definition for EACH_QUAD_SIZE.
48 struct eachquadmem {
49 unsigned int priv_mem_start; /* Starting address of this */
50 /* quad's private memory. */
51 /* This is always 0. */
52 /* In MB. */
53 unsigned int priv_mem_size; /* Size of this quad's */
54 /* private memory. */
55 /* In MB. */
56 unsigned int low_shrd_mem_strp_start;/* Starting address of this */
57 /* quad's low shared block */
58 /* (untranslated). */
59 /* In MB. */
60 unsigned int low_shrd_mem_start; /* Starting address of this */
61 /* quad's low shared memory */
62 /* (untranslated). */
63 /* In MB. */
64 unsigned int low_shrd_mem_size; /* Size of this quad's low */
65 /* shared memory. */
66 /* In MB. */
67 unsigned int lmmio_copb_start; /* Starting address of this */
68 /* quad's local memory */
69 /* mapped I/O in the */
70 /* compatibility OPB. */
71 /* In MB. */
72 unsigned int lmmio_copb_size; /* Size of this quad's local */
73 /* memory mapped I/O in the */
74 /* compatibility OPB. */
75 /* In MB. */
76 unsigned int lmmio_nopb_start; /* Starting address of this */
77 /* quad's local memory */
78 /* mapped I/O in the */
79 /* non-compatibility OPB. */
80 /* In MB. */
81 unsigned int lmmio_nopb_size; /* Size of this quad's local */
82 /* memory mapped I/O in the */
83 /* non-compatibility OPB. */
84 /* In MB. */
85 unsigned int io_apic_0_start; /* Starting address of I/O */
86 /* APIC 0. */
87 unsigned int io_apic_0_sz; /* Size I/O APIC 0. */
88 unsigned int io_apic_1_start; /* Starting address of I/O */
89 /* APIC 1. */
90 unsigned int io_apic_1_sz; /* Size I/O APIC 1. */
91 unsigned int hi_shrd_mem_start; /* Starting address of this */
92 /* quad's high shared memory.*/
93 /* In MB. */
94 unsigned int hi_shrd_mem_size; /* Size of this quad's high */
95 /* shared memory. */
96 /* In MB. */
97 unsigned int mps_table_addr; /* Address of this quad's */
98 /* MPS tables from BIOS, */
99 /* in system space.*/
100 unsigned int lcl_MDC_pio_addr; /* Port-I/O address for */
101 /* local access of MDC. */
102 unsigned int rmt_MDC_mmpio_addr; /* MM-Port-I/O address for */
103 /* remote access of MDC. */
104 unsigned int mm_port_io_start; /* Starting address of this */
105 /* quad's memory mapped Port */
106 /* I/O space. */
107 unsigned int mm_port_io_size; /* Size of this quad's memory*/
108 /* mapped Port I/O space. */
109 unsigned int mm_rmt_io_apic_start; /* Starting address of this */
110 /* quad's memory mapped */
111 /* remote I/O APIC space. */
112 unsigned int mm_rmt_io_apic_size; /* Size of this quad's memory*/
113 /* mapped remote I/O APIC */
114 /* space. */
115 unsigned int mm_isa_start; /* Starting address of this */
116 /* quad's memory mapped ISA */
117 /* space (contains MDC */
118 /* memory space). */
119 unsigned int mm_isa_size; /* Size of this quad's memory*/
120 /* mapped ISA space (contains*/
121 /* MDC memory space). */
122 unsigned int rmt_qmi_addr; /* Remote addr to access QMI.*/
123 unsigned int lcl_qmi_addr; /* Local addr to access QMI. */
127 * Note: This structure must be NOT be changed unless the multiproc and
128 * OS are changed to reflect the new structure.
130 struct sys_cfg_data {
131 unsigned int quad_id;
132 unsigned int bsp_proc_id; /* Boot Strap Processor in this quad. */
133 unsigned int scd_version; /* Version number of this table. */
134 unsigned int first_quad_id;
135 unsigned int quads_present31_0; /* 1 bit for each quad */
136 unsigned int quads_present63_32; /* 1 bit for each quad */
137 unsigned int config_flags;
138 unsigned int boot_flags;
139 unsigned int csr_start_addr; /* Absolute value (not in MB) */
140 unsigned int csr_size; /* Absolute value (not in MB) */
141 unsigned int lcl_apic_start_addr; /* Absolute value (not in MB) */
142 unsigned int lcl_apic_size; /* Absolute value (not in MB) */
143 unsigned int low_shrd_mem_base; /* 0 or 512MB or 1GB */
144 unsigned int low_shrd_mem_quad_offset; /* 0,128M,256M,512M,1G */
145 /* may not be totally populated */
146 unsigned int split_mem_enbl; /* 0 for no low shared memory */
147 unsigned int mmio_sz; /* Size of total system memory mapped I/O */
148 /* (in MB). */
149 unsigned int quad_spin_lock; /* Spare location used for quad */
150 /* bringup. */
151 unsigned int nonzero55; /* For checksumming. */
152 unsigned int nonzeroaa; /* For checksumming. */
153 unsigned int scd_magic_number;
154 unsigned int system_type;
155 unsigned int checksum;
157 * memory configuration area for each quad
159 struct eachquadmem eq[MAX_NUMNODES]; /* indexed by quad id */
162 void numaq_tsc_disable(void);
164 #else
165 static inline int get_memcfg_numaq(void)
167 return 0;
169 #endif /* CONFIG_X86_NUMAQ */
170 #endif /* _ASM_X86_NUMAQ_H */