blob: 44b675d6a3fa459ee77807b88224569a47d5a3d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/* 68340 */
#pragma once
#ifndef __M68340_H__
#define __M68340_H__
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "68340sim.h"
#include "68340dma.h"
#include "68340ser.h"
#include "68340tmu.h"
class m68340cpu_device : public fscpu32_device {
public:
m68340cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
int m68340_currentcs;
/* 68340 peripheral modules */
m68340_sim* m68340SIM;
m68340_dma* m68340DMA;
m68340_serial* m68340SERIAL;
m68340_timer* m68340TIMER;
UINT32 m68340_base;
UINT16 m_avr;
UINT16 m_picr;
UINT16 m_pitr;
READ32_MEMBER( m68340_internal_base_r );
WRITE32_MEMBER( m68340_internal_base_w );
READ32_MEMBER( m68340_internal_dma_r );
WRITE32_MEMBER( m68340_internal_dma_w );
READ32_HANDLER( m68340_internal_serial_r );
WRITE32_MEMBER( m68340_internal_serial_w );
READ16_MEMBER( m68340_internal_sim_r );
READ8_MEMBER( m68340_internal_sim_ports_r );
READ32_MEMBER( m68340_internal_sim_cs_r );
WRITE16_MEMBER( m68340_internal_sim_w );
WRITE8_MEMBER( m68340_internal_sim_ports_w );
WRITE32_MEMBER( m68340_internal_sim_cs_w );
READ32_MEMBER( m68340_internal_timer_r );
WRITE32_MEMBER( m68340_internal_timer_w );
emu_timer *m_irq_timer;
TIMER_CALLBACK_MEMBER(periodic_interrupt_timer_callback);
void start_68340_sim(void);
void do_timer_irq(void);
protected:
virtual void device_start();
virtual void device_reset();
};
static const device_type M68340 = &device_creator<m68340cpu_device>;
extern UINT16 m68340_get_cs(m68340cpu_device *device, offs_t address);
#endif
|