diff options
Diffstat (limited to 'src/mame/machine/naomibd.h')
-rw-r--r-- | src/mame/machine/naomibd.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mame/machine/naomibd.h b/src/mame/machine/naomibd.h index b6258ad16a6..1786120bd76 100644 --- a/src/mame/machine/naomibd.h +++ b/src/mame/machine/naomibd.h @@ -8,15 +8,9 @@ #include "machine/naomig1.h" #include "machine/x76f100.h" -#define MCFG_NAOMI_BOARD_ADD(_tag, type, _eeprom_tag, _irq_cb) \ - MCFG_NAOMI_G1_ADD(_tag, type, _irq_cb) \ - downcast<naomi_board &>(*device).set_eeprom_tag(_eeprom_tag); - class naomi_board : public naomi_g1_device { public: - void set_eeprom_tag(const char *_eeprom_tag) { eeprom_tag = _eeprom_tag; } - // Can be patched in the underlying class virtual void submap(address_map &map) override; @@ -51,13 +45,12 @@ protected: virtual void board_write(offs_t offset, uint16_t data); uint32_t rom_offset; + optional_device<x76f100_device> eeprom; + private: uint32_t dma_offset, dma_cur_offset; uint16_t dma_count; bool pio_ready, dma_ready; - - const char *eeprom_tag; - x76f100_device *eeprom; }; #endif // MAME_MACHINE_NAOMIBD_H |