OpenCores
URL https://opencores.org/ocsvn/zet86/zet86/trunk

Subversion Repositories zet86

[/] [zet86/] [trunk/] [src/] [bochs-diff-2.3.7/] [iodev/] [hdemu.h] - Rev 52

Go to most recent revision | Compare with Previous | Blame | View Log

#ifndef BX_IODEV_HDEMU_H
#define BX_IODEV_HDEMU_H
 
#define BX_USE_HDEMU_SMF      1
 
#if BX_USE_HDEMU_SMF
#  define BX_HDEMU_SMF  static
#  define BX_HDEMU_THIS theHdemuDevice->
#else
#  define BX_HDEMU_SMF
#  define BX_HDEMU_THIS this->
#endif
 
class bx_hdemu_c : public bx_devmodel_c {
public:
  bx_hdemu_c();
  virtual ~bx_hdemu_c();
  virtual void init(void);
  virtual void reset(unsigned type);
  virtual void register_state(void);
 
private:
  FILE *input;
  Bit16u base;
 
  static Bit32u read_handler(void *this_ptr, Bit32u address, unsigned io_len);
  static void   write_handler(void *this_ptr, Bit32u address, Bit32u value, unsigned io_len);
#if !BX_USE_HDEMU_SMF
  Bit32u read(Bit32u address, unsigned io_len);
  void   write(Bit32u address, Bit32u value, unsigned io_len);
#endif
};
 
#endif
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.