OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pasopia / floppy.h
index dec1a2b..490c85a 100644 (file)
@@ -1,44 +1,51 @@
-/*\r
-       TOSHIBA PASOPIA Emulator 'EmuPIA'\r
-\r
-       Author : Takeda.Toshiya\r
-       Date   : 2006.09.20 -\r
-\r
-       [ floppy ]\r
-*/\r
-\r
-#ifndef _FLOPPY_H_\r
-#define _FLOPPY_H_\r
-\r
-#include "../vm.h"\r
-#include "../../emu.h"\r
-#include "../device.h"\r
-\r
-#define SIG_FLOPPY_INTR        0\r
-\r
-class FLOPPY : public DEVICE\r
-{\r
-private:\r
-       DEVICE *d_fdc;\r
-       bool intr;\r
-       \r
-public:\r
-       FLOPPY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}\r
-       ~FLOPPY() {}\r
-       \r
-       // common functions\r
-       void initialize();\r
-       void write_io8(uint32 addr, uint32 data);\r
-       uint32 read_io8(uint32 addr);\r
-       void write_signal(int id, uint32 data, uint32 mask);\r
-       \r
-       // unique functions\r
-       void set_context_fdc(DEVICE* device)\r
-       {\r
-               d_fdc = device;\r
-       }\r
-       bool supported;\r
-};\r
-\r
-#endif\r
-\r
+/*
+       TOSHIBA PASOPIA Emulator 'EmuPIA'
+
+       Author : Takeda.Toshiya
+       Date   : 2006.09.20 -
+
+       [ floppy ]
+*/
+
+#ifndef _FLOPPY_H_
+#define _FLOPPY_H_
+
+#include "../vm.h"
+#include "../../emu.h"
+#include "../device.h"
+
+#define SIG_FLOPPY_INTR        0
+
+namespace PASOPIA {
+
+class FLOPPY : public DEVICE
+{
+private:
+       DEVICE *d_fdc;
+       bool intr;
+       
+public:
+       FLOPPY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("Floppy I/F"));
+       }
+       ~FLOPPY() {}
+       
+       // common functions
+       void initialize();
+       void write_io8(uint32_t addr, uint32_t data);
+       uint32_t read_io8(uint32_t addr);
+       void write_signal(int id, uint32_t data, uint32_t mask);
+       bool process_state(FILEIO* state_fio, bool loading);
+       
+       // unique functions
+       void set_context_fdc(DEVICE* device)
+       {
+               d_fdc = device;
+       }
+       bool supported;
+};
+
+}
+#endif
+