summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/atarigen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/atarigen.cpp')
-rw-r--r--src/mame/machine/atarigen.cpp113
1 files changed, 0 insertions, 113 deletions
diff --git a/src/mame/machine/atarigen.cpp b/src/mame/machine/atarigen.cpp
index 65b2b5a84b7..9678655a743 100644
--- a/src/mame/machine/atarigen.cpp
+++ b/src/mame/machine/atarigen.cpp
@@ -814,119 +814,6 @@ void atari_vad_device::eof_update(emu_timer &timer)
-//**************************************************************************
-// EEPROM INTERFACE DEVICE
-//**************************************************************************
-
-// device type definition
-DEFINE_DEVICE_TYPE(ATARI_EEPROM_2804, atari_eeprom_2804_device, "atari2804", "Atari EEPROM Interface (2804)")
-DEFINE_DEVICE_TYPE(ATARI_EEPROM_2816, atari_eeprom_2816_device, "atari2816", "Atari EEPROM Interface (2816)")
-
-//-------------------------------------------------
-// atari_eeprom_device - constructor
-//-------------------------------------------------
-
-atari_eeprom_device::atari_eeprom_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner)
- : device_t(mconfig, devtype, tag, owner, 0),
- m_eeprom(*this, "eeprom"),
- m_unlocked(false)
-{
-}
-
-
-//-------------------------------------------------
-// unlock_read/unlock_write - unlock read/write
-// handlers
-//-------------------------------------------------
-
-READ8_MEMBER(atari_eeprom_device::unlock_read) { m_unlocked = true; return space.unmap(); }
-WRITE8_MEMBER(atari_eeprom_device::unlock_write) { m_unlocked = true; }
-READ16_MEMBER(atari_eeprom_device::unlock_read) { m_unlocked = true; return space.unmap(); }
-WRITE16_MEMBER(atari_eeprom_device::unlock_write) { m_unlocked = true; }
-READ32_MEMBER(atari_eeprom_device::unlock_read) { m_unlocked = true; return space.unmap(); }
-WRITE32_MEMBER(atari_eeprom_device::unlock_write) { m_unlocked = true; }
-
-
-//-------------------------------------------------
-// read/write - data read/write handlers
-//-------------------------------------------------
-
-READ8_MEMBER(atari_eeprom_device::read)
-{
- return m_eeprom->read(space, offset);
-}
-
-WRITE8_MEMBER(atari_eeprom_device::write)
-{
- if (m_unlocked)
- m_eeprom->write(space, offset, data, mem_mask);
- else
- logerror("%s: Attemptedt to write to EEPROM while not unlocked\n", machine().describe_context());
- m_unlocked = false;
-}
-
-
-//-------------------------------------------------
-// device_start: Start up the device
-//-------------------------------------------------
-
-void atari_eeprom_device::device_start()
-{
- // register for save states
- save_item(NAME(m_unlocked));
-}
-
-
-//-------------------------------------------------
-// device_reset: Handle a device reset by
-// clearing the interrupt lines and states
-//-------------------------------------------------
-
-void atari_eeprom_device::device_reset()
-{
- // reset unlocked state
- m_unlocked = false;
-}
-
-
-//-------------------------------------------------
-// atari_eeprom_2804_device - constructor
-//-------------------------------------------------
-
-atari_eeprom_2804_device::atari_eeprom_2804_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : atari_eeprom_device(mconfig, ATARI_EEPROM_2804, tag, owner)
-{
-}
-
-
-//-------------------------------------------------
-// device_add_mconfig - add device configuration
-//-------------------------------------------------
-
-MACHINE_CONFIG_MEMBER(atari_eeprom_2804_device::device_add_mconfig)
- MCFG_EEPROM_2804_ADD("eeprom")
-MACHINE_CONFIG_END
-
-
-//-------------------------------------------------
-// atari_eeprom_2816_device - constructor
-//-------------------------------------------------
-
-atari_eeprom_2816_device::atari_eeprom_2816_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : atari_eeprom_device(mconfig, ATARI_EEPROM_2816, tag, owner)
-{
-}
-
-
-//-------------------------------------------------
-// device_add_mconfig - add device configuration
-//-------------------------------------------------
-
-MACHINE_CONFIG_MEMBER(atari_eeprom_2816_device::device_add_mconfig)
- MCFG_EEPROM_2816_ADD("eeprom")
-MACHINE_CONFIG_END
-
-
/***************************************************************************
OVERALL INIT
***************************************************************************/