summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tsispch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tsispch.h')
-rw-r--r--src/mame/includes/tsispch.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/mame/includes/tsispch.h b/src/mame/includes/tsispch.h
new file mode 100644
index 00000000000..25c7b088da6
--- /dev/null
+++ b/src/mame/includes/tsispch.h
@@ -0,0 +1,58 @@
+// license:BSD-3-Clause
+// copyright-holders:Jonathan Gevaryahu
+/***************************************************************************
+
+ tsispch.h
+
+****************************************************************************/
+
+#pragma once
+
+#ifndef _TSISPCH_H_
+#define _TSISPCH_H_
+
+#include "machine/i8251.h"
+#include "machine/pic8259.h"
+#include "machine/terminal.h"
+
+#define TERMINAL_TAG "terminal"
+
+class tsispch_state : public driver_device
+{
+public:
+ tsispch_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
+ m_maincpu(*this, "maincpu"),
+ m_dsp(*this, "dsp"),
+ m_terminal(*this, TERMINAL_TAG),
+ m_uart(*this, "i8251a_u15"),
+ m_pic(*this, "pic8259")
+ {
+ }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_dsp;
+ required_device<generic_terminal_device> m_terminal;
+ required_device<i8251_device> m_uart;
+ required_device<pic8259_device> m_pic;
+
+ UINT8 m_paramReg; // status leds and resets and etc
+
+ virtual void machine_reset();
+ DECLARE_WRITE8_MEMBER(i8251_rxd);
+ DECLARE_READ8_MEMBER(dsw_r);
+ DECLARE_WRITE8_MEMBER(peripheral_w);
+ DECLARE_READ16_MEMBER(dsp_data_r);
+ DECLARE_WRITE16_MEMBER(dsp_data_w);
+ DECLARE_READ16_MEMBER(dsp_status_r);
+ DECLARE_WRITE16_MEMBER(dsp_status_w);
+ DECLARE_DRIVER_INIT(prose2k);
+ DECLARE_WRITE_LINE_MEMBER(i8251_rxrdy_int);
+ DECLARE_WRITE_LINE_MEMBER(i8251_txempty_int);
+ DECLARE_WRITE_LINE_MEMBER(i8251_txrdy_int);
+ DECLARE_WRITE_LINE_MEMBER(dsp_to_8086_p0_w);
+ DECLARE_WRITE_LINE_MEMBER(dsp_to_8086_p1_w);
+};
+
+
+#endif // _TSISPCH_H_