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
|
// license:LGPL-2.1+
// copyright-holders:Angelo Salese
/***************************************************************************
Fujitsu MB90082 OSD
***************************************************************************/
#ifndef MAME_VIDEO_MB90082DEV_H
#define MAME_VIDEO_MB90082DEV_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_MB90082_ADD(_tag,_freq) \
MCFG_DEVICE_ADD(_tag, MB90082, _freq)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> mb90082_device
class mb90082_device : public device_t,
public device_memory_interface
{
public:
// construction/destruction
mb90082_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O operations
DECLARE_WRITE8_MEMBER( write );
DECLARE_WRITE_LINE_MEMBER( set_cs_line );
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
// device-level overrides
virtual void device_validity_check(validity_checker &valid) const override;
virtual void device_start() override;
virtual void device_reset() override;
virtual space_config_vector memory_space_config() const override;
virtual const tiny_rom_entry *device_rom_region() const override;
private:
enum
{
OSD_COMMAND = 0,
OSD_DATA
};
uint8_t m_cmd_ff;
uint8_t m_cmd,m_cmd_param;
uint8_t m_reset_line;
uint16_t m_osd_addr;
uint8_t m_fil;
uint8_t m_uc;
uint8_t m_attr;
inline uint16_t read_word(offs_t address);
inline void write_word(offs_t address, uint16_t data);
void mb90082_vram(address_map &map);
const address_space_config m_space_config;
};
// device type definition
DECLARE_DEVICE_TYPE(MB90082, mb90082_device)
#endif // MAME_VIDEO_MB90082DEV_H
|