diff options
Diffstat (limited to 'src/devices/machine/m6m80011ap.h')
-rw-r--r-- | src/devices/machine/m6m80011ap.h | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/src/devices/machine/m6m80011ap.h b/src/devices/machine/m6m80011ap.h index cbd2e185669..0f30ccb3505 100644 --- a/src/devices/machine/m6m80011ap.h +++ b/src/devices/machine/m6m80011ap.h @@ -1,16 +1,10 @@ // license:BSD-3-Clause // copyright-holders:Angelo Salese -/*************************************************************************** - -Template for skeleton device - -***************************************************************************/ +#ifndef MAME_MACHINE_M6M80011AP_H +#define MAME_MACHINE_M6M80011AP_H #pragma once -#ifndef __M6M80011APDEV_H__ -#define __M6M80011APDEV_H__ - //************************************************************************** @@ -25,17 +19,6 @@ Template for skeleton device // TYPE DEFINITIONS //************************************************************************** -enum eeprom_cmd_t -{ - EEPROM_GET_CMD = 0, - EEPROM_READ, - EEPROM_WRITE, - EEPROM_WRITE_ENABLE, - EEPROM_WRITE_DISABLE, - EEPROM_STATUS_OUTPUT -}; - - // ======================> m6m80011ap_device class m6m80011ap_device : public device_t, @@ -63,6 +46,16 @@ protected: virtual void nvram_write(emu_file &file) override; private: + enum eeprom_cmd_t + { + EEPROM_GET_CMD = 0, + EEPROM_READ, + EEPROM_WRITE, + EEPROM_WRITE_ENABLE, + EEPROM_WRITE_DISABLE, + EEPROM_STATUS_OUTPUT + }; + uint8_t m_latch; uint8_t m_reset_line; uint8_t m_cmd_stream_pos; @@ -73,19 +66,10 @@ private: eeprom_cmd_t m_eeprom_state; uint16_t m_eeprom_data[0x80]; - }; // device type definition -extern const device_type M6M80011AP; - - - -//************************************************************************** -// GLOBAL VARIABLES -//************************************************************************** - - +DECLARE_DEVICE_TYPE(M6M80011AP, m6m80011ap_device) -#endif +#endif // MAME_MACHINE_M6M80011AP_H |