diff options
Diffstat (limited to 'src/mame/drivers/cxhumax.cpp')
-rw-r--r-- | src/mame/drivers/cxhumax.cpp | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/src/mame/drivers/cxhumax.cpp b/src/mame/drivers/cxhumax.cpp index 15fdc62b66a..612e69281e3 100644 --- a/src/mame/drivers/cxhumax.cpp +++ b/src/mame/drivers/cxhumax.cpp @@ -34,7 +34,7 @@ static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, c } } -READ32_MEMBER ( cxhumax_state::cx_gxa_r ) +uint32_t cxhumax_state::cx_gxa_r(offs_t offset) { uint32_t res = m_gxa_cmd_regs[offset]; verboselog(*this, 9, "(GXA) %08X -> %08X\n", 0xE0600000 + (offset << 2), res); @@ -58,7 +58,7 @@ READ32_MEMBER ( cxhumax_state::cx_gxa_r ) return res; } -WRITE32_MEMBER( cxhumax_state::cx_gxa_w ) +void cxhumax_state::cx_gxa_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(GXA) %08X <- %08X\n", 0xE0600000 + (offset << 2), data); uint8_t gxa_command_number = (offset >> 9) & 0x7F; @@ -116,7 +116,7 @@ WRITE32_MEMBER( cxhumax_state::cx_gxa_w ) } } -WRITE32_MEMBER ( cxhumax_state::flash_w ) +void cxhumax_state::flash_w(offs_t offset, uint32_t data, uint32_t mem_mask) { offset *= 2; if(ACCESSING_BITS_0_15) @@ -126,7 +126,7 @@ WRITE32_MEMBER ( cxhumax_state::flash_w ) verboselog(*this, 9, "(FLASH) %08X <- %08X\n", 0xF0000000 + (offset << 2), data); } -READ32_MEMBER ( cxhumax_state::flash_r ) +uint32_t cxhumax_state::flash_r(offs_t offset, uint32_t mem_mask) { uint32_t res = 0; offset *= 2; @@ -138,12 +138,12 @@ READ32_MEMBER ( cxhumax_state::flash_r ) return res; } -READ32_MEMBER ( cxhumax_state::dummy_flash_r ) +uint32_t cxhumax_state::dummy_flash_r() { return 0xFFFFFFFF; } -WRITE32_MEMBER ( cxhumax_state::cx_remap_w ) +void cxhumax_state::cx_remap_w(offs_t offset, uint32_t data) { if(!(data&1)) { verboselog(*this, 9, "(REMAP) %08X -> %08X\n", 0xE0400014 + (offset << 2), data); @@ -151,7 +151,7 @@ WRITE32_MEMBER ( cxhumax_state::cx_remap_w ) } } -READ32_MEMBER( cxhumax_state::cx_scratch_r ) +uint32_t cxhumax_state::cx_scratch_r(offs_t offset) { uint32_t data = m_scratch_reg; verboselog(*this, 9, "(SCRATCH) %08X -> %08X\n", 0xE0400024 + (offset << 2), data); @@ -175,102 +175,102 @@ READ32_MEMBER( cxhumax_state::cx_scratch_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_scratch_w ) +void cxhumax_state::cx_scratch_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(SCRATCH) %08X <- %08X\n", 0xE0400024 + (offset << 2), data); COMBINE_DATA(&m_scratch_reg); } -READ32_MEMBER( cxhumax_state::cx_hsx_r ) +uint32_t cxhumax_state::cx_hsx_r(offs_t offset) { uint32_t data = 0; // dummy verboselog(*this, 9, "(HSX) %08X -> %08X\n", 0xE0000000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_hsx_w ) +void cxhumax_state::cx_hsx_w(offs_t offset, uint32_t data) { verboselog(*this, 9, "(HSX) %08X <- %08X\n", 0xE0000000 + (offset << 2), data); } -READ32_MEMBER( cxhumax_state::cx_romdescr_r ) +uint32_t cxhumax_state::cx_romdescr_r(offs_t offset) { uint32_t data = m_romdescr_reg; verboselog(*this, 9, "(ROMDESC0) %08X -> %08X\n", 0xE0010000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_romdescr_w ) +void cxhumax_state::cx_romdescr_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(ROMDESC0) %08X <- %08X\n", 0xE0010000 + (offset << 2), data); COMBINE_DATA(&m_romdescr_reg); } -READ32_MEMBER( cxhumax_state::cx_isaromdescr_r ) +uint32_t cxhumax_state::cx_isaromdescr_r(offs_t offset) { uint32_t data = m_isaromdescr_regs[offset]; verboselog(*this, 9, "(ISAROMDESC%d) %08X -> %08X\n", offset+1, 0xE0010004 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_isaromdescr_w ) +void cxhumax_state::cx_isaromdescr_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(ISAROMDESC%d) %08X <- %08X\n", offset+1, 0xE0010004 + (offset << 2), data); COMBINE_DATA(&m_isaromdescr_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_isadescr_r ) +uint32_t cxhumax_state::cx_isadescr_r(offs_t offset) { uint32_t data = m_isaromdescr_regs[offset]; verboselog(*this, 9, "(ISA_DESC%d) %08X -> %08X\n", offset+4, 0xE0010010 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_isadescr_w ) +void cxhumax_state::cx_isadescr_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(ISA_DESC%d) %08X <- %08X\n", offset+4, 0xE0010010 + (offset << 2), data); COMBINE_DATA(&m_isaromdescr_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_rommap_r ) +uint32_t cxhumax_state::cx_rommap_r(offs_t offset) { uint32_t data = 0; verboselog(*this, 9, "(ROM%d_MAP) %08X -> %08X\n", offset, 0xE0010020 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_rommap_w ) +void cxhumax_state::cx_rommap_w(offs_t offset, uint32_t data) { verboselog(*this, 9, "(ROM%d_MAP) %08X <- %08X\n", offset, 0xE0010020 + (offset << 2), data); } -READ32_MEMBER( cxhumax_state::cx_rommode_r ) +uint32_t cxhumax_state::cx_rommode_r(offs_t offset) { uint32_t data = m_rommode_reg; verboselog(*this, 9, "(ROMMODE) %08X -> %08X\n", 0xE0010034 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_rommode_w ) +void cxhumax_state::cx_rommode_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(ROMMODE) %08X <- %08X\n", 0xE0010034 + (offset << 2), data); COMBINE_DATA(&m_rommode_reg); } -READ32_MEMBER( cxhumax_state::cx_xoemask_r ) +uint32_t cxhumax_state::cx_xoemask_r(offs_t offset) { uint32_t data = m_xoemask_reg; verboselog(*this, 9, "(XOEMASK) %08X -> %08X\n", 0xE0010034 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_xoemask_w ) +void cxhumax_state::cx_xoemask_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(XOEMASK) %08X <- %08X\n", 0xE0010034 + (offset << 2), data); COMBINE_DATA(&m_xoemask_reg); } -READ32_MEMBER( cxhumax_state::cx_pci_r ) +uint32_t cxhumax_state::cx_pci_r(offs_t offset) { uint32_t data = 0; switch (offset) { @@ -288,20 +288,20 @@ READ32_MEMBER( cxhumax_state::cx_pci_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_pci_w ) +void cxhumax_state::cx_pci_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(PCI) %08X <- %08X\n", 0xE0010040 + (offset << 2), data); COMBINE_DATA(&m_pci_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_extdesc_r ) +uint32_t cxhumax_state::cx_extdesc_r(offs_t offset) { uint32_t data = m_extdesc_regs[offset]; verboselog(*this, 9, "(EXTDESC) %08X -> %08X\n", 0xE0010080 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_extdesc_w ) +void cxhumax_state::cx_extdesc_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(EXTDESC) %08X <- %08X\n", 0xE0010080 + (offset << 2), data); COMBINE_DATA(&m_extdesc_regs[offset]); @@ -334,7 +334,7 @@ TIMER_CALLBACK_MEMBER(cxhumax_state::timer_tick) m_timer_regs.timer[param].timer->adjust(period,param); } -READ32_MEMBER( cxhumax_state::cx_timers_r ) +uint32_t cxhumax_state::cx_timers_r(offs_t offset) { uint32_t data = 0; uint8_t index = offset>>2; @@ -359,7 +359,7 @@ READ32_MEMBER( cxhumax_state::cx_timers_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_timers_w ) +void cxhumax_state::cx_timers_w(offs_t offset, uint32_t data, uint32_t mem_mask) { uint8_t index = offset>>2; if(index==16) { @@ -391,7 +391,7 @@ WRITE32_MEMBER( cxhumax_state::cx_timers_w ) } } -READ32_MEMBER( cxhumax_state::cx_uart2_r ) +uint32_t cxhumax_state::cx_uart2_r(offs_t offset) { uint32_t data; switch (offset) { @@ -405,7 +405,7 @@ READ32_MEMBER( cxhumax_state::cx_uart2_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_uart2_w ) +void cxhumax_state::cx_uart2_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(UART2) %08X <- %08X\n", 0xE0411000 + (offset << 2), data); switch (offset) { @@ -432,66 +432,66 @@ WRITE32_MEMBER( cxhumax_state::cx_uart2_w ) } } -READ32_MEMBER( cxhumax_state::cx_pll_r ) +uint32_t cxhumax_state::cx_pll_r(offs_t offset) { uint32_t data = m_pll_regs[offset]; verboselog(*this, 9, "(PLL) %08X -> %08X\n", 0xE0440000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_pll_w ) +void cxhumax_state::cx_pll_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(PLL) %08X <- %08X\n", 0xE0440000 + (offset << 2), data); COMBINE_DATA(&m_pll_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_pllprescale_r ) +uint32_t cxhumax_state::cx_pllprescale_r(offs_t offset) { uint32_t data = m_pllprescale_reg; verboselog(*this, 9, "(PLLPRESCALE) %08X -> %08X\n", 0xE0440094 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_pllprescale_w ) +void cxhumax_state::cx_pllprescale_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(PLLPRESCALE) %08X <- %08X\n", 0xE0440094 + (offset << 2), data); COMBINE_DATA(&m_pllprescale_reg); } -READ32_MEMBER( cxhumax_state::cx_clkdiv_r ) +uint32_t cxhumax_state::cx_clkdiv_r(offs_t offset) { uint32_t data = m_clkdiv_regs[offset]; verboselog(*this, 9, "(CLKDIV) %08X -> %08X\n", 0xE0440020 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_clkdiv_w ) +void cxhumax_state::cx_clkdiv_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(CLKDIV) %08X <- %08X\n", 0xE0440020 + (offset << 2), data); COMBINE_DATA(&m_clkdiv_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_chipcontrol_r ) +uint32_t cxhumax_state::cx_chipcontrol_r(offs_t offset) { uint32_t data = m_chipcontrol_regs[offset]; verboselog(*this, 9, "(CHIPCONTROL) %08X -> %08X\n", 0xE0440100 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_chipcontrol_w ) +void cxhumax_state::cx_chipcontrol_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(CHIPCONTROL) %08X <- %08X\n", 0xE0440100 + (offset << 2), data); COMBINE_DATA(&m_chipcontrol_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_intctrl_r ) +uint32_t cxhumax_state::cx_intctrl_r(offs_t offset) { uint32_t data = m_intctrl_regs[offset]; verboselog(*this, 9, "(INTCTRL) %08X -> %08X\n", 0xE0450000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_intctrl_w ) +void cxhumax_state::cx_intctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(INTCTRL) %08X <- %08X\n", 0xE0450000 + (offset << 2), data); switch (offset >> 3) { // Decode the group @@ -559,7 +559,7 @@ WRITE32_MEMBER( cxhumax_state::cx_intctrl_w ) } -READ32_MEMBER( cxhumax_state::cx_ss_r ) +uint32_t cxhumax_state::cx_ss_r(offs_t offset) { uint32_t data = 0; switch(offset) { @@ -574,7 +574,7 @@ READ32_MEMBER( cxhumax_state::cx_ss_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_ss_w ) +void cxhumax_state::cx_ss_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(SS) %08X <- %08X\n", 0xE0490000 + (offset << 2), data); switch(offset) { @@ -617,14 +617,14 @@ WRITE32_MEMBER( cxhumax_state::cx_ss_w ) }; } -READ32_MEMBER( cxhumax_state::cx_i2c0_r ) +uint32_t cxhumax_state::cx_i2c0_r(offs_t offset) { uint32_t data = m_i2c0_regs[offset]; verboselog(*this, 9, "(I2C0) %08X -> %08X\n", 0xE04E0000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_i2c0_w ) +void cxhumax_state::cx_i2c0_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(I2C0) %08X <- %08X\n", 0xE04E0000 + (offset << 2), data); COMBINE_DATA(&m_i2c0_regs[offset]); @@ -678,7 +678,7 @@ void cxhumax_state::i2cmem_stop() m_i2cmem->write_scl(0); } -READ32_MEMBER( cxhumax_state::cx_i2c1_r ) +uint32_t cxhumax_state::cx_i2c1_r(offs_t offset) { uint32_t data=0; switch(offset) { @@ -692,7 +692,7 @@ READ32_MEMBER( cxhumax_state::cx_i2c1_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_i2c1_w ) +void cxhumax_state::cx_i2c1_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(I2C1) %08X <- %08X\n", 0xE04E1000 + (offset << 2), data); switch(offset) { @@ -751,33 +751,33 @@ WRITE32_MEMBER( cxhumax_state::cx_i2c1_w ) } } -READ32_MEMBER( cxhumax_state::cx_i2c2_r ) +uint32_t cxhumax_state::cx_i2c2_r(offs_t offset) { uint32_t data = m_i2c2_regs[offset]; verboselog(*this, 9, "(I2C2) %08X -> %08X\n", 0xE04E2000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_i2c2_w ) +void cxhumax_state::cx_i2c2_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(I2C2) %08X <- %08X\n", 0xE04E2000 + (offset << 2), data); COMBINE_DATA(&m_i2c2_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_mc_cfg_r ) +uint32_t cxhumax_state::cx_mc_cfg_r(offs_t offset) { uint32_t data = m_mccfg_regs[offset]; verboselog(*this, 9, "(MC_CFG) %08X -> %08X\n", 0xE0500300 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_mc_cfg_w ) +void cxhumax_state::cx_mc_cfg_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(MC_CFG) %08X <- %08X\n", 0xE0500300 + (offset << 2), data); COMBINE_DATA(&m_mccfg_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_drm0_r ) +uint32_t cxhumax_state::cx_drm0_r(offs_t offset) { uint32_t data = m_drm0_regs[offset]; verboselog(*this, 9, "(DRM0) %08X -> %08X\n", 0xE0560000 + (offset << 2), data); @@ -789,33 +789,33 @@ READ32_MEMBER( cxhumax_state::cx_drm0_r ) return data; } -WRITE32_MEMBER( cxhumax_state::cx_drm0_w ) +void cxhumax_state::cx_drm0_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(DRM0) %08X <- %08X\n", 0xE0560000 + (offset << 2), data); COMBINE_DATA(&m_drm0_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_drm1_r ) +uint32_t cxhumax_state::cx_drm1_r(offs_t offset) { uint32_t data = m_drm1_regs[offset]; verboselog(*this, 9, "(DRM1) %08X -> %08X\n", 0xE0570000 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_drm1_w ) +void cxhumax_state::cx_drm1_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(DRM1) %08X <- %08X\n", 0xE0570000 + (offset << 2), data); COMBINE_DATA(&m_drm1_regs[offset]); } -READ32_MEMBER( cxhumax_state::cx_hdmi_r ) +uint32_t cxhumax_state::cx_hdmi_r(offs_t offset) { uint32_t data = m_hdmi_regs[offset]; verboselog(*this, 9, "(HDMI) %08X -> %08X\n", 0xE05D0800 + (offset << 2), data); return data; } -WRITE32_MEMBER( cxhumax_state::cx_hdmi_w ) +void cxhumax_state::cx_hdmi_w(offs_t offset, uint32_t data, uint32_t mem_mask) { verboselog(*this, 9, "(HDMI) %08X <- %08X\n", 0xE05D0800 + (offset << 2), data); switch(offset) { |