blob: a55fdabf189674c3b5fcc97832d7bd0df7c60152 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef __NE1000_H__
#define __NE1000_H__
// NE1000 is 8bit has 8KB ram; NE2000 is 16bit has 16KB ram
#include "emu.h"
#include "machine/isa.h"
#include "machine/dp8390.h"
class ne1000_device: public device_t,
public device_isa8_card_interface
{
public:
ne1000_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 ne1000_irq_w(int state);
DECLARE_READ8_MEMBER(ne1000_mem_read);
DECLARE_WRITE8_MEMBER(ne1000_mem_write);
DECLARE_READ8_MEMBER(ne1000_port_r);
DECLARE_WRITE8_MEMBER(ne1000_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[8*1024];
UINT8 m_prom[16];
};
extern const device_type NE1000;
#endif
|