summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/ne2000.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/ne2000.h')
-rw-r--r--src/devices/bus/isa/ne2000.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/devices/bus/isa/ne2000.h b/src/devices/bus/isa/ne2000.h
new file mode 100644
index 00000000000..76a271dadc0
--- /dev/null
+++ b/src/devices/bus/isa/ne2000.h
@@ -0,0 +1,35 @@
+// license:BSD-3-Clause
+// copyright-holders:Carl
+#ifndef __NE2000_H__
+#define __NE2000_H__
+
+#include "emu.h"
+#include "isa.h"
+#include "machine/dp8390.h"
+
+class ne2000_device: public device_t,
+ public device_isa16_card_interface
+{
+public:
+ ne2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ virtual machine_config_constructor device_mconfig_additions() const;
+ virtual ioport_constructor device_input_ports() const;
+
+ void ne2000_irq_w(int state);
+ DECLARE_READ8_MEMBER(ne2000_mem_read);
+ DECLARE_WRITE8_MEMBER(ne2000_mem_write);
+ DECLARE_READ16_MEMBER(ne2000_port_r);
+ DECLARE_WRITE16_MEMBER(ne2000_port_w);
+protected:
+ virtual void device_start();
+ virtual void device_reset();
+private:
+ required_device<dp8390d_device> m_dp8390;
+ UINT8 m_irq;
+ UINT8 m_board_ram[16*1024];
+ UINT8 m_prom[16];
+};
+
+extern const device_type NE2000;
+
+#endif