blob: 6db4e16e36df4296d98527f3499cf6a34e3447d5 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* 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();
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_ */
|