From 014fc2c10cc4b2fc53fde5ccd145ac63cb19379c Mon Sep 17 00:00:00 2001 From: instinc Date: Fri, 14 Sep 2001 14:28:23 +0000 Subject: [PATCH] header file for the iodebug interface --- bochs/iodev/iodebug.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bochs/iodev/iodebug.h diff --git a/bochs/iodev/iodebug.h b/bochs/iodev/iodebug.h new file mode 100644 index 000000000..7ed49e34d --- /dev/null +++ b/bochs/iodev/iodebug.h @@ -0,0 +1,23 @@ +#ifndef _BX_IODEBUG_H +#define _BX_IODEBUG_H + +#include "config.h" + +#define BX_IODEBUG_THIS this-> + +class bx_iodebug_c : public logfunctions { +public: + bx_iodebug_c( void ); + ~bx_iodebug_c( void ); + int init( bx_devices_c * ); +private: + 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); + Bit32u read(Bit32u addr, unsigned int io_len); + void write(Bit32u addr, Bit32u dvalue, unsigned int io_len); + + bx_devices_c *devices; +}; + +extern bx_iodebug_c bx_iodebug; +#endif