Lines Matching +full:0 +full:x8000000a
92 { TYPE_X86_CPU, "guest-phys-bits", "0" },
126 { TYPE_X86_CPU, "hv-version-id-build", "0x1bbc" },
127 { TYPE_X86_CPU, "hv-version-id-major", "0x0006" },
128 { TYPE_X86_CPU, "hv-version-id-minor", "0x0001" },
204 { "EPYC-" TYPE_X86_CPU, "xlevel", "0x8000000a" },
205 { "EPYC-IBPB-" TYPE_X86_CPU, "xlevel", "0x8000000a" },
216 { TYPE_X86_CPU, "x-hv-max-vps", "0x40" },
223 { "mch", "extended-tseg-mbytes", "0" },
247 { TYPE_X86_CPU, "cpuid-0xb", "off" },
258 PC_CPU_MODEL_IDS("2.4.0")
284 #define PC_FW_DATA (0x20000 + 0x8000)
306 return 0xffffffffffffffffULL; in ioport80_read()
320 return 0xffffffffffffffffULL; in ioportF0_read()
325 #define REG_EQUIPMENT_BYTE 0x14
334 mc146818rtc_set_cmos_data(s, info_ofs + 3, 0xff); in cmos_init_hd()
335 mc146818rtc_set_cmos_data(s, info_ofs + 4, 0xff); in cmos_init_hd()
336 mc146818rtc_set_cmos_data(s, info_ofs + 5, 0xc0 | ((heads > 8) << 3)); in cmos_init_hd()
348 return 0x01; /* floppy boot */ in boot_device2nibble()
350 return 0x02; /* hard drive boot */ in boot_device2nibble()
352 return 0x03; /* CD-ROM boot */ in boot_device2nibble()
354 return 0x04; /* Network boot */ in boot_device2nibble()
356 return 0; in boot_device2nibble()
363 int nbds, bds[3] = { 0, }; in set_boot_dev()
371 for (i = 0; i < nbds; i++) { in set_boot_dev()
373 if (bds[i] == 0) { in set_boot_dev()
379 mc146818rtc_set_cmos_data(s, 0x3d, (bds[1] << 4) | bds[0]); in set_boot_dev()
380 mc146818rtc_set_cmos_data(s, 0x38, (bds[2] << 4) | !pcms->fd_bootchk); in set_boot_dev()
400 for (int i = 0; i < 2; i++) { in pc_cmos_init_floppy()
406 val = (cmos_get_fd_drive_type(fd_type[0]) << 4) | in pc_cmos_init_floppy()
408 mc146818rtc_set_cmos_data(rtc_state, 0x10, val); in pc_cmos_init_floppy()
411 nb = 0; in pc_cmos_init_floppy()
412 if (fd_type[0] != FLOPPY_DRIVE_TYPE_NONE) { in pc_cmos_init_floppy()
419 case 0: in pc_cmos_init_floppy()
422 val |= 0x01; /* 1 drive, ready for boot */ in pc_cmos_init_floppy()
425 val |= 0x41; /* 2 drives, ready for boot */ in pc_cmos_init_floppy()
445 return 0; in check_fdc()
449 if (local_err || iobase != 0x3f0) { in check_fdc()
451 return 0; in check_fdc()
459 return 0; in check_fdc()
467 * Locate the FDC at IO address 0x3f0, in order to configure the CMOS registers
474 CheckFdcState state = { 0 }; in pc_find_fdc0()
476 for (i = 0; i < ARRAY_SIZE(fdc_container_path); i++) { in pc_find_fdc0()
483 "iobase=0x3f0 have been found"); in pc_find_fdc0()
500 val = 0; in pc_cmos_init_late()
501 if (pcms->idebus[0] && in pc_cmos_init_late()
502 ide_get_geometry(pcms->idebus[0], 0, in pc_cmos_init_late()
503 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late()
504 cmos_init_hd(s, 0x19, 0x1b, cylinders, heads, sectors); in pc_cmos_init_late()
505 val |= 0xf0; in pc_cmos_init_late()
507 if (pcms->idebus[0] && in pc_cmos_init_late()
508 ide_get_geometry(pcms->idebus[0], 1, in pc_cmos_init_late()
509 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late()
510 cmos_init_hd(s, 0x1a, 0x24, cylinders, heads, sectors); in pc_cmos_init_late()
511 val |= 0x0f; in pc_cmos_init_late()
513 mc146818rtc_set_cmos_data(s, 0x12, val); in pc_cmos_init_late()
515 val = 0; in pc_cmos_init_late()
516 for (i = 0; i < 4; i++) { in pc_cmos_init_late()
524 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late()
526 assert((trans & ~3) == 0); in pc_cmos_init_late()
530 mc146818rtc_set_cmos_data(s, 0x39, val); in pc_cmos_init_late()
539 mc146818rtc_set_cmos_data(s, 0x15, val); in pc_cmos_init_late()
540 mc146818rtc_set_cmos_data(s, 0x16, val >> 8); in pc_cmos_init_late()
545 val = 0; in pc_cmos_init_late()
549 mc146818rtc_set_cmos_data(s, 0x17, val); in pc_cmos_init_late()
550 mc146818rtc_set_cmos_data(s, 0x18, val >> 8); in pc_cmos_init_late()
551 mc146818rtc_set_cmos_data(s, 0x30, val); in pc_cmos_init_late()
552 mc146818rtc_set_cmos_data(s, 0x31, val >> 8); in pc_cmos_init_late()
557 val = 0; in pc_cmos_init_late()
561 mc146818rtc_set_cmos_data(s, 0x34, val); in pc_cmos_init_late()
562 mc146818rtc_set_cmos_data(s, 0x35, val >> 8); in pc_cmos_init_late()
565 mc146818rtc_set_cmos_data(s, 0x5b, val); in pc_cmos_init_late()
566 mc146818rtc_set_cmos_data(s, 0x5c, val >> 8); in pc_cmos_init_late()
567 mc146818rtc_set_cmos_data(s, 0x5d, val >> 16); in pc_cmos_init_late()
569 val = 0; in pc_cmos_init_late()
570 val |= 0x02; /* FPU is there */ in pc_cmos_init_late()
571 val |= 0x04; /* PS/2 mouse installed */ in pc_cmos_init_late()
586 static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360,
587 0x280, 0x380 };
592 static int nb_ne2k = 0; in pc_init_ne2k_isa()
650 memory_region_add_subregion_overlap(system_memory, 0x0, in pc_pci_as_mapping_init()
669 for (i = 0; i < nb_option_roms; i++) { in xen_load_linux()
680 #define PC_ROM_MIN_VGA 0xc0000
681 #define PC_ROM_MIN_OPTION 0xc8000
682 #define PC_ROM_MAX 0xe0000
683 #define PC_ROM_ALIGN 0x800
690 if (pcms->sgx_epc.size != 0) { in pc_above_4g_end()
817 #define AMD_HT_START 0xfd00000000UL
818 #define AMD_HT_END 0xffffffffffUL
836 hwaddr cxl_base, cxl_resv_end = 0; in pc_memory_init()
872 error_report("Address space limit 0x%"PRIx64" < 0x%"PRIx64 in pc_memory_init()
884 0, x86ms->below_4g_mem_size); in pc_memory_init()
885 memory_region_add_subregion(system_memory, 0, ram_below_4g); in pc_memory_init()
886 e820_add_entry(0, x86ms->below_4g_mem_size, E820_RAM); in pc_memory_init()
887 if (x86ms->above_4g_mem_size > 0) { in pc_memory_init()
899 if (pcms->sgx_epc.size != 0) { in pc_memory_init()
1010 for (i = 0; i < nb_option_roms; i++) { in pc_memory_init()
1031 uint64_t hole64_start = 0; in pc_pci_hole64_start()
1032 ram_addr_t size = 0; in pc_pci_hole64_start()
1092 serial_hds_isa_init(isa_bus, 0, MAX_ISA_SERIAL_PORTS); in pc_superio_init()
1095 for (i = 0; i < MAX_FD; i++) { in pc_superio_init()
1096 fd[i] = drive_get(IF_FLOPPY, 0, i); in pc_superio_init()
1133 I8042_A20_LINE, 0, a20_line[0]); in pc_superio_init()
1135 PORT92_A20_LINE, 0, a20_line[1]); in pc_superio_init()
1147 int pit_isa_irq = 0; in pc_basic_device_init()
1155 memory_region_add_subregion(isa_bus->address_space_io, 0x80, ioport80_io); in pc_basic_device_init()
1158 memory_region_add_subregion(isa_bus->address_space_io, 0xf0, ioportF0_io); in pc_basic_device_init()
1182 sysbus_mmio_map(SYS_BUS_DEVICE(hpet), 0, HPET_BASE); in pc_basic_device_init()
1184 for (i = 0; i < IOAPIC_NUM_PINS; i++) { in pc_basic_device_init()
1192 qdev_connect_gpio_out(DEVICE(rtc_state), 0, rtc_irq); in pc_basic_device_init()
1218 pit = kvm_pit_init(isa_bus, 0x40); in pc_basic_device_init()
1220 pit = i8254_pit_init(isa_bus, 0x40, pit_isa_irq, pit_alt_irq); in pc_basic_device_init()
1224 qdev_connect_gpio_out(hpet, 0, qdev_get_gpio_in(DEVICE(pit), 0)); in pc_basic_device_init()
1273 for (size_t i = 0; i < ISA_NUM_IRQS; i++) { in pc_i8259_create()
1398 char *resv_prop_str = g_strdup_printf("0xfee00000:0xfeefffff:%d", in pc_machine_device_pre_plug_cb()
1661 * [0xFEE00000..0xFEE01000] -- see IO_APIC_DEFAULT_ADDRESS --, leaving free in pc_machine_set_max_fw_size()
1689 pcms->max_ram_below_4g = 0; /* use default */ in pc_machine_initfn()