OSDN Git Service

ea3335a3542b23651bca599275c52143ab2cd12c
[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 class DMAREG : public DEVICE
22 {
23 private:
24         DEVICE *d_dma;
25         
26 public:
27         DMAREG(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
28         {
29                 set_device_name(_T("DMA I/O"));
30         }
31         ~DMAREG() {}
32         
33         // common functions
34         void write_io8(uint32_t addr, uint32_t data);
35         uint32_t read_io8(uint32_t addr);
36 //      bool process_state(FILEIO* state_fio, bool loading);
37         
38         // unique function
39         void set_context_dma(DEVICE* device)
40         {
41                 d_dma = device;
42         }
43 };
44
45 #endif
46