Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * Hypervisor Software File: cpu-seeprom.h | |
5 | * | |
6 | * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
7 | * | |
8 | * - Do no alter or remove copyright notices | |
9 | * | |
10 | * - Redistribution and use of this software in source and binary forms, with | |
11 | * or without modification, are permitted provided that the following | |
12 | * conditions are met: | |
13 | * | |
14 | * - Redistribution of source code must retain the above copyright notice, | |
15 | * this list of conditions and the following disclaimer. | |
16 | * | |
17 | * - Redistribution in binary form must reproduce the above copyright notice, | |
18 | * this list of conditions and the following disclaimer in the | |
19 | * documentation and/or other materials provided with the distribution. | |
20 | * | |
21 | * Neither the name of Sun Microsystems, Inc. or the names of contributors | |
22 | * may be used to endorse or promote products derived from this software | |
23 | * without specific prior written permission. | |
24 | * | |
25 | * This software is provided "AS IS," without a warranty of any kind. | |
26 | * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, | |
27 | * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A | |
28 | * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN | |
29 | * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR | |
30 | * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR | |
31 | * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN | |
32 | * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR | |
33 | * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE | |
34 | * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, | |
35 | * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF | |
36 | * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
37 | * | |
38 | * You acknowledge that this software is not designed, licensed or | |
39 | * intended for use in the design, construction, operation or maintenance of | |
40 | * any nuclear facility. | |
41 | * | |
42 | * ========== Copyright Header End ============================================ | |
43 | */ | |
44 | /* | |
45 | * id: @(#)cpu-seeprom.h 1.4 05/11/15 | |
46 | * purpose: | |
47 | * copyright: Copyright 2005 Sun Microsystems, Inc. All Rights Reserved | |
48 | * copyright: Use is subject to license terms. | |
49 | */ | |
50 | ||
51 | #define MAXSPEEDLIST 100 | |
52 | #define MAX_SAFARI_SPEED 200 | |
53 | #define CPU_DEFAULT_MAGIC 0x4846 | |
54 | /* | |
55 | * Assigned id magics: | |
56 | * Excalibur/Lneck/LW2+: 0x4846, 4847 | |
57 | * Fiesta (Jalapeno) 0x4130 | |
58 | * Gemini 0x4131 | |
59 | * Serrano 0x4132 | |
60 | * Niagara 0x4231 | |
61 | */ | |
62 | #define FIESTA_MAX_MEMC 8 | |
63 | ||
64 | struct ecache_entry { | |
65 | unsigned short cpu_max; | |
66 | unsigned short cpu_min; | |
67 | unsigned long long ecache_cfg[2]; | |
68 | struct ecache_entry *next; | |
69 | }; | |
70 | ||
71 | struct speed_entry { | |
72 | unsigned short speed_hi; | |
73 | unsigned short speed_lo; | |
74 | unsigned short ratio; | |
75 | struct speed_entry *next; | |
76 | }; | |
77 | ||
78 | struct fiesta_memc_entry { | |
79 | unsigned short bus_hi; | |
80 | unsigned short bus_lo; | |
81 | unsigned short entry_id; | |
82 | unsigned short ratio; | |
83 | unsigned short memclk; | |
84 | unsigned long long mcr[3]; | |
85 | struct fiesta_memc_entry *next; | |
86 | }; |