summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/igs022.h
blob: 69c36bc9199011c77b4372a7d5897a01aebb3081 (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
// license:BSD-3-Clause
// copyright-holders:David Haywood, ElSemi
/* IGS022 */
#ifndef MAME_MACHINE_IGS022_H
#define MAME_MACHINE_IGS022_H

#pragma once


class igs022_device : public device_t
{
public:
	igs022_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	uint16_t* m_sharedprotram;
	void IGS022_handle_command();

protected:
	virtual void device_start() override;
	virtual void device_reset() override;

	uint32_t        m_kb_regs[0x100];

	void IGS022_do_dma(uint16_t src, uint16_t dst, uint16_t size, uint16_t mode);
	void IGS022_reset();

};


DECLARE_DEVICE_TYPE(IGS022, igs022_device)

#endif // MAME_MACHINE_IGS022_H