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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
#ifndef MAME_BUS_NUBUS_NUBUS_ASNTMC3B_H
#define MAME_BUS_NUBUS_NUBUS_ASNTMC3B_H
#pragma once
#include "nubus.h"
#include "machine/dp8390.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> nubus_mac8390_device
class nubus_mac8390_device :
public device_t,
public device_nubus_card_interface
{
protected:
// construction/destruction
nubus_mac8390_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
DECLARE_READ8_MEMBER(asntm3b_ram_r);
DECLARE_WRITE8_MEMBER(asntm3b_ram_w);
DECLARE_READ32_MEMBER(en_r);
DECLARE_WRITE32_MEMBER(en_w);
required_device<dp8390_device> m_dp83902;
private:
void dp_irq_w(int state);
uint8_t dp_mem_read(offs_t offset);
void dp_mem_write(offs_t offset, uint8_t data);
uint8_t m_ram[0x20000];
uint8_t m_prom[16];
};
class nubus_asntmc3nb_device : public nubus_mac8390_device
{
public:
nubus_asntmc3nb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
class nubus_appleenet_device : public nubus_mac8390_device
{
public:
nubus_appleenet_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual const tiny_rom_entry *device_rom_region() const override;
};
// device type definition
DECLARE_DEVICE_TYPE(NUBUS_ASNTMC3NB, nubus_asntmc3nb_device)
DECLARE_DEVICE_TYPE(NUBUS_APPLEENET, nubus_appleenet_device)
#endif // MAME_BUS_NUBUS_NUBUS_ASNTMC3B_H
|