diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2013-02-13 13:19:20 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2013-02-13 13:19:20 +0000 |
commit | a1819a469e6f1155a77b2ae3c163100b908047a3 (patch) | |
tree | 8158162fdce924e0192ab624c78c64ca6fa18237 /src/mame/drivers/calchase.c | |
parent | 67af3f42afb30cd862eecd81f19a340d39f43e9d (diff) |
Modernization of drivers part 22 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/calchase.c')
-rw-r--r-- | src/mame/drivers/calchase.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/calchase.c b/src/mame/drivers/calchase.c index dd8918f6dc1..cedc45fff7b 100644 --- a/src/mame/drivers/calchase.c +++ b/src/mame/drivers/calchase.c @@ -182,6 +182,7 @@ public: virtual void machine_start(); virtual void machine_reset(); IRQ_CALLBACK_MEMBER(irq_callback); + void intel82439tx_init(); }; @@ -368,15 +369,14 @@ static void mxtc_config_w(device_t *busdevice, device_t *device, int function, i state->m_mxtc_config_reg[reg] = data; } -static void intel82439tx_init(running_machine &machine) +void calchase_state::intel82439tx_init() { - calchase_state *state = machine.driver_data<calchase_state>(); - state->m_mxtc_config_reg[0x60] = 0x02; - state->m_mxtc_config_reg[0x61] = 0x02; - state->m_mxtc_config_reg[0x62] = 0x02; - state->m_mxtc_config_reg[0x63] = 0x02; - state->m_mxtc_config_reg[0x64] = 0x02; - state->m_mxtc_config_reg[0x65] = 0x02; + m_mxtc_config_reg[0x60] = 0x02; + m_mxtc_config_reg[0x61] = 0x02; + m_mxtc_config_reg[0x62] = 0x02; + m_mxtc_config_reg[0x63] = 0x02; + m_mxtc_config_reg[0x64] = 0x02; + m_mxtc_config_reg[0x65] = 0x02; } static UINT32 intel82439tx_pci_r(device_t *busdevice, device_t *device, int function, int reg, UINT32 mem_mask) @@ -968,7 +968,7 @@ DRIVER_INIT_MEMBER(calchase_state,calchase) init_pc_common(machine(), PCCOMMON_KEYBOARD_AT, calchase_set_keyb_int); - intel82439tx_init(machine()); + intel82439tx_init(); kbdc8042_init(machine(), &at8042); |