summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/psx/dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/psx/dma.h')
-rw-r--r--src/devices/cpu/psx/dma.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/cpu/psx/dma.h b/src/devices/cpu/psx/dma.h
index e241dfac9ac..6a39a29ca5e 100644
--- a/src/devices/cpu/psx/dma.h
+++ b/src/devices/cpu/psx/dma.h
@@ -19,25 +19,25 @@ extern const device_type PSX_DMA;
#define MCFG_PSX_DMA_IRQ_HANDLER(_devcb) \
devcb = &psxdma_device::set_irq_handler(*device, DEVCB_##_devcb);
-typedef delegate<void (UINT32 *, UINT32, INT32)> psx_dma_read_delegate;
-typedef delegate<void (UINT32 *, UINT32, INT32)> psx_dma_write_delegate;
+typedef delegate<void (uint32_t *, uint32_t, int32_t)> psx_dma_read_delegate;
+typedef delegate<void (uint32_t *, uint32_t, int32_t)> psx_dma_write_delegate;
struct psx_dma_channel
{
- UINT32 n_base;
- UINT32 n_blockcontrol;
- UINT32 n_channelcontrol;
+ uint32_t n_base;
+ uint32_t n_blockcontrol;
+ uint32_t n_channelcontrol;
emu_timer *timer;
psx_dma_read_delegate fn_read;
psx_dma_write_delegate fn_write;
- UINT32 n_ticks;
- UINT32 b_running;
+ uint32_t n_ticks;
+ uint32_t b_running;
};
class psxdma_device : public device_t
{
public:
- psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// static configuration helpers
template<class _Object> static devcb_base &set_irq_handler(device_t &device, _Object object) { return downcast<psxdma_device &>(device).m_irq_handler.set_callback(object); }
@@ -48,7 +48,7 @@ public:
DECLARE_WRITE32_MEMBER( write );
DECLARE_READ32_MEMBER( read );
- UINT32 *m_ram;
+ uint32_t *m_ram;
size_t m_ramsize;
protected:
@@ -58,15 +58,15 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
private:
- void dma_start_timer( int n_channel, UINT32 n_ticks );
+ void dma_start_timer( int n_channel, uint32_t n_ticks );
void dma_stop_timer( int n_channel );
void dma_timer_adjust( int n_channel );
void dma_interrupt_update();
void dma_finished( int n_channel );
psx_dma_channel m_channel[7];
- UINT32 m_dpcp;
- UINT32 m_dicr;
+ uint32_t m_dpcp;
+ uint32_t m_dicr;
devcb_write_line m_irq_handler;
};