summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/amiga/zorro/a2052.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/amiga/zorro/a2052.h')
-rw-r--r--src/devices/bus/amiga/zorro/a2052.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/devices/bus/amiga/zorro/a2052.h b/src/devices/bus/amiga/zorro/a2052.h
new file mode 100644
index 00000000000..9a189ec58c2
--- /dev/null
+++ b/src/devices/bus/amiga/zorro/a2052.h
@@ -0,0 +1,51 @@
+// license:GPL-2.0+
+// copyright-holders:Dirk Best
+/***************************************************************************
+
+ Commodore A2052
+
+ 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