trunk/src/emu/machine/i82875p.c
| r242311 | r242312 | |
| 309 | 309 | return 0x00; |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | void i82875p_host_device::reset_all_mappings() |
| 313 | { |
| 314 | pci_host_device::reset_all_mappings(); |
| 315 | |
| 316 | toud = 0x0400; |
| 317 | smram = 0x02; |
| 318 | esmramc = 0x38; |
| 319 | memset(pam, 0, sizeof(pam)); |
| 320 | } |
| 321 | |
| 312 | 322 | void i82875p_host_device::device_reset() |
| 313 | 323 | { |
| 314 | 324 | pci_host_device::device_reset(); |
| 315 | 325 | |
| 316 | 326 | agpm = 0x00; |
| 317 | 327 | fpllcont = 0x00; |
| 318 | | memset(pam, 0, sizeof(pam)); |
| 319 | | smram = 0x02; |
| 320 | | esmramc = 0x38; |
| 321 | 328 | agpctrl = 0x00000000; |
| 322 | 329 | apsize = 0x00; |
| 323 | 330 | attbase = 0x00000000; |
| 324 | 331 | amtt = 0x10; |
| 325 | 332 | lptt = 0x10; |
| 326 | | toud = 0x0400; |
| 327 | 333 | mchcfg = 0x0000; |
| 328 | 334 | errcmd = 0x0000; |
| 329 | 335 | smicmd = 0x0000; |
| r242311 | r242312 | |
| 406 | 412 | |
| 407 | 413 | if((esmramc & 0x40) && (smram & 0x08)) |
| 408 | 414 | memory_space->install_ram (0xfeda0000, 0xfedbffff, &ram[0x000a0000/4]); |
| 409 | | |
| 410 | 415 | } |
| 411 | 416 | |
| 412 | 417 | |
trunk/src/emu/machine/i82875p.h
| r242311 | r242312 | |
| 20 | 20 | void set_cpu_tag(const char *tag); |
| 21 | 21 | void set_ram_size(int ram_size); |
| 22 | 22 | |
| 23 | virtual void reset_all_mappings(); |
| 24 | |
| 23 | 25 | virtual void map_extra(UINT64 memory_window_start, UINT64 memory_window_end, UINT64 memory_offset, address_space *memory_space, |
| 24 | 26 | UINT64 io_window_start, UINT64 io_window_end, UINT64 io_offset, address_space *io_space); |
| 25 | 27 | |
trunk/src/emu/machine/pci.c
| r242311 | r242312 | |
| 449 | 449 | |
| 450 | 450 | void pci_bridge_device::reset_all_mappings() |
| 451 | 451 | { |
| 452 | pci_device::reset_all_mappings(); |
| 453 | |
| 452 | 454 | for(int i=0; i != all_devices.count(); i++) |
| 453 | 455 | if(all_devices[i] != this) |
| 454 | 456 | all_devices[i]->reset_all_mappings(); |
| r242311 | r242312 | |
| 784 | 786 | memory_window_start = memory_window_end = memory_offset = 0; |
| 785 | 787 | io_window_start = io_window_end = io_offset = 0; |
| 786 | 788 | |
| 787 | | for(int i=0; i != all_devices.count(); i++) |
| 788 | | if(all_devices[i] != this) |
| 789 | | all_devices[i]->reset_all_mappings(); |
| 789 | reset_all_mappings(); |
| 790 | 790 | } |
| 791 | 791 | |
| 792 | 792 | void pci_host_device::device_reset() |