237 << setw(8) << si->product_code << endl |
238 << setw(8) << si->product_code << endl |
238 << " Revision number: 0x" |
239 << " Revision number: 0x" |
239 << setw(8) << si->revision_number << endl |
240 << setw(8) << si->revision_number << endl |
240 << " Serial number: 0x" |
241 << " Serial number: 0x" |
241 << setw(8) << si->serial_number << endl; |
242 << setw(8) << si->serial_number << endl; |
|
243 |
|
244 cout << "Ports:" << endl; |
|
245 for (i = 0; i < EC_MAX_PORTS; i++) { |
|
246 cout << " " << i << ": "; |
|
247 switch (si->ports[i]) { |
|
248 case EC_PORT_NOT_IMPLEMENTED: |
|
249 cout << "Not implemented."; |
|
250 break; |
|
251 case EC_PORT_NOT_CONFIGURED: |
|
252 cout << "Not configured."; |
|
253 break; |
|
254 case EC_PORT_EBUS: |
|
255 cout << "EBUS."; |
|
256 break; |
|
257 case EC_PORT_MII: |
|
258 cout << "MII."; |
|
259 break; |
|
260 default: |
|
261 cout << "???"; |
|
262 } |
|
263 cout << endl; |
|
264 } |
|
265 |
|
266 cout << "DL information:" << endl |
|
267 << " FMMU bit operation: " |
|
268 << (si->fmmu_bit ? "yes" : "no") << endl |
|
269 << " Distributed clocks: "; |
|
270 if (si->dc_supported) { |
|
271 cout << "yes ("; |
|
272 switch (si->dc_range) { |
|
273 case EC_DC_32: |
|
274 cout << "32 bit"; |
|
275 break; |
|
276 case EC_DC_64: |
|
277 cout << "64 bit"; |
|
278 break; |
|
279 default: |
|
280 cout << "???"; |
|
281 } |
|
282 cout << ")"; |
|
283 } else { |
|
284 cout << "no"; |
|
285 } |
|
286 cout << endl; |
242 |
287 |
243 if (si->mailbox_protocols) { |
288 if (si->mailbox_protocols) { |
244 list<string> protoList; |
289 list<string> protoList; |
245 list<string>::const_iterator protoIter; |
290 list<string>::const_iterator protoIter; |
246 |
291 |