summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/x68k_neptunex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/x68k_neptunex.h')
-rw-r--r--src/mess/machine/x68k_neptunex.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/mess/machine/x68k_neptunex.h b/src/mess/machine/x68k_neptunex.h
new file mode 100644
index 00000000000..3bfba21a2c2
--- /dev/null
+++ b/src/mess/machine/x68k_neptunex.h
@@ -0,0 +1,53 @@
+/*
+ * x68k_neptunex.h
+ *
+ * Neptune-X NE2000-based ethernet board for the X68000
+ *
+ * Map:
+ * 0xECE000-0xECE3FF: "Y0"
+ * 0xECE400-0xECE7FF: "Y1"
+ */
+
+#ifndef X68K_NEPTUNEX_H_
+#define X68K_NEPTUNEX_H_
+
+#include "emu.h"
+#include "machine/dp8390.h"
+#include "machine/x68kexp.h"
+
+#define NEPTUNE_IRQ_VECTOR 0xf9
+
+class x68k_neptune_device : public device_t,
+ public device_x68k_expansion_card_interface
+{
+public:
+ // construction/destruction
+ x68k_neptune_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+ void x68k_neptune_irq_w(int state);
+ DECLARE_READ8_MEMBER(x68k_neptune_mem_read);
+ DECLARE_WRITE8_MEMBER(x68k_neptune_mem_write);
+ DECLARE_READ16_MEMBER(x68k_neptune_port_r);
+ DECLARE_WRITE16_MEMBER(x68k_neptune_port_w);
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+ virtual void device_config_complete() { m_shortname = "x68k_neptunex"; }
+
+private:
+ x68k_expansion_slot_device *m_slot;
+
+ required_device<dp8390d_device> m_dp8390;
+ UINT8 m_board_ram[16*1024];
+ UINT8 m_prom[16];
+};
+
+// device type definition
+extern const device_type X68K_NEPTUNEX;
+
+#endif /* X68K_NEPTUNEX_H_ */