diff options
Diffstat (limited to 'src/devices/bus/amiga/zorro/a2065.h')
-rw-r--r-- | src/devices/bus/amiga/zorro/a2065.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/devices/bus/amiga/zorro/a2065.h b/src/devices/bus/amiga/zorro/a2065.h new file mode 100644 index 00000000000..6eb8c4599ed --- /dev/null +++ b/src/devices/bus/amiga/zorro/a2065.h @@ -0,0 +1,58 @@ +// license:GPL-2.0+ +// copyright-holders:Dirk Best +/*************************************************************************** + + Commodore A2065 + + Zorro-II Ethernet Network Interface + +***************************************************************************/ + +#ifndef MAME_BUS_AMIGA_ZORRO_A2065_H +#define MAME_BUS_AMIGA_ZORRO_A2065_H + +#pragma once + +#include "zorro.h" +#include "machine/am79c90.h" +#include "machine/autoconfig.h" + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> a2065_device + +class a2065_device : public device_t, public device_zorro2_card_interface, public amiga_autoconfig +{ +public: + // construction/destruction + a2065_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + + DECLARE_READ16_MEMBER( ram_r ); + DECLARE_WRITE16_MEMBER( ram_w ); + + DECLARE_WRITE_LINE_MEMBER( lance_irq_w ); + +protected: + // device-level overrides + virtual void device_add_mconfig(machine_config &config) override; + virtual void device_start() override; + + // device_zorro2_card_interface overrides + virtual DECLARE_WRITE_LINE_MEMBER( cfgin_w ) override; + + // amiga_autoconfig overrides + virtual void autoconfig_base_address(offs_t address) override; + +private: + required_device<am7990_device> m_lance; + + std::unique_ptr<uint16_t[]> m_ram; +}; + +// device type definition +DECLARE_DEVICE_TYPE(A2065, a2065_device) + +#endif // MAME_BUS_AMIGA_ZORRO_A2065_H |