blob: f93b2a50c58672b6cbb1d04858b2f95c90812503 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************
Chips & Technologies CS8221 chipset
a.k.a. NEW ENHANCED AT (NEAT)
Consists of four individual chips:
* 82C211 - CPU/Bus controller
* 82C212 - Page/Interleave and EMS Memory controller
* 82C215 - Data/Address buffer
* 82C206 - Integrated Peripherals Controller(IPC)
***************************************************************************/
#ifndef MAME_MACHINE_CS8221_H
#define MAME_MACHINE_CS8221_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_CS8221_ADD(_tag, _cputag, _isatag, _biostag) \
MCFG_DEVICE_ADD(_tag, CS8221, 0) \
downcast<cs8221_device &>(*device).set_cputag(_cputag); \
downcast<cs8221_device &>(*device).set_isatag(_isatag); \
downcast<cs8221_device &>(*device).set_biostag(_biostag);
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> cs8221_device
class cs8221_device : public device_t
{
public:
// construction/destruction
cs8221_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// inline configuration
void set_cputag(const char *tag) { m_cputag = tag; }
void set_isatag(const char *tag) { m_isatag = tag; }
void set_biostag(const char *tag) { m_biostag = tag; }
void map(address_map &map);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
private:
// internal state
//address_space *m_space;
//uint8_t *m_isa;
//uint8_t *m_bios;
//uint8_t *m_ram;
// address selection
uint8_t m_address;
bool m_address_valid;
const char *m_cputag;
const char *m_isatag;
const char *m_biostag;
uint8_t m_registers[0x10];
DECLARE_WRITE8_MEMBER( address_w );
DECLARE_READ8_MEMBER( data_r );
DECLARE_WRITE8_MEMBER( data_w );
};
// device type definition
DECLARE_DEVICE_TYPE(CS8221, cs8221_device)
#endif // MAME_MACHINE_CS8221_H
|