diff options
Diffstat (limited to 'src/mame/includes/nforcepc.h')
-rw-r--r-- | src/mame/includes/nforcepc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mame/includes/nforcepc.h b/src/mame/includes/nforcepc.h index 68a9c654a31..cdc2802ac7a 100644 --- a/src/mame/includes/nforcepc.h +++ b/src/mame/includes/nforcepc.h @@ -63,6 +63,26 @@ private: DECLARE_DEVICE_TYPE(SMBUS_LOGGER, smbus_logger_device) +// Simple smbus rom used as a placeholder for the serial presence detect chip in a ddr dimm + +class smbus_rom_device : public device_t, public smbus_interface +{ +public: + smbus_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const uint8_t *data, int size); + smbus_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + virtual int execute_command(int command, int rw, int data) override; + +protected: + virtual void device_start() override; + virtual void device_reset() override; + +private: + const uint8_t *buffer; + int buffer_size; +}; + +DECLARE_DEVICE_TYPE(SMBUS_ROM, smbus_rom_device) + // Asus AS99127F chip // It answerst to three smbus addresses, by default 0x2d 0x48 0x49 |