Lines Matching refs:dmi
44 more_printf("Available DMI modules on your system:\n");
45 if (hardware->dmi.base_board.filled == true)
47 if (hardware->dmi.battery.filled == true)
49 if (hardware->dmi.bios.filled == true)
51 if (hardware->dmi.chassis.filled == true)
53 for (int i = 0; i < hardware->dmi.memory_count; i++) {
54 if (hardware->dmi.memory[i].filled == true) {
59 for (int i = 0; i < hardware->dmi.memory_module_count; i++) {
60 if (hardware->dmi.memory_module[i].filled == true) {
65 if (hardware->dmi.processor.filled == true)
67 if (hardware->dmi.system.filled == true)
69 if (hardware->dmi.ipmi.filled == true)
71 if (hardware->dmi.cache_count)
73 if (strlen(hardware->dmi.oem_strings))
75 if (hardware->dmi.hardware_security.filled)
82 if (hardware->dmi.base_board.filled == false) {
89 more_printf(" Manufacturer : %s\n", hardware->dmi.base_board.manufacturer);
90 more_printf(" Product Name : %s\n", hardware->dmi.base_board.product_name);
91 more_printf(" Version : %s\n", hardware->dmi.base_board.version);
92 more_printf(" Serial : %s\n", hardware->dmi.base_board.serial);
93 more_printf(" Asset Tag : %s\n", hardware->dmi.base_board.asset_tag);
94 more_printf(" Location : %s\n", hardware->dmi.base_board.location);
95 more_printf(" Type : %s\n", hardware->dmi.base_board.type);
97 if (((bool *) (&hardware->dmi.base_board.features))[i] == true) {
104 sizeof hardware->dmi.base_board.devices_information /
105 sizeof *hardware->dmi.base_board.devices_information; i++) {
106 if (strlen(hardware->dmi.base_board.devices_information[i].type)) {
109 hardware->dmi.base_board.devices_information[i].
112 hardware->dmi.base_board.devices_information[i].
115 hardware->dmi.base_board.devices_information[i].
124 if (hardware->dmi.system.filled == false) {
131 more_printf(" Manufacturer : %s\n", hardware->dmi.system.manufacturer);
132 more_printf(" Product Name : %s\n", hardware->dmi.system.product_name);
133 more_printf(" Version : %s\n", hardware->dmi.system.version);
134 more_printf(" Serial : %s\n", hardware->dmi.system.serial);
135 more_printf(" UUID : %s\n", hardware->dmi.system.uuid);
136 more_printf(" Wakeup Type : %s\n", hardware->dmi.system.wakeup_type);
137 more_printf(" SKU Number : %s\n", hardware->dmi.system.sku_number);
138 more_printf(" Family : %s\n", hardware->dmi.system.family);
140 if (strlen(hardware->dmi.system.configuration_options)) {
142 more_printf("%s\n", hardware->dmi.system.configuration_options);
145 if (hardware->dmi.system.system_reset.filled) {
148 (hardware->dmi.system.system_reset.
151 (hardware->dmi.system.system_reset.
153 if (strlen(hardware->dmi.system.system_reset.boot_option))
155 hardware->dmi.system.system_reset.boot_option);
156 if (strlen(hardware->dmi.system.system_reset.boot_option_on_limit))
158 hardware->dmi.system.system_reset.boot_option_on_limit);
159 if (strlen(hardware->dmi.system.system_reset.reset_count))
161 hardware->dmi.system.system_reset.reset_count);
162 if (strlen(hardware->dmi.system.system_reset.reset_limit))
164 hardware->dmi.system.system_reset.reset_limit);
165 if (strlen(hardware->dmi.system.system_reset.timer_interval))
167 hardware->dmi.system.system_reset.timer_interval);
168 if (strlen(hardware->dmi.system.system_reset.timeout))
170 hardware->dmi.system.system_reset.timeout);
175 hardware->dmi.system.system_boot_status);
181 if (hardware->dmi.bios.filled == false) {
188 more_printf(" Vendor : %s\n", hardware->dmi.bios.vendor);
189 more_printf(" Version : %s\n", hardware->dmi.bios.version);
190 more_printf(" Release Date : %s\n", hardware->dmi.bios.release_date);
191 more_printf(" Bios Revision : %s\n", hardware->dmi.bios.bios_revision);
192 if (strlen(hardware->dmi.bios.firmware_revision))
194 hardware->dmi.bios.firmware_revision);
195 more_printf(" Address : 0x%04X0\n", hardware->dmi.bios.address);
197 hardware->dmi.bios.runtime_size,
198 hardware->dmi.bios.runtime_size_unit);
199 more_printf(" Rom size : %u %s\n", hardware->dmi.bios.rom_size,
200 hardware->dmi.bios.rom_size_unit);
203 if (((bool *) (&hardware->dmi.bios.characteristics))[i] == true) {
208 if (((bool *) (&hardware->dmi.bios.characteristics_x1))[i] == true) {
214 if (((bool *) (&hardware->dmi.bios.characteristics_x2))[i] == true) {
224 if (hardware->dmi.chassis.filled == false) {
232 hardware->dmi.chassis.manufacturer);
233 more_printf(" Type : %s\n", hardware->dmi.chassis.type);
234 more_printf(" Lock : %s\n", hardware->dmi.chassis.lock);
235 more_printf(" Version : %s\n", hardware->dmi.chassis.version);
236 more_printf(" Serial : %s\n", hardware->dmi.chassis.serial);
238 del_multi_spaces(hardware->dmi.chassis.asset_tag));
240 hardware->dmi.chassis.boot_up_state);
242 hardware->dmi.chassis.power_supply_state);
244 hardware->dmi.chassis.thermal_state);
246 hardware->dmi.chassis.security_status);
248 hardware->dmi.chassis.oem_information);
249 more_printf(" Height : %u\n", hardware->dmi.chassis.height);
251 hardware->dmi.chassis.nb_power_cords);
257 if (hardware->dmi.ipmi.filled == false) {
264 hardware->dmi.ipmi.interface_type);
266 hardware->dmi.ipmi.major_specification_version,
267 hardware->dmi.ipmi.minor_specification_version);
269 hardware->dmi.ipmi.I2C_slave_address);
270 more_printf(" Nv Storage Address : %u\n", hardware->dmi.ipmi.nv_address);
271 uint32_t high = hardware->dmi.ipmi.base_address >> 32;
272 uint32_t low = hardware->dmi.ipmi.base_address & 0xFFFF;
274 more_printf(" IRQ : %d\n", hardware->dmi.ipmi.irq);
280 if (hardware->dmi.battery.filled == false) {
288 hardware->dmi.battery.manufacturer);
290 hardware->dmi.battery.manufacture_date);
291 more_printf(" Serial : %s\n", hardware->dmi.battery.serial);
292 more_printf(" Name : %s\n", hardware->dmi.battery.name);
293 more_printf(" Chemistry : %s\n", hardware->dmi.battery.chemistry);
295 hardware->dmi.battery.design_capacity);
297 hardware->dmi.battery.design_voltage);
298 more_printf(" SBDS : %s\n", hardware->dmi.battery.sbds);
300 hardware->dmi.battery.sbds_manufacture_date);
302 hardware->dmi.battery.sbds_chemistry);
304 hardware->dmi.battery.maximum_error);
305 more_printf(" OEM Info : %s\n", hardware->dmi.battery.oem_info);
311 if (hardware->dmi.processor.filled == false) {
319 hardware->dmi.processor.socket_designation);
320 more_printf(" Type : %s\n", hardware->dmi.processor.type);
321 more_printf(" Family : %s\n", hardware->dmi.processor.family);
323 hardware->dmi.processor.manufacturer);
324 more_printf(" Version : %s\n", hardware->dmi.processor.version);
326 hardware->dmi.processor.external_clock);
328 hardware->dmi.processor.max_speed);
330 hardware->dmi.processor.current_speed);
332 hardware->dmi.processor.signature.type);
334 hardware->dmi.processor.signature.family);
336 hardware->dmi.processor.signature.model);
338 hardware->dmi.processor.signature.stepping);
340 hardware->dmi.processor.signature.minor_stepping);
342 hardware->dmi.processor.voltage_mv / 1000,
343 hardware->dmi.processor.voltage_mv -
344 ((hardware->dmi.processor.voltage_mv / 1000) * 1000));
345 more_printf(" Status : %s\n", hardware->dmi.processor.status);
346 more_printf(" Upgrade : %s\n", hardware->dmi.processor.upgrade);
347 more_printf(" Cache L1 Handle : %s\n", hardware->dmi.processor.cache1);
348 more_printf(" Cache L2 Handle : %s\n", hardware->dmi.processor.cache2);
349 more_printf(" Cache L3 Handle : %s\n", hardware->dmi.processor.cache3);
350 more_printf(" Serial : %s\n", hardware->dmi.processor.serial);
352 hardware->dmi.processor.part_number);
353 if (hardware->dmi.processor.core_count != 0)
354 more_printf(" Cores Count : %d\n", hardware->dmi.processor.core_count);
355 if (hardware->dmi.processor.core_enabled != 0)
356 more_printf(" Cores Enabled : %d\n", hardware->dmi.processor.core_enabled);
357 if (hardware->dmi.processor.thread_count != 0)
358 more_printf(" Threads Count : %d\n", hardware->dmi.processor.thread_count);
360 more_printf(" ID : %s\n", hardware->dmi.processor.id);
362 if (((bool *) (&hardware->dmi.processor.cpu_flags))[i] == true) {
381 if ((bank >= hardware->dmi.memory_count) || (bank < 0)) {
385 if (hardware->dmi.memory[bank].filled == false) {
392 more_printf(" Form Factor : %s\n", hardware->dmi.memory[bank].form_factor);
393 dmi.memory[bank].type);
394 more_printf(" Type Detail : %s\n", hardware->dmi.memory[bank].type_detail);
395 more_printf(" Speed : %s\n", hardware->dmi.memory[bank].speed);
396 more_printf(" Size : %s\n", hardware->dmi.memory[bank].size);
397 more_printf(" Device Set : %s\n", hardware->dmi.memory[bank].device_set);
399 hardware->dmi.memory[bank].device_locator);
401 hardware->dmi.memory[bank].bank_locator);
402 more_printf(" Total Width : %s\n", hardware->dmi.memory[bank].total_width);
403 more_printf(" Data Width : %s\n", hardware->dmi.memory[bank].data_width);
404 more_printf(" Error : %s\n", hardware->dmi.memory[bank].error);
406 hardware->dmi.memory[bank].manufacturer);
407 more_printf(" Serial : %s\n", hardware->dmi.memory[bank].serial);
408 more_printf(" Asset Tag : %s\n", hardware->dmi.memory[bank].asset_tag);
409 more_printf(" Part Number : %s\n", hardware->dmi.memory[bank].part_number);
414 if (!hardware->dmi.cache_count) {
422 if (argc != 1 || cache > hardware->dmi.cache_count) {
423 more_printf("show cache [0-%d]\n", hardware->dmi.cache_count - 1);
431 hardware->dmi.cache[cache].socket_designation);
433 hardware->dmi.cache[cache].configuration);
435 hardware->dmi.cache[cache].mode);
437 hardware->dmi.cache[cache].location);
439 hardware->dmi.cache[cache].installed_size);
442 hardware->dmi.cache[cache].max_size);
445 hardware->dmi.cache[cache].supported_sram_types);
448 hardware->dmi.cache[cache].installed_sram_types);
451 hardware->dmi.cache[cache].speed);
454 hardware->dmi.cache[cache].error_correction_type);
456 hardware->dmi.cache[cache].system_type);
458 hardware->dmi.cache[cache].associativity);
474 if ((module >= hardware->dmi.memory_module_count) || (module < 0)) {
479 if (hardware->dmi.memory_module[module].filled == false) {
487 hardware->dmi.memory_module[module].socket_designation);
489 hardware->dmi.memory_module[module].bank_connections);
491 hardware->dmi.memory_module[module].speed);
493 hardware->dmi.memory_module[module].type);
495 hardware->dmi.memory_module[module].installed_size);
497 hardware->dmi.memory_module[module].enabled_size);
499 hardware->dmi.memory_module[module].error_status);
507 more_printf("No valid DMI table found, exiting.\n");
511 more_printf("DMI Table version %u.%u found\n",
512 hardware->dmi.dmitable.major_version,
513 hardware->dmi.dmitable.minor_version);
528 if ((hardware->dmi.memory_count <= 0)
529 && (hardware->dmi.memory_module_count <= 0)) {
546 if (hardware->dmi.memory_count > 0) {
549 for (int i = 0; i < hardware->dmi.memory_count; i++) {
550 if (hardware->dmi.memory[i].filled == true) {
554 if (strncmp(hardware->dmi.memory[i].size, "Free", 4))
556 i, hardware->dmi.memory[i].size,
557 hardware->dmi.memory[i].type,
558 hardware->dmi.memory[i].speed);
561 hardware->dmi.memory[i].size,
562 hardware->dmi.memory[i].type,
563 hardware->dmi.memory[i].speed);
567 } else if (hardware->dmi.memory_module_count > 0) {
570 for (int i = 0; i < hardware->dmi.memory_module_count; i++) {
571 if (hardware->dmi.memory_module[i].filled == true) {
573 hardware->dmi.memory_module[i].enabled_size,
574 hardware->dmi.memory_module[i].type,
575 hardware->dmi.memory_module[i].speed);
593 if (strlen(hardware->dmi.oem_strings))
594 more_printf("OEM Strings\n%s", hardware->dmi.oem_strings);
602 if (!hardware->dmi.hardware_security.filled)
607 hardware->dmi.hardware_security.power_on_passwd_status);
609 hardware->dmi.hardware_security.keyboard_passwd_status);
611 hardware->dmi.hardware_security.administrator_passwd_status);
613 hardware->dmi.hardware_security.front_panel_reset_status);