OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc9801 / dmareg.h
1 /*
2         NEC PC-9801VX Emulator 'ePC-9801VX'
3         NEC PC-9801RA Emulator 'ePC-9801RA'
4         NEC PC-98XA Emulator 'ePC-98XA'
5         NEC PC-98XL Emulator 'ePC-98XL'
6         NEC PC-98RL Emulator 'ePC-98RL'
7
8         Author : Takeda.Toshiya
9         Date   : 2017.06.25-
10
11         [ dma regs ]
12 */
13
14 #ifndef _DMAREG_H_
15 #define _DMAREG_H_
16
17 #include "../vm.h"
18 #include "../../emu.h"
19 #include "../device.h"
20
21 namespace PC9801 {
22
23 class DMAREG : public DEVICE
24 {
25 private:
26         DEVICE *d_dma;
27         
28 public:
29         DMAREG(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
30         {
31                 set_device_name(_T("DMA I/O"));
32         }
33         ~DMAREG() {}
34         
35         // common functions
36         void write_io8(uint32_t addr, uint32_t data);
37         uint32_t read_io8(uint32_t addr);
38 //      bool process_state(FILEIO* state_fio, bool loading);
39         
40         // unique function
41         void set_context_dma(DEVICE* device)
42         {
43                 d_dma = device;
44         }
45 };
46
47 }
48 #endif
49