blob: c014f5dd4403aca6e5059342275a3488002cdceb (
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
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
/******************************************************************************
*
* MIPS DECstation I/O Gate Array emulation
*
*
*/
#ifndef MAME_MACHINE_DECIOGA_H
#define MAME_MACHINE_DECIOGA_H
#pragma once
#include "emu.h"
class dec_ioga_device : public device_t
{
public:
dec_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner)
: dec_ioga_device(mconfig, tag, owner, (uint32_t)0)
{
}
dec_ioga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
void map(address_map &map);
// irq inputs
DECLARE_WRITE_LINE_MEMBER(rtc_irq_w);
protected:
virtual void device_start() override;
virtual void device_reset() override;
DECLARE_READ32_MEMBER(csr_r);
DECLARE_WRITE32_MEMBER(csr_w);
DECLARE_READ32_MEMBER(intr_r);
DECLARE_WRITE32_MEMBER(intr_w);
DECLARE_READ32_MEMBER(imsk_r);
DECLARE_WRITE32_MEMBER(imsk_w);
private:
uint32_t m_csr, m_intr, m_imsk;
};
DECLARE_DEVICE_TYPE(DECSTATION_IOGA, dec_ioga_device)
#endif // MAME_MACHINE_DECIOGA_H
|