Lines Matching refs:currprefs
263 if (currprefs.chipmem_size <= 0x00200000) in addextrachip()
287 if (upper >= currprefs.chipmem_size) in addextrachip()
289 uae_u32 added = currprefs.chipmem_size - upper; in addextrachip()
291 put_long (ml + 24, currprefs.chipmem_size); // mh_Upper in addextrachip()
300 put_long (next + 4, currprefs.chipmem_size - next); in addextrachip()
343 if (!currprefs.address_space_24) in expamem_init_clear_zero()
405 if (!currprefs.address_space_24) in call_card_init()
438 expamem_z3_sum = currprefs.z3autoconfig_start; in call_card_init()
439 if (currprefs.mbresmem_high_size >= 128 * 1024 * 1024 && expamem_z3_sum == Z3BASE_UAE) in call_card_init()
440 expamem_z3_sum += (currprefs.mbresmem_high_size - 128 * 1024 * 1024) + 16 * 1024 * 1024; in call_card_init()
441 if (!expamem_z3hack(&currprefs)) in call_card_init()
444 expamem_z3_sum += currprefs.z3chipmem_size; in call_card_init()
481 if ((cards[ecard].flags & 1) && currprefs.cs_z3autoconfig && !currprefs.address_space_24) { in call_card_init()
486 if (!currprefs.address_space_24) in call_card_init()
490 if ((cards[ecard].flags & 1) && currprefs.cs_z3autoconfig && !currprefs.address_space_24) { in call_card_init()
496 if (!currprefs.address_space_24) in call_card_init()
577 if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8) { in expamem_wget()
579 cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8(addr, &val, 2, false); in expamem_wget()
597 if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8) { in expamem_bget()
599 cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8(addr, &val, 1, false); in expamem_bget()
623 if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8) { in expamem_wput()
624 …if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8(addr, &value, 2, tr… in expamem_wput()
655 if (!expamem_z3hack(&currprefs)) { in expamem_wput()
687 if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8) { in expamem_bput()
688 …if (cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].e8(addr, &value, 1, tr… in expamem_bput()
795 if (!expamem_z3hack(&currprefs)) { in expamemz3_wput()
1237 expamem_write(0x00, (currprefs.uaeboard > 1 ? Z2_MEM_128KB : Z2_MEM_64KB) | zorroII); in expamem_init_uaeboard()
1330 …const struct cpuboardsubtype *cst = &cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboar… in fastmem_autoconfig()
1339 …&& erc->zorro >= BOARD_NONAUTOCONFIG_BEFORE)) && cfgfile_board_enabled(&currprefs, erc->romtype, 0… in fastmem_autoconfig()
1340 struct romconfig *rc = get_device_romconfig(&currprefs, erc->romtype, 0); in fastmem_autoconfig()
1368 pid = currprefs.maprom && !currprefs.cpuboard_type ? 1 : 81; in fastmem_autoconfig()
1375 pid = currprefs.maprom && !currprefs.cpuboard_type ? 3 : 83; in fastmem_autoconfig()
1553 bool hide = currprefs.uae_hide_autoconfig; in expamem_init_filesys()
1570 expamem_write (0x04, currprefs.maprom && !currprefs.cpuboard_type ? 2 : 82); in expamem_init_filesys()
1614 if (expamem_z3hack(&currprefs)) { in expamem_map_z3fastmem_2()
1631 …return expamem_map_z3fastmem_2 (&z3fastmem_bank, &z3fastmem_bank.start, currprefs.z3fastmem_size, … in expamem_map_z3fastmem()
1635 …return expamem_map_z3fastmem_2 (&z3fastmem2_bank, &z3fastmem2_bank.start, currprefs.z3fastmem2_siz… in expamem_map_z3fastmem2()
1662 …return expamem_init_z3fastmem_2 (0, &z3fastmem_bank, z3fastmem_bank.start, currprefs.z3fastmem_siz… in expamem_init_z3fastmem()
1666 …return expamem_init_z3fastmem_2 (1, &z3fastmem2_bank, z3fastmem2_bank.start, currprefs.z3fastmem2_… in expamem_init_z3fastmem2()
1787 if (!expamem_z3hack(&currprefs)) in expansion_startaddress()
1794 currprefs.fastmem_size = changed_prefs.fastmem_size; in allocate_expamem()
1795 currprefs.fastmem2_size = changed_prefs.fastmem2_size; in allocate_expamem()
1796 currprefs.z3fastmem_size = changed_prefs.z3fastmem_size; in allocate_expamem()
1797 currprefs.z3fastmem2_size = changed_prefs.z3fastmem2_size; in allocate_expamem()
1798 currprefs.rtgmem_size = changed_prefs.rtgmem_size; in allocate_expamem()
1799 currprefs.rtgmem_type = changed_prefs.rtgmem_type; in allocate_expamem()
1800 currprefs.z3chipmem_size = changed_prefs.z3chipmem_size; in allocate_expamem()
1803 z3fastmem_bank.start = currprefs.z3autoconfig_start; in allocate_expamem()
1804 if (currprefs.mbresmem_high_size >= 128 * 1024 * 1024) in allocate_expamem()
1805 z3chipmem_bank.start += (currprefs.mbresmem_high_size - 128 * 1024 * 1024) + 16 * 1024 * 1024; in allocate_expamem()
1806 if (!expamem_z3hack(&currprefs)) in allocate_expamem()
1809 int z3off = cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboard_subtype].z3extra; in allocate_expamem()
1812 z3fastmem_bank.start = expansion_startaddress(z3fastmem_bank.start, currprefs.z3fastmem_size); in allocate_expamem()
1816 if (currprefs.mbresmem_high_size >= 128 * 1024 * 1024) in allocate_expamem()
1817 z3fastmem_bank.start += (currprefs.mbresmem_high_size - 128 * 1024 * 1024) + 16 * 1024 * 1024; in allocate_expamem()
1818 z3fastmem_bank.start += currprefs.z3chipmem_size; in allocate_expamem()
1820 z3fastmem2_bank.start = z3fastmem_bank.start + currprefs.z3fastmem_size; in allocate_expamem()
1822 …if (currprefs.z3chipmem_size && z3fastmem_bank.start - z3chipmem_bank.start < currprefs.z3chipmem_… in allocate_expamem()
1823 currprefs.z3chipmem_size = changed_prefs.z3chipmem_size = 0; in allocate_expamem()
1825 if (fastmem_bank.allocated != currprefs.fastmem_size) { in allocate_expamem()
1828 fastmem_bank.allocated = currprefs.fastmem_size; in allocate_expamem()
1846 if (fastmem2_bank.allocated != currprefs.fastmem2_size) { in allocate_expamem()
1849 fastmem2_bank.allocated = currprefs.fastmem2_size; in allocate_expamem()
1867 if (z3fastmem_bank.allocated != currprefs.z3fastmem_size) { in allocate_expamem()
1869 …mapped_malloc_dynamic (&currprefs.z3fastmem_size, &changed_prefs.z3fastmem_size, &z3fastmem_bank, … in allocate_expamem()
1872 if (z3fastmem2_bank.allocated != currprefs.z3fastmem2_size) { in allocate_expamem()
1875 z3fastmem2_bank.allocated = currprefs.z3fastmem2_size; in allocate_expamem()
1887 if (z3chipmem_bank.allocated != currprefs.z3chipmem_size) { in allocate_expamem()
1889 …mapped_malloc_dynamic (&currprefs.z3chipmem_size, &changed_prefs.z3chipmem_size, &z3chipmem_bank, … in allocate_expamem()
1894 if (gfxmem_bank.allocated != currprefs.rtgmem_size) { in allocate_expamem()
1896 if (currprefs.rtgmem_type < GFXBOARD_HARDWARE) in allocate_expamem()
1897 …mapped_malloc_dynamic (&currprefs.rtgmem_size, &changed_prefs.rtgmem_size, &gfxmem_bank, 1, currpr… in allocate_expamem()
1910 map_banks(&fastmem_bank, fastmem_bank.start >> 16, currprefs.fastmem_size >> 16, in allocate_expamem()
1915 map_banks(&fastmem2_bank, fastmem2_bank.start >> 16, currprefs.fastmem2_size >> 16, in allocate_expamem()
1920 map_banks(&z3fastmem_bank, z3fastmem_bank.start >> 16, currprefs.z3fastmem_size >> 16, in allocate_expamem()
1925 map_banks(&z3fastmem2_bank, z3fastmem2_bank.start >> 16, currprefs.z3fastmem2_size >> 16, in allocate_expamem()
1930 map_banks(&z3chipmem_bank, z3chipmem_bank.start >> 16, currprefs.z3chipmem_size >> 16, in allocate_expamem()
1936 map_banks(&gfxmem_bank, gfxmem_bank.start >> 16, currprefs.rtgmem_size >> 16, in allocate_expamem()
1950 if (currprefs.boot_rom == 1) in check_boot_rom()
1953 if (currprefs.cs_cdtvcd || currprefs.cs_cdtvscsi || currprefs.uae_hide > 1) in check_boot_rom()
1955 if (currprefs.cs_mbdmac == 1 || currprefs.cpuboard_type) in check_boot_rom()
1967 if (nr_directory_units (&currprefs)) in check_boot_rom()
1969 if (currprefs.socket_emu) in check_boot_rom()
1971 if (currprefs.uaeserial) in check_boot_rom()
1973 if (currprefs.scsi == 1) in check_boot_rom()
1975 if (currprefs.sana2) in check_boot_rom()
1977 if (currprefs.input_tablet > 0) in check_boot_rom()
1979 if (currprefs.rtgmem_size && currprefs.rtgmem_type < GFXBOARD_HARDWARE) in check_boot_rom()
1981 if (currprefs.win32_automount_removable) in check_boot_rom()
1983 if (currprefs.chipmem_size > 2 * 1024 * 1024) in check_boot_rom()
1985 if (currprefs.z3chipmem_size) in check_boot_rom()
1987 if (currprefs.boot_rom >= 3) in check_boot_rom()
1989 if (currprefs.boot_rom == 2 && b == 0xf00000) { in check_boot_rom()
2012 …const struct cpuboardsubtype *cst = &cpuboards[currprefs.cpuboard_type].subtypes[currprefs.cpuboar… in add_cpu_expansions()
2015 struct boardromconfig *brc = get_device_rom(&currprefs, ROMTYPE_CPUBOARD, 0, &idx); in add_cpu_expansions()
2039 struct romconfig *rc = get_device_romconfig(&currprefs, ert->romtype, j); in add_fastram_after_expansion()
2059 struct romconfig *rc = get_device_romconfig(&currprefs, ert->romtype, j); in add_expansions()
2095 if (currprefs.uae_hide) in expamem_reset()
2125 if (currprefs.cpuboard_type) { in expamem_reset()
2138 if (currprefs.fastmem_autoconfig) { in expamem_reset()
2140 …& fastmem_bank.baseaddr != NULL && (fastmem_bank.allocated <= 262144 || currprefs.chipmem_size <= … in expamem_reset()
2146 …if (fastmem2_bank.baseaddr != NULL && (fastmem2_bank.allocated <= 262144 || currprefs.chipmem_siz… in expamem_reset()
2170 if (fastmem_after && currprefs.fastmem_autoconfig) { in expamem_reset()
2171 …if (fastmem_bank.baseaddr != NULL && (fastmem_bank.allocated <= 262144 || currprefs.chipmem_size <… in expamem_reset()
2180 if (currprefs.cs_cdtvcd && !currprefs.cs_cdtvcr) { in expamem_reset()
2188 …if (currprefs.cs_cd32cd && currprefs.fastmem_size == 0 && currprefs.chipmem_size <= 0x200000 && cu… in expamem_reset()
2196 if (currprefs.a2065name[0]) { in expamem_reset()
2210 if (currprefs.uaeboard) { in expamem_reset()
2218 if (currprefs.catweasel && catweasel_init ()) { in expamem_reset()
2226 if (currprefs.rtgmem_type == GFXBOARD_UAE_Z2 && gfxmem_bank.baseaddr != NULL) { in expamem_reset()
2234 …if (currprefs.rtgmem_type >= GFXBOARD_HARDWARE && gfxboard_get_configtype(currprefs.rtgmem_type) <… in expamem_reset()
2236 if (currprefs.rtgmem_type == GFXBOARD_A2410) { in expamem_reset()
2242 if (gfxboard_num_boards (currprefs.rtgmem_type) == 3) { in expamem_reset()
2247 if (gfxboard_is_registers (currprefs.rtgmem_type)) { in expamem_reset()
2256 if (currprefs.sound_toccata) { in expamem_reset()
2262 if (currprefs.monitoremu == MONITOREMU_FIRECRACKER24) { in expamem_reset()
2269 if (!currprefs.address_space_24) { in expamem_reset()
2274 bool alwaysmapz3 = currprefs.z3_mapping_mode != Z3MAPPING_REAL; in expamem_reset()
2280 if (alwaysmapz3 || expamem_z3hack(&currprefs)) in expamem_reset()
2281 map_banks_z3(&z3fastmem_bank, z3fastmem_bank.start >> 16, currprefs.z3fastmem_size >> 16); in expamem_reset()
2287 if (alwaysmapz3 || expamem_z3hack(&currprefs)) in expamem_reset()
2288 map_banks_z3(&z3fastmem2_bank, z3fastmem2_bank.start >> 16, currprefs.z3fastmem2_size >> 16); in expamem_reset()
2292 map_banks_z3(&z3chipmem_bank, z3chipmem_bank.start >> 16, currprefs.z3chipmem_size >> 16); in expamem_reset()
2294 if (currprefs.rtgmem_type == GFXBOARD_UAE_Z3 && gfxmem_bank.baseaddr != NULL) { in expamem_reset()
2302 …if (currprefs.rtgmem_type >= GFXBOARD_HARDWARE && gfxboard_get_configtype(currprefs.rtgmem_type) =… in expamem_reset()
2382 if (currprefs.uaeboard) { in expansion_init()
2399 if (currprefs.rtgmem_type < GFXBOARD_HARDWARE) in expansion_cleanup()
2406 if (currprefs.uaeboard) { in expansion_cleanup()
2889 if (currprefs.cs_a1000ram) in hda506_memory_callback()