mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
Code cleanup
This commit is contained in:
parent
566ecdc0ea
commit
c81f94ab51
@ -31,12 +31,12 @@ voodoo_pci_device::voodoo_pci_device(const machine_config &mconfig, const char *
|
||||
|
||||
void voodoo_pci_device::set_cpu_tag(const char *_cpu_tag)
|
||||
{
|
||||
cpu_tag = _cpu_tag;
|
||||
m_cpu_tag = _cpu_tag;
|
||||
}
|
||||
|
||||
void voodoo_pci_device::device_start()
|
||||
{
|
||||
voodoo_device::static_set_cpu_tag(m_voodoo, cpu_tag);
|
||||
voodoo_device::static_set_cpu_tag(m_voodoo, m_cpu_tag);
|
||||
pci_device::device_start();
|
||||
add_map(32*1024*1024, M_MEM, FUNC(voodoo_pci_device::reg_map));
|
||||
add_map(32*1024*1024, M_MEM, FUNC(voodoo_pci_device::lfb_map));
|
||||
@ -51,7 +51,7 @@ void voodoo_pci_device::device_reset()
|
||||
void voodoo_pci_device::map_extra(UINT64 memory_window_start, UINT64 memory_window_end, UINT64 memory_offset, address_space *memory_space,
|
||||
UINT64 io_window_start, UINT64 io_window_end, UINT64 io_offset, address_space *io_space)
|
||||
{
|
||||
logerror("%s: map_extra\n", tag());
|
||||
logerror("%s: map_extra\n", this->tag());
|
||||
// Really awkward way of getting vga address space mapped
|
||||
// Should really be dependent on voodoo VGAINIT0 bit 8 and IO base + 0xc3 bit 0
|
||||
if (1) {
|
||||
@ -75,7 +75,7 @@ void voodoo_pci_device::map_extra(UINT64 memory_window_start, UINT64 memory_wind
|
||||
start = (start & 0xFFFF0000) + 0x300;
|
||||
UINT64 end = (start & 0xFFFF0000) + 0x3ef;
|
||||
space->install_device_delegate(start, end, *this, bi.map);
|
||||
logerror("%s: map %s at %0*x-%0*x\n", tag(), bi.map.name(), bi.flags & M_IO ? 4 : 8, UINT32(start), bi.flags & M_IO ? 4 : 8, UINT32(end));
|
||||
logerror("%s: map %s at %0*x-%0*x\n", this->tag(), bi.map.name(), bi.flags & M_IO ? 4 : 8, UINT32(start), bi.flags & M_IO ? 4 : 8, UINT32(end));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ protected:
|
||||
|
||||
private:
|
||||
required_device<voodoo_banshee_device> m_voodoo;
|
||||
const char *cpu_tag;
|
||||
const char *m_cpu_tag;
|
||||
|
||||
DECLARE_ADDRESS_MAP(reg_map, 32);
|
||||
DECLARE_ADDRESS_MAP(lfb_map, 32);
|
||||
|
@ -152,7 +152,6 @@ static MACHINE_CONFIG_START( gtfore, iteagle_state )
|
||||
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
|
||||
MCFG_SCREEN_REFRESH_RATE(59)
|
||||
MCFG_SCREEN_SIZE(512, 384)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 511, 0, 383)
|
||||
MCFG_SCREEN_UPDATE_DEVICE(":pci:09.0", voodoo_pci_device, screen_update)
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ void iteagle_fpga_device::device_reset()
|
||||
//m_rtc_regs[0] = 0x11223344;
|
||||
switch ((machine().root_device().ioport("VERSION")->read()>>4)&0xF) {
|
||||
case 3:
|
||||
m_seq = 0x0a0b0a; // gt02o
|
||||
m_seq = 0x0a0b0a; // gt02
|
||||
break;
|
||||
case 4:
|
||||
m_seq = 0x0a020b; // gt04
|
||||
@ -56,7 +56,7 @@ void iteagle_fpga_device::device_reset()
|
||||
m_seq = 0x0b0a0c; // gt05
|
||||
break;
|
||||
default:
|
||||
m_seq = 0x0c0b0d; // gt02
|
||||
m_seq = 0x0c0b0d; // gt06
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user