2 * Written by: Garry Forsgren, Unisys Corporation
3 * Natalie Protasevich, Unisys Corporation
4 * This file contains the code to configure and interface
5 * with Unisys ES7000 series hardware system manager.
7 * Copyright (c) 2003 Unisys Corporation. All Rights Reserved.
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of version 2 of the GNU General Public License as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it would be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write the Free Software Foundation, Inc., 59
19 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
21 * Contact information: Unisys Corporation, Township Line & Union Meeting
22 * Roads-A, Unisys Way, Blue Bell, Pennsylvania, 19424, or:
24 * http://www.unisys.com
28 #define MIP_PSAI_REG 4
31 #define MIP_SPIN 0xf0000
32 #define MIP_VALID 0x0100000000000000
34 #define MIP_RD_LO(VALUE) (VALUE & 0xffffffff)
37 unsigned long long mip_info;
38 unsigned long long delivery_info;
39 unsigned long long host_reg;
40 unsigned long long mip_reg;
46 unsigned char part_id;
47 unsigned char apic_mode;
55 unsigned long long entry_type;
56 unsigned long long addr;
57 unsigned long long bep_addr;
60 struct es7000_mem_info {
63 unsigned char resv[6];
64 unsigned long long start;
65 unsigned long long size;
68 struct es7000_oem_table {
69 unsigned long long hdr;
70 struct mip_reg_info mip;
72 struct es7000_mem_info shm;
76 struct acpi_table_sdt {
81 enum acpi_table_id id;
87 struct acpi_table_header Header;
93 unsigned long long off_0;
94 unsigned long long off_8;
95 unsigned long long off_10;
96 unsigned long long off_18;
97 unsigned long long off_20;
98 unsigned long long off_28;
99 unsigned long long off_30;
100 unsigned long long off_38;
103 #define MIP_SW_APIC 0x1020b
104 #define MIP_FUNC(VALUE) (VALUE & 0xff)
106 extern void parse_unisys_oem (char *oemptr, int oem_entries);
107 extern int find_unisys_acpi_oem_table(unsigned long *oem_addr, int *length);
108 extern int es7000_start_cpu(int cpu, unsigned long eip);
109 extern void es7000_sw_apic(void);