1 // license:BSD-3-Clause
2 // copyright-holders:Aaron Giles
3 /*************************************************************************
4 
5     Atari "Round" hardware
6 
7 *************************************************************************/
8 #ifndef MAME_INCLUDES_RELIEF_H
9 #define MAME_INCLUDES_RELIEF_H
10 
11 #pragma once
12 
13 #include "sound/okim6295.h"
14 #include "sound/ym2413.h"
15 #include "video/atarimo.h"
16 #include "video/atarivad.h"
17 #include "screen.h"
18 #include "tilemap.h"
19 
20 class relief_state : public driver_device
21 {
22 public:
relief_state(const machine_config & mconfig,device_type type,const char * tag)23 	relief_state(const machine_config &mconfig, device_type type, const char *tag) :
24 		driver_device(mconfig, type, tag),
25 		m_maincpu(*this, "maincpu"),
26 		m_gfxdecode(*this, "gfxdecode"),
27 		m_screen(*this, "screen"),
28 		m_vad(*this, "vad"),
29 		m_oki(*this, "oki"),
30 		m_ym2413(*this, "ymsnd"),
31 		m_okibank(*this, "okibank")
32 	{ }
33 
34 	void relief(machine_config &config);
35 
36 	void init_relief();
37 
38 private:
39 	virtual void machine_reset() override;
40 	virtual void video_start() override;
41 	uint16_t special_port2_r();
42 	void audio_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
43 	void audio_volume_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
44 	TILE_GET_INFO_MEMBER(get_playfield_tile_info);
45 	TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
46 	uint32_t screen_update_relief(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
47 
48 	void main_map(address_map &map);
49 	void oki_map(address_map &map);
50 
51 	required_device<cpu_device> m_maincpu;
52 	required_device<gfxdecode_device> m_gfxdecode;
53 	required_device<screen_device> m_screen;
54 	required_device<atari_vad_device> m_vad;
55 	required_device<okim6295_device> m_oki;
56 	required_device<ym2413_device> m_ym2413;
57 	required_memory_bank m_okibank;
58 
59 	uint8_t           m_ym2413_volume;
60 	uint8_t           m_overall_volume;
61 	uint8_t           m_adpcm_bank;
62 
63 	static const atari_motion_objects_config s_mob_config;
64 };
65 
66 #endif // MAME_INCLUDES_RELIEF_H
67