2 atlc - arbitrary transmission line calculator, for the analysis of
3 transmission lines are directional couplers.
5 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either package_version 2
10 of the License, or (at your option) any later package_version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 Dr. David Kirkby, e-mail drkirkby@ntlworld.com
25 /* Try to get data. This will work only on an IBM running AIX */
30 #define BYTES_PER_MB 1048576
47 int try_aix(struct computer_data *data)
57 strcpy(data->hw_provider,"IBM");
58 strncpy(model,data->machine,10);
60 if(strcmp(model,"02") == 0)
62 strcpy(data->hw_platform,"7015-930");
63 strcpy(data->mhz,"25");
64 strcpy(data->cpu_type,"Power");
65 strcpy(data->max_cpus,"1");
67 if(strcmp(model,"10") == 0)
69 strcpy(data->hw_platform,"7015-930_or_7016-730");
70 strcpy(data->mhz,"25");
71 strcpy(data->cpu_type,"Power");
73 if(strcmp(model,"11") == 0)
75 strcpy(data->hw_platform,"7013-540");
76 strcpy(data->mhz,"30");
77 strcpy(data->cpu_type,"Power");
79 if(strcmp(model,"14") == 0)
81 strcpy(data->hw_platform,"7013-540");
82 strcpy(data->mhz,"30");
83 strcpy(data->cpu_type,"Power");
85 if(strcmp(model,"18") == 0)
87 strcpy(data->hw_platform,"7013-53H");
88 strcpy(data->mhz,"33");
89 strcpy(data->cpu_type,"Power");
91 if(strcmp(model,"1C") == 0)
93 strcpy(data->hw_platform,"7013-550");
94 strcpy(data->mhz,"41.6");
95 strcpy(data->cpu_type,"Power");
97 if(strcmp(model,"20") == 0)
99 strcpy(data->hw_platform,"7015-930");
100 strcpy(data->mhz,"25");
101 strcpy(data->cpu_type,"Power");
103 if(strcmp(model,"2E") == 0)
105 strcpy(data->hw_platform,"7015-950");
106 strcpy(data->mhz,"41");
107 strcpy(data->cpu_type,"Power");
109 if(strcmp(model,"30") == 0)
111 strcpy(data->hw_platform,"7013-520");
112 strcpy(data->mhz,"20");
113 strcpy(data->cpu_type,"Power");
115 if(strcmp(model,"31") == 0)
117 strcpy(data->hw_platform,"7012-320");
118 strcpy(data->mhz,"20");
119 strcpy(data->cpu_type,"Power");
121 if(strcmp(model,"34") == 0)
123 strcpy(data->hw_platform,"7013-52H");
124 strcpy(data->mhz,"25");
125 strcpy(data->cpu_type,"Power");
127 if(strcmp(model,"35") == 0)
129 strcpy(data->hw_platform,"7012-32H");
130 strcpy(data->mhz,"25");
131 strcpy(data->cpu_type,"Power");
133 if(strcmp(model,"37") == 0)
135 strcpy(data->hw_platform,"7012-340");
136 strcpy(data->mhz,"33");
137 strcpy(data->cpu_type,"Power");
139 if(strcmp(model,"38") == 0)
141 strcpy(data->hw_platform,"7012-350");
142 strcpy(data->mhz,"41");
143 strcpy(data->cpu_type,"Power");
145 if(strcmp(model,"41") == 0)
147 strcpy(data->hw_platform,"7011-220");
148 strcpy(data->mhz,"33");
149 strcpy(data->cpu_type,"RSC");
151 if(strcmp(model,"43") == 0)
153 strcpy(data->hw_platform,"7008-M20_or_7008-M2A");
154 strcpy(data->mhz,"33");
155 strcpy(data->cpu_type,"Power");
157 if(strcmp(model,"46") == 0)
159 strcpy(data->hw_platform,"7011-250");
160 strcpy(data->mhz,"66");
161 strcpy(data->cpu_type,"PowerPC");
163 if(strcmp(model,"47") == 0)
165 strcpy(data->hw_platform,"7011-230");
166 strcpy(data->mhz,"45");
167 strcpy(data->cpu_type,"RSC");
169 if(strcmp(model,"48") == 0)
171 strcpy(data->hw_platform,"7009-C10");
172 strcpy(data->mhz,"80");
173 strcpy(data->cpu_type,"PowerPC");
175 if(strcmp(model,"57") == 0)
177 strcpy(data->hw_platform,"9076-SP2_Thin_or_9076-SP2_Thin");
178 strcpy(data->mhz,"67");
179 strcpy(data->cpu_type,"Power2");
181 if(strcmp(model,"58") == 0)
183 strcpy(data->hw_platform,"7012-380_or_7030-3AT");
184 strcpy(data->mhz,"59");
185 strcpy(data->cpu_type,"Power2");
187 if(strcmp(model,"59") == 0)
189 strcpy(data->hw_platform,"9076-SP2_Thin_w-L2");
190 strcpy(data->mhz,"67");
191 strcpy(data->cpu_type,"Power2");
194 #ifdef _SC_AIX_REALMEM
195 sprintf(data->memory,"%ld",sysconf(_SC_AIX_REALMEM)/1024);
198 return(PROBABLY_AIX);