summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/amiga/zorro/a2052.h
blob: 939ed7e3bbcb01d79826de5f3d80b1cbf1ad99d4 (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
/***************************************************************************

    Commodore A2052

    license: MAME, GPL-2.0+
    copyright-holders: Dirk Best

    Zorro-II RAM Expansion (0.5, 1 or 2 MB)

***************************************************************************/

#pragma once

#ifndef __A2052_H__
#define __A2052_H__

#include "emu.h"
#include "zorro.h"
#include "machine/autoconfig.h"


//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> a2052_device

class a2052_device : public device_t, public device_zorro2_card_interface, public amiga_autoconfig
{
public:
	// construction/destruction
	a2052_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

protected:
	virtual ioport_constructor device_input_ports() const;
	virtual void device_start();

	// device_zorro2_card_interface overrides
	virtual DECLARE_WRITE_LINE_MEMBER( cfgin_w );

	// amiga_autoconfig overrides
	virtual void autoconfig_base_address(offs_t address);

private:
	required_ioport m_config;
	std::vector<UINT16> m_ram;
};

// device type definition
extern const device_type A2052;

#endif