OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / sysport.h
index c259c0b..214436a 100644 (file)
 #include "../../emu.h"
 #include "../device.h"
 
+namespace MZ2800 {
+
 class SYSPORT : public DEVICE
 {
 private:
        DEVICE *d_pit, *d_sio;
        
 public:
-       SYSPORT(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+       SYSPORT(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("System I/O"));
+       }
        ~SYSPORT() {}
        
        // common functions
-       void write_io8(uint32 addr, uint32 data);
-       uint32 read_io8(uint32 addr);
+       void write_io8(uint32_t addr, uint32_t data);
+       uint32_t read_io8(uint32_t addr);
        
-       // unique function
+       // unique functions
        void set_context_pit(DEVICE* device)
        {
                d_pit = device;
@@ -38,5 +43,6 @@ public:
        }
 };
 
+}
 #endif