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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [src/] [bochs-diff-2.3.7/] [iodev/] [hdemu.h] - Blame information for rev 52

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

Line No. Rev Author Line
1 39 zeus
#ifndef BX_IODEV_HDEMU_H
2
#define BX_IODEV_HDEMU_H
3
 
4
#define BX_USE_HDEMU_SMF      1
5
 
6
#if BX_USE_HDEMU_SMF
7
#  define BX_HDEMU_SMF  static
8
#  define BX_HDEMU_THIS theHdemuDevice->
9
#else
10
#  define BX_HDEMU_SMF
11
#  define BX_HDEMU_THIS this->
12
#endif
13
 
14
class bx_hdemu_c : public bx_devmodel_c {
15
public:
16
  bx_hdemu_c();
17
  virtual ~bx_hdemu_c();
18
  virtual void init(void);
19
  virtual void reset(unsigned type);
20
  virtual void register_state(void);
21
 
22
private:
23
  FILE *input;
24
  Bit16u base;
25
 
26
  static Bit32u read_handler(void *this_ptr, Bit32u address, unsigned io_len);
27
  static void   write_handler(void *this_ptr, Bit32u address, Bit32u value, unsigned io_len);
28
#if !BX_USE_HDEMU_SMF
29
  Bit32u read(Bit32u address, unsigned io_len);
30
  void   write(Bit32u address, Bit32u value, unsigned io_len);
31
#endif
32
};
33
 
34
#endif

powered by: WebSVN 2.1.0

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