aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/mach-es7000/es7000.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/i386/mach-es7000/es7000.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/i386/mach-es7000/es7000.h')
-rw-r--r--arch/i386/mach-es7000/es7000.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/arch/i386/mach-es7000/es7000.h b/arch/i386/mach-es7000/es7000.h
new file mode 100644
index 000000000000..70691f0c4ce2
--- /dev/null
+++ b/arch/i386/mach-es7000/es7000.h
@@ -0,0 +1,110 @@
1/*
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.
6 *
7 * Copyright (c) 2003 Unisys Corporation. All Rights Reserved.
8 *
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.
12 *
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.
16 *
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.
20 *
21 * Contact information: Unisys Corporation, Township Line & Union Meeting
22 * Roads-A, Unisys Way, Blue Bell, Pennsylvania, 19424, or:
23 *
24 * http://www.unisys.com
25 */
26
27#define MIP_REG 1
28#define MIP_PSAI_REG 4
29
30#define MIP_BUSY 1
31#define MIP_SPIN 0xf0000
32#define MIP_VALID 0x0100000000000000ULL
33#define MIP_PORT(VALUE) ((VALUE >> 32) & 0xffff)
34
35#define MIP_RD_LO(VALUE) (VALUE & 0xffffffff)
36
37struct mip_reg_info {
38 unsigned long long mip_info;
39 unsigned long long delivery_info;
40 unsigned long long host_reg;
41 unsigned long long mip_reg;
42};
43
44struct part_info {
45 unsigned char type;
46 unsigned char length;
47 unsigned char part_id;
48 unsigned char apic_mode;
49 unsigned long snum;
50 char ptype[16];
51 char sname[64];
52 char pname[64];
53};
54
55struct psai {
56 unsigned long long entry_type;
57 unsigned long long addr;
58 unsigned long long bep_addr;
59};
60
61struct es7000_mem_info {
62 unsigned char type;
63 unsigned char length;
64 unsigned char resv[6];
65 unsigned long long start;
66 unsigned long long size;
67};
68
69struct es7000_oem_table {
70 unsigned long long hdr;
71 struct mip_reg_info mip;
72 struct part_info pif;
73 struct es7000_mem_info shm;
74 struct psai psai;
75};
76
77struct acpi_table_sdt {
78 unsigned long pa;
79 unsigned long count;
80 struct {
81 unsigned long pa;
82 enum acpi_table_id id;
83 unsigned long size;
84 } entry[50];
85};
86
87struct oem_table {
88 struct acpi_table_header Header;
89 u32 OEMTableAddr;
90 u32 OEMTableSize;
91};
92
93struct mip_reg {
94 unsigned long long off_0;
95 unsigned long long off_8;
96 unsigned long long off_10;
97 unsigned long long off_18;
98 unsigned long long off_20;
99 unsigned long long off_28;
100 unsigned long long off_30;
101 unsigned long long off_38;
102};
103
104#define MIP_SW_APIC 0x1020b
105#define MIP_FUNC(VALUE) (VALUE & 0xff)
106
107extern int parse_unisys_oem (char *oemptr, int oem_entries);
108extern int find_unisys_acpi_oem_table(unsigned long *oem_addr, int *length);
109extern int es7000_start_cpu(int cpu, unsigned long eip);
110extern void es7000_sw_apic(void);