diff options
Diffstat (limited to 'src/devices/machine/ps2timer.h')
-rw-r--r-- | src/devices/machine/ps2timer.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/devices/machine/ps2timer.h b/src/devices/machine/ps2timer.h index 425fc89798b..c412745b6ad 100644 --- a/src/devices/machine/ps2timer.h +++ b/src/devices/machine/ps2timer.h @@ -9,21 +9,21 @@ * */ -#ifndef DEVICES_MACHINE_PS2TIMER_H -#define DEVICES_MACHINE_PS2TIMER_H +#ifndef MAME_MACHINE_PS2TIMER_H +#define MAME_MACHINE_PS2TIMER_H #pragma once class ps2_timer_device : public device_t { public: - ps2_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, bool can_hold) - : ps2_timer_device(mconfig, tag, owner, clock) - { + ps2_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, bool can_hold) + : ps2_timer_device(mconfig, tag, owner, clock) + { m_can_hold = can_hold; } - ps2_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + ps2_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); DECLARE_READ32_MEMBER(read); DECLARE_WRITE32_MEMBER(write); @@ -65,52 +65,52 @@ protected: GATS_VBLNK }; - virtual void device_start() override; - virtual void device_reset() override; + virtual void device_start() override; + virtual void device_reset() override; TIMER_CALLBACK_MEMBER(compare); TIMER_CALLBACK_MEMBER(overflow); void update_gate(); - void update_interrupts(); + void update_interrupts(); void update_compare_timer(); - void update_overflow_timer(); + void update_overflow_timer(); void update_count(); - void update_hold(); + void update_hold(); - void set_mode(uint32_t data); + void set_mode(uint32_t data); emu_timer *m_compare_timer; emu_timer *m_overflow_timer; - uint32_t m_mode; + uint32_t m_mode; attotime m_last_enable_time; - attotime m_last_update_time; - attotime m_elapsed_time; - bool m_enabled; - bool m_zero_return; - uint32_t m_count; - uint32_t m_compare; + attotime m_last_update_time; + attotime m_elapsed_time; + bool m_enabled; + bool m_zero_return; + uint32_t m_count; + uint32_t m_compare; - bool m_can_hold; - uint32_t m_hold; + bool m_can_hold; + uint32_t m_hold; - timer_clock_select m_clk_select; + timer_clock_select m_clk_select; - bool m_gate_enable; - timer_gate_select m_gate_select; - timer_gate_mode m_gate_mode; + bool m_gate_enable; + timer_gate_select m_gate_select; + timer_gate_mode m_gate_mode; - bool m_cmp_int_enabled; - bool m_cmp_int; + bool m_cmp_int_enabled; + bool m_cmp_int; - bool m_ovf_int_enabled; - bool m_ovf_int; + bool m_ovf_int_enabled; + bool m_ovf_int; }; DECLARE_DEVICE_TYPE(SONYPS2_TIMER, ps2_timer_device) -#endif // DEVICES_MACHINE_PS2TIMER_H
\ No newline at end of file +#endif // MAME_MACHINE_PS2TIMER_H |