Lines Matching +full:0 +full:x1300
48 static int smbios_type4_count = 0;
68 * 0 which counts as unknown (SMBIOS 3.1.0/Table 21). Set the
82 .processor_id = 0,
83 .processor_family = 0x01, /* Other */
509 #define SMBIOS_21_MAX_TABLES_LEN 0xffff
546 #define T0_BASE 0x000
547 #define T1_BASE 0x100
548 #define T2_BASE 0x200
549 #define T3_BASE 0x300
550 #define T4_BASE 0x400
551 #define T9_BASE 0x900
552 #define T11_BASE 0xe00
554 #define T16_BASE 0x1000
555 #define T17_BASE 0x1100
556 #define T19_BASE 0x1300
557 #define T32_BASE 0x2000
558 #define T41_BASE 0x2900
559 #define T127_BASE 0x7F00
563 SMBIOS_BUILD_TABLE_PRE(0, T0_BASE, false); /* optional, leave up to BIOS */ in smbios_build_type_0_table()
565 SMBIOS_TABLE_SET_STR(0, vendor_str, smbios_type0.vendor); in smbios_build_type_0_table()
566 SMBIOS_TABLE_SET_STR(0, bios_version_str, smbios_type0.version); in smbios_build_type_0_table()
568 t->bios_starting_address_segment = cpu_to_le16(0xE800); /* from SeaBIOS */ in smbios_build_type_0_table()
570 SMBIOS_TABLE_SET_STR(0, bios_release_date_str, smbios_type0.date); in smbios_build_type_0_table()
572 t->bios_rom_size = 0; /* hardcoded in SeaBIOS with FIXME comment */ in smbios_build_type_0_table()
574 t->bios_characteristics = cpu_to_le64(0x08); /* Not supported */ in smbios_build_type_0_table()
575 t->bios_characteristics_extension_bytes[0] = 0; in smbios_build_type_0_table()
576 t->bios_characteristics_extension_bytes[1] = 0x14; /* TCD/SVVP | VM */ in smbios_build_type_0_table()
578 t->bios_characteristics_extension_bytes[1] |= 0x08; /* |= UEFI */ in smbios_build_type_0_table()
585 t->system_bios_major_release = 0; in smbios_build_type_0_table()
586 t->system_bios_minor_release = 0; in smbios_build_type_0_table()
590 t->embedded_controller_major_release = 0xFF; in smbios_build_type_0_table()
591 t->embedded_controller_minor_release = 0xFF; in smbios_build_type_0_table()
618 memset(&t->uuid, 0, 16); in smbios_build_type_1_table()
620 t->wake_up_type = 0x06; /* power switch */ in smbios_build_type_1_table()
636 t->feature_flags = 0x01; /* Motherboard */ in smbios_build_type_2_table()
638 t->chassis_handle = cpu_to_le16(0x300); /* Type 3 (System enclosure) */ in smbios_build_type_2_table()
639 t->board_type = 0x0A; /* Motherboard */ in smbios_build_type_2_table()
640 t->contained_element_count = 0; in smbios_build_type_2_table()
650 t->type = 0x01; /* Other */ in smbios_build_type_3_table()
654 t->boot_up_state = 0x03; /* Safe */ in smbios_build_type_3_table()
655 t->power_supply_state = 0x03; /* Safe */ in smbios_build_type_3_table()
656 t->thermal_state = 0x03; /* Safe */ in smbios_build_type_3_table()
657 t->security_status = 0x02; /* Unknown */ in smbios_build_type_3_table()
658 t->oem_defined = cpu_to_le32(0); in smbios_build_type_3_table()
659 t->height = 0; in smbios_build_type_3_table()
660 t->number_of_power_cords = 0; in smbios_build_type_3_table()
661 t->contained_element_count = 0; in smbios_build_type_3_table()
662 t->contained_element_record_length = 0; in smbios_build_type_3_table()
686 t->processor_type = 0x03; /* CPU */ in smbios_build_type_4_table()
687 t->processor_family = 0xfe; /* use Processor Family 2 field */ in smbios_build_type_4_table()
689 if (type4.processor_id == 0) { in smbios_build_type_4_table()
690 t->processor_id[0] = cpu_to_le32(smbios_cpuid_version); in smbios_build_type_4_table()
693 t->processor_id[0] = cpu_to_le32((uint32_t)type4.processor_id); in smbios_build_type_4_table()
697 t->voltage = 0; in smbios_build_type_4_table()
698 t->external_clock = cpu_to_le16(0); /* Unknown */ in smbios_build_type_4_table()
701 t->status = 0x41; /* Socket populated, CPU enabled */ in smbios_build_type_4_table()
702 t->processor_upgrade = 0x01; /* Other */ in smbios_build_type_4_table()
703 t->l1_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
704 t->l2_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
705 t->l3_cache_handle = cpu_to_le16(0xFFFF); /* N/A */ in smbios_build_type_4_table()
713 t->core_count = (cores_per_socket > 255) ? 0xFF : cores_per_socket; in smbios_build_type_4_table()
716 t->thread_count = (threads_per_socket > 255) ? 0xFF : threads_per_socket; in smbios_build_type_4_table()
718 t->processor_characteristics = cpu_to_le16(0x02); /* Unknown */ in smbios_build_type_4_table()
724 } else if (t->core_count == 0xFF || t->thread_count == 0xFF) { in smbios_build_type_4_table()
738 unsigned instance = 0; in smbios_build_type_8_table()
747 t->internal_connector_type = 0x0; in smbios_build_type_8_table()
758 unsigned instance = 0; in smbios_build_type_9_table()
776 if (rc != 0) { in smbios_build_type_9_table()
795 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_9_table()
802 * information, 0FFh should be populated in the fields of Segment in smbios_build_type_9_table()
805 t->segment_group_number = 0xff; in smbios_build_type_9_table()
806 t->bus_number = 0xff; in smbios_build_type_9_table()
807 t->device_number = 0xff; in smbios_build_type_9_table()
820 if (type11.nvalues == 0) { in smbios_build_type_11_table()
829 for (i = 0; i < type11.nvalues; i++) { in smbios_build_type_11_table()
838 #define MAX_T16_STD_SZ 0x80000000 /* 2T in Kilobytes */
846 t->location = 0x01; /* Other */ in smbios_build_type_16_table()
847 t->use = 0x03; /* System memory */ in smbios_build_type_16_table()
848 t->error_correction = 0x06; /* Multi-bit ECC (for Microsoft, per SeaBIOS) */ in smbios_build_type_16_table()
852 t->extended_maximum_capacity = cpu_to_le64(0); in smbios_build_type_16_table()
857 t->memory_error_information_handle = cpu_to_le16(0xFFFE); /* Not provided */ in smbios_build_type_16_table()
863 #define MAX_T17_STD_SZ 0x7FFF /* (32G - 1M), in Megabytes */
864 #define MAX_T17_EXT_SZ 0x80000000 /* 2P, in Megabytes */
873 t->physical_memory_array_handle = cpu_to_le16(0x1000); /* Type 16 above */ in smbios_build_type_17_table()
874 t->memory_error_information_handle = cpu_to_le16(0xFFFE); /* Not provided */ in smbios_build_type_17_table()
875 t->total_width = cpu_to_le16(0xFFFF); /* Unknown */ in smbios_build_type_17_table()
876 t->data_width = cpu_to_le16(0xFFFF); /* Unknown */ in smbios_build_type_17_table()
880 t->extended_size = cpu_to_le32(0); in smbios_build_type_17_table()
886 t->form_factor = 0x09; /* DIMM */ in smbios_build_type_17_table()
887 t->device_set = 0; /* Not in a set */ in smbios_build_type_17_table()
891 t->memory_type = 0x07; /* RAM */ in smbios_build_type_17_table()
892 t->type_detail = cpu_to_le16(0x02); /* Other */ in smbios_build_type_17_table()
898 t->attributes = 0; /* Unknown */ in smbios_build_type_17_table()
900 t->minimum_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
901 t->maximum_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
902 t->configured_voltage = cpu_to_le16(0); /* Unknown */ in smbios_build_type_17_table()
923 t->extended_ending_address = cpu_to_le64(0); in smbios_build_type_19_table()
929 t->memory_array_handle = cpu_to_le16(0x1000); /* Type 16 above */ in smbios_build_type_19_table()
939 memset(t->reserved, 0, 6); in smbios_build_type_32_table()
940 t->boot_status = 0; /* No errors detected */ in smbios_build_type_32_table()
947 unsigned instance = 0; in smbios_build_type_41_table()
956 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_41_table()
957 t->bus_number = 0; in smbios_build_type_41_table()
958 t->device_number = 0; in smbios_build_type_41_table()
963 if (rc != 0) { in smbios_build_type_41_table()
982 t->segment_group_number = cpu_to_le16(0); in smbios_build_type_41_table()
1011 if (type4.processor_family <= 0x01) { in smbios_set_default_processor_family()
1043 ep.ep21.entry_point_revision = 0; /* formatted_area reserved */ in smbios_entry_point_setup()
1044 memset(ep.ep21.formatted_area, 0, 5); in smbios_entry_point_setup()
1049 ep.ep21.smbios_bcd_revision = 0x28; in smbios_entry_point_setup()
1057 ep.ep21.checksum = 0; in smbios_entry_point_setup()
1058 ep.ep21.intermediate_checksum = 0; in smbios_entry_point_setup()
1059 ep.ep21.structure_table_address = cpu_to_le32(0); in smbios_entry_point_setup()
1066 ep.ep30.reserved = 0; in smbios_entry_point_setup()
1070 ep.ep30.smbios_minor_version = 0; in smbios_entry_point_setup()
1071 ep.ep30.smbios_doc_rev = 0; in smbios_entry_point_setup()
1077 ep.ep30.checksum = 0; in smbios_entry_point_setup()
1078 ep.ep30.structure_table_address = cpu_to_le64(0); in smbios_entry_point_setup()
1103 smbios_type4_count = 0; in smbios_get_tables_ep()
1116 for (i = 0; i < ms->smp.sockets; i++) { in smbios_get_tables_ep()
1142 dimm_cnt - (T19_BASE - T17_BASE) : 0; in smbios_get_tables_ep()
1146 for (i = 0; i < dimm_cnt; i++) { in smbios_get_tables_ep()
1150 for (i = 0; i < mem_array_size; i++) { in smbios_get_tables_ep()
1265 if (fd < 0) { in save_opt_one()
1271 if (ret == 0) { in save_opt_one()
1274 if (ret < 0) { in save_opt_one()
1280 if (memchr(buf, '\0', ret)) { in save_opt_one()
1288 buf[0] = '\0'; in save_opt_one()
1306 return 0; in save_opt_one()
1341 * NOTE: standard double '\0' terminator expected, per smbios spec. in smbios_entry_add()
1342 * (except in legacy mode, where the second '\0' is implicit and in smbios_entry_add()
1385 unsigned long type = strtoul(val, NULL, 0); in smbios_entry_add()
1399 case 0: in smbios_entry_add()
1431 if (qemu_uuid_parse(val, &qemu_uuid) != 0) { in smbios_entry_add()
1466 0x01 /* Other */); in smbios_entry_add()
1472 /* If the value is 0, it will take the value from the CPU model. */ in smbios_entry_add()
1473 type4.processor_id = qemu_opt_get_number(opts, "processor-id", 0); in smbios_entry_add()
1493 "connector_type", 0); in smbios_entry_add()
1494 t8_i->port_type = qemu_opt_get_number(opts, "port_type", 0); in smbios_entry_add()
1504 t->slot_type = qemu_opt_get_number(opts, "slot_type", 0); in smbios_entry_add()
1506 qemu_opt_get_number(opts, "slot_data_bus_width", 0); in smbios_entry_add()
1507 t->current_usage = qemu_opt_get_number(opts, "current_usage", 0); in smbios_entry_add()
1508 t->slot_length = qemu_opt_get_number(opts, "slot_length", 0); in smbios_entry_add()
1509 t->slot_id = qemu_opt_get_number(opts, "slot_id", 0); in smbios_entry_add()
1511 qemu_opt_get_number(opts, "slot_characteristics1", 0); in smbios_entry_add()
1513 qemu_opt_get_number(opts, "slot_characteristics2", 0); in smbios_entry_add()
1536 type17.speed = qemu_opt_get_number(opts, "speed", 0); in smbios_entry_add()
1549 0, &local_err) + 1; in smbios_entry_add()
1550 t41_i->kind |= 0x80; /* enabled */ in smbios_entry_add()