summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/pgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/pgc.h')
-rw-r--r--src/devices/bus/isa/pgc.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/devices/bus/isa/pgc.h b/src/devices/bus/isa/pgc.h
new file mode 100644
index 00000000000..bb51fa9d177
--- /dev/null
+++ b/src/devices/bus/isa/pgc.h
@@ -0,0 +1,67 @@
+// license:BSD-3-Clause
+// copyright-holders:Sergey Svishchev
+
+#pragma once
+
+#ifndef __ISA_PGC_H__
+#define __ISA_PGC_H__
+
+#include "emu.h"
+
+#include "cpu/i86/i86.h"
+#include "isa.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> isa8_pgc_device
+
+class isa8_pgc_device :
+ public device_t,
+ public device_isa8_card_interface
+{
+public:
+ // construction/destruction
+ isa8_pgc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ isa8_pgc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
+
+ // optional information overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
+ virtual const rom_entry *device_rom_region() const;
+ virtual ioport_constructor device_input_ports() const;
+
+ UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+
+ TIMER_DEVICE_CALLBACK_MEMBER( scanline_callback );
+ INTERRUPT_GEN_MEMBER(vblank_irq);
+ IRQ_CALLBACK_MEMBER(irq_callback);
+
+ DECLARE_WRITE8_MEMBER( stateparam_w );
+ DECLARE_READ8_MEMBER( stateparam_r );
+ DECLARE_WRITE8_MEMBER( lut_w );
+ DECLARE_READ8_MEMBER( init_r );
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+private:
+ required_device<i8088_cpu_device> m_cpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
+ UINT8 *m_commarea;
+ UINT8 *m_vram;
+ UINT8 *m_eram;
+ UINT8 m_stateparam[16];
+ UINT8 m_lut[256*3];
+ bitmap_ind16 *m_bitmap;
+};
+
+
+// device type definition
+extern const device_type ISA8_PGC;
+
+#endif /* __ISA_PGC_H__ */